(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"  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:42:54 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$FwunHHoFtSUliN1lQRB3Fu4nmyaJFnTXdYZs91XTYp6wrXwHnryvK"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rDEoXb8KtxgHCqtAGdNN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["id", 1], ["authentication_token", "rDEoXb8KtxgHCqtAGdNN"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JxSBsiK1e6nRLjgjy2yp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1], ["user_id", 1], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["id", 1], ["auth_token", "JxSBsiK1e6nRLjgjy2yp"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (218.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (8.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (24.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (11.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 678ms (Views: 14.9ms | ActiveRecord: 326.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.9ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TaVU0xWUumuwURXNV7tidOZN47IHlWyPcNiOtrFMiQEETPg9mRklW"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LETy9QK91szsQwTxbpt7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 2], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["id", 2], ["authentication_token", "LETy9QK91szsQwTxbpt7"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:42:55 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 35ms (Views: 0.7ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (18.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.5ms) ROLLBACK  (0.9ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 94ms (Views: 90.7ms | ActiveRecord: 2.6ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.6ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 2.4ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$xg.QOJJSYh.fTsZBKMnWL.lZupRK7Xqm4nQ3ieCkID8MjwPG5TEPO"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QLiQFBbBKDxtHNp9Ly1p' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 3], ["authentication_token", "QLiQFBbBKDxtHNp9Ly1p"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3fakztPM65A6nrUznozU' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 3], ["user_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 2], ["auth_token", "3fakztPM65A6nrUznozU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (27.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$GckZY2T0L2qgYK9qTRAqYuCTx.IQMRpYmVMNNXlCWOuHcBSyAOPGm"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 4]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iXpD5DYFHv74fXBzfdRV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 3], ["user_id", 4], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 3], ["auth_token", "iXpD5DYFHv74fXBzfdRV"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 26ms (Views: 7.5ms | ActiveRecord: 6.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 3]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 200 OK in 13ms (Views: 6.3ms | ActiveRecord: 2.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$UsdKEIm5QsGs41/RsXzzZ.e46fswdRF.RumyeU8xM1ZvBQe5TUAjG"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S6jmJQiByUzRNfgUUt5f' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 4], ["authentication_token", "S6jmJQiByUzRNfgUUt5f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 5]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7esyS7m1gqZAsbcZaTCY' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 4], ["user_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 4], ["auth_token", "7esyS7m1gqZAsbcZaTCY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test2"  (20.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$m72aLW6Xyc9beNPXFvt.ser6oUUBM0dTzF7Hxw1Gaw.LvM4/VG4SK"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 6]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzu5DLvhAorDbevYRMsh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 4], ["user_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 5], ["auth_token", "qzu5DLvhAorDbevYRMsh"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 25ms (Views: 6.6ms | ActiveRecord: 7.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/6" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"6"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 6 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 6], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AZvAbf3yLUXxFZz5gGNC' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 5], ["authentication_token", "AZvAbf3yLUXxFZz5gGNC"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 6]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sgSTKhFSaL4pDrDFAtAT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 5], ["user_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 6], ["auth_token", "sgSTKhFSaL4pDrDFAtAT"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$UxDdNVKdGRSutQK7kmzfL.LKP.2ATLO53OZUVtSc3T0YCnrSndBci"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 7]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oDhGpechWDbs4qmbSAzX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 5], ["user_id", 7], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 7], ["auth_token", "oDhGpechWDbs4qmbSAzX"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 23ms (Views: 6.5ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/7" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"7"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 7 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.3ms) Started GET "/v1/users/6" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"6"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 6 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.1ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 4]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Completed 200 OK in 22ms (Views: 16.4ms | ActiveRecord: 3.5ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (27.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.6ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.1ms | ActiveRecord: 1.5ms)  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.3ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.5ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uqAESa2Qwxh1xdSSu8Br' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 1001], ["user_id", 101], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 8], ["auth_token", "uqAESa2Qwxh1xdSSu8Br"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.7ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$Gf4M1DbSAdG1rjcd80pX0Os.C/3xcu53ftFNJl4z6/6ImkpwSYmMa"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]]  (4.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 8], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PxVJemEKg2MxyP8sz2AR' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 6], ["authentication_token", "PxVJemEKg2MxyP8sz2AR"]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 8]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'c8Nxw5H7sPpzwBkABV89' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 6], ["user_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 9], ["auth_token", "c8Nxw5H7sPpzwBkABV89"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test4"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 201 Created in 19ms (Views: 6.8ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"8", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$habdqJlnad6sxYlQ6eto8ujKzSba9eqFdGrRnnftj7R0wisXLQ3Om"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 9]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hBNJS2VvuvPVasz2FG4m' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 6], ["user_id", 9], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 10], ["auth_token", "hBNJS2VvuvPVasz2FG4m"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 75ms (Views: 7.3ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/9" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"9"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 9 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$FCn9Gl7utUVb0J8e1hm7Qe.h2HAKELXG3/w/nvtXCrf.Kz2jFTBwe"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 10], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vQqrry9xKKr1CHzg2o9y' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 10], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 7], ["authentication_token", "vQqrry9xKKr1CHzg2o9y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 10]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8ihpxsoEYdsypCcSx6Yt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 7], ["user_id", 10], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 11], ["auth_token", "8ihpxsoEYdsypCcSx6Yt"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Completed 201 Created in 15ms (Views: 6.2ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 7]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"10", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$s7lI0AmfpdL0unIF6WlxC.sNLQ4hCiO3lADjZxxoU.BzQJJx2k9Du"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 11], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qqw2zNigZn6BTzkt7Uyd' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 11], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 8], ["authentication_token", "qqw2zNigZn6BTzkt7Uyd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 11]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kS5n6YJGbbNJzeiaaSxv' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 8], ["user_id", 11], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 12], ["auth_token", "kS5n6YJGbbNJzeiaaSxv"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$DaZV7WKZsL2uUdYSadIgrufE4v/6VklzNC7etuCZXYc7bKN2PQiKW"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 12]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DNEpqzC1eesjCcxQpBxy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 8], ["user_id", 12], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 13], ["auth_token", "DNEpqzC1eesjCcxQpBxy"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Completed 201 Created in 22ms (Views: 6.0ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/12" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"12"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.5ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$3p3qAOw7ktwSPVY1Gx0VEOl8qTNkY1tyi.uYrJaUlEeCI9b7sdtLu"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 13], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MyMzpdv7WzPWbTVby3xq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 13], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 9], ["authentication_token", "MyMzpdv7WzPWbTVby3xq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 13]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Srss2xvxDtGvQRUrqUGS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 9], ["user_id", 13], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 14], ["auth_token", "Srss2xvxDtGvQRUrqUGS"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 9]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] Completed 201 Created in 15ms (Views: 6.1ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 9]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$RgHU.GbyYtj3UnsjQshYyeSgSKO9K0caErrj/KkRPUPgt83JFyTzq"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 14], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rwvAmmrdnu6E2oKDMUvs' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 14], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 10], ["authentication_token", "rwvAmmrdnu6E2oKDMUvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 14]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b61tKpzgJGs9bQ8mGu8c' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 10], ["user_id", 14], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 15], ["auth_token", "b61tKpzgJGs9bQ8mGu8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$vsaTj9FLWZY1x3n62i5XT.0eaFaQXHHhAcrxp/j3gpNDgkL/m.J9G"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 15], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rVs1tRUSALH8oijGqTfx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 15], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 11], ["authentication_token", "rVs1tRUSALH8oijGqTfx"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 15]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8yqKUz8fpbnaCwMoocqz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 11], ["user_id", 15], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 16], ["auth_token", "8yqKUz8fpbnaCwMoocqz"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (10.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (16.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$VORNABA7f2fP67lhfrlVOer4cDBEQ7XL63hCOdkieE55qUhjb7MlG"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 16], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CAr9CxfX2Y8XWXFryXvA' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 16], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 12], ["authentication_token", "CAr9CxfX2Y8XWXFryXvA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 16]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YT1d4MyxFXf7zRAauHBF' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 12], ["user_id", 16], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 17], ["auth_token", "YT1d4MyxFXf7zRAauHBF"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 11]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$EGo7DetOGQaco9yA9Unz1.4LdB5Bj8BRHCZ11EcPs8CUiqqi1R1Be"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 17], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'euuAqbp8usHsQXiGyTwb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 17], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 13], ["authentication_token", "euuAqbp8usHsQXiGyTwb"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 17]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8uAZ37yu1jQCtHmBkh33' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 13], ["user_id", 17], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 18], ["auth_token", "8uAZ37yu1jQCtHmBkh33"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 13]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.9ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$vGMK/VDra1/NrUUrIrVl9.qcZ6V2lzY1vfzhvi9LMonYlkxTTJgRG"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 18], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xxvoTEyBSUj2UErAdgXt' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 18], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 14], ["authentication_token", "xxvoTEyBSUj2UErAdgXt"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 14], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 18]] Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b4snJhhpzSs5LMsg2E1s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 14], ["user_id", 18], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 19], ["auth_token", "b4snJhhpzSs5LMsg2E1s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 14]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.5ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$P78NMbow/ovPzguyjqAMh.jChW/w7635Oidp.zudIdB1Cu7rpXlMi"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 19], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RJrJzSUsgHW4AKzzYdLU' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 19], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 15], ["authentication_token", "RJrJzSUsgHW4AKzzYdLU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["user_id", 19]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'H8Zbhu6nfCddVzKVSmpL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 15], ["user_id", 19], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 20], ["auth_token", "H8Zbhu6nfCddVzKVSmpL"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$8U4/vmu9ft9d1IM./CxAtOkqgoInXf4mGcsgzDQnY5PNpPMVuhuyS"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$AdpxRWo50Bp5LHWzHPgNF.gB2R8HKV5i8tw/IN5k.u44nZoJYsEBy"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["name", "Root"], ["owner_id", 21], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ngLezt1fWEqYqxNfqwbW' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Root"], ["subdomain", "www"], ["owner_id", 21], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 16], ["authentication_token", "ngLezt1fWEqYqxNfqwbW"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.9ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$79xa57KInvp90nNMbbbF9.AspNv8hXmwDZdcYlBhtUAHLyOLPGHzi"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["name", "Test Account"], ["owner_id", 22], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qaNoD7ApUkSn4aLvxzpM' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 22], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 17], ["authentication_token", "qaNoD7ApUkSn4aLvxzpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["user_id", 22]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hw2DjzaBqKq1cDE9rHFq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 17], ["user_id", 22], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 21], ["auth_token", "hw2DjzaBqKq1cDE9rHFq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 17]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.3ms) ROLLBACK  (3.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (3.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (25.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (96.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PAkskjasBH8B7Nf6hJqN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (3.1ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1001], ["user_id", 101], ["created_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["id", 1], ["auth_token", "PAkskjasBH8B7Nf6hJqN"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.3ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.0ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (34.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (3.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 207ms (Views: 199.0ms | ActiveRecord: 7.2ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 1.7ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$TyooFAv0aCUq1hygBKjnguyIKy14GoDMszi1WzL3y.WVsIRL9N2LS"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pm6qi5rKrzd74DyeNBFH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 1], ["authentication_token", "Pm6qi5rKrzd74DyeNBFH"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Nb2yNMygqDVQsb9Eqxp9' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 1], ["user_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 2], ["auth_token", "Nb2yNMygqDVQsb9Eqxp9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4e36kkxzk.GCKCoLE0DSeOtALpXSNRyvA5c93nubTF0Zn1yr56z/W"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Bj6Lk5pHV4A4YbkQ8aAZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 1], ["user_id", 2], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 3], ["auth_token", "Bj6Lk5pHV4A4YbkQ8aAZ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 98ms (Views: 16.7ms | ActiveRecord: 12.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 2 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 200 OK in 29ms (Views: 16.0ms | ActiveRecord: 4.6ms)  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.9ms) ROLLBACK  (2.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$QEgzkt3c9zbEqV72ozYwV.X5PnujmUVNE8qUORa6OAQqoFzZi.o0e"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XxYwcbWhsWxbaaUSL8pf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 2], ["authentication_token", "XxYwcbWhsWxbaaUSL8pf"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AqAcwTXfdeux7Tq9sRKA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 2], ["user_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 4], ["auth_token", "AqAcwTXfdeux7Tq9sRKA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$uhsm/unO1.GT/6NHn9gI3epN0765k4siWyK9oBB5ju4uoOMbmSny2"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 4]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2UyzLa86n7vyTpzfbjnm' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 2], ["user_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 5], ["auth_token", "2UyzLa86n7vyTpzfbjnm"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 23ms (Views: 6.4ms | ActiveRecord: 5.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 3.2ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XhwpB6BjydwwipwcRd3q' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 3], ["authentication_token", "XhwpB6BjydwwipwcRd3q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 4]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BiKxvsxFdvq7wVBBTJTX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 3], ["user_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 6], ["auth_token", "BiKxvsxFdvq7wVBBTJTX"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4W/nxnrYAF1.Ga6hqZv1uul1J5svqZ6VmVsmI/rCMB5xLwQz5HCXm"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 5]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q1MxhrUTD9rVgybtANmT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 3], ["user_id", 5], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 7], ["auth_token", "q1MxhrUTD9rVgybtANmT"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Completed 201 Created in 24ms (Views: 6.6ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/5" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"5"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 5 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 3]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.2ms) Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 200 OK in 32ms (Views: 26.1ms | ActiveRecord: 2.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 2]] Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 200 OK in 39ms (Views: 26.2ms | ActiveRecord: 8.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (26.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (26.5ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$6vBNIiuygDxuMVkpl.8nJe1bCThnXHVOTs7D6CIOaLuI7DhNddPZW"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (3.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C7eFqsRiUarE6WsWezW3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (25.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 4], ["authentication_token", "C7eFqsRiUarE6WsWezW3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 6]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KBRBtpzkiku9zpEs5zYJ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 4], ["user_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 8], ["auth_token", "KBRBtpzkiku9zpEs5zYJ"]]  (6.4ms) RELEASE SAVEPOINT active_record_1  (1.6ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (9.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (25.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (6.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (6.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 34ms (Views: 9.4ms | ActiveRecord: 16.2ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 4]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Xvv29hF8feeK3PC/TX5hmubDsFqtGfPr/qUfpd2jVn84sJ6UocAVO"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VuqTxQSAB9LmGtC1Qbzf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 5], ["authentication_token", "VuqTxQSAB9LmGtC1Qbzf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 7]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3rzfL6knHfF45YtWLxJc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 5], ["user_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 9], ["auth_token", "3rzfL6knHfF45YtWLxJc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 17ms (Views: 6.5ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 5]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$52oSWKGzv68kHyoF.v402.B24CIl/6W1e4vWauyFGxSFPX8pNxH6K"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szjqJp4pipxfmKKTTcs7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 8], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 6], ["authentication_token", "szjqJp4pipxfmKKTTcs7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 8]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vpjmmgzX2MXxwhzqBqdA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 6], ["user_id", 8], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 10], ["auth_token", "vpjmmgzX2MXxwhzqBqdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test6" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$B0d7xLwQW/2zZsv4r03TJeMlSJO1ZtZ9ONShc2gxSr2HlAYcGCp3i"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 9]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NfgTZtbaJQSiyBxy54nn' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 6], ["user_id", 9], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 11], ["auth_token", "NfgTZtbaJQSiyBxy54nn"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 27ms (Views: 6.6ms | ActiveRecord: 6.4ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/9" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"9"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 9 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 9ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$rnnxyCT4XllGIiMXTMDMlOsFzXe9RemEFAaqlYuJ0ag6OyLAbj55W"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 10], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dzwGyt2CCcQZZqGqFvAJ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 10], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 7], ["authentication_token", "dzwGyt2CCcQZZqGqFvAJ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 10]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HGQpzqmrtvobVhCJctEr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 7], ["user_id", 10], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 12], ["auth_token", "HGQpzqmrtvobVhCJctEr"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (19.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Completed 201 Created in 22ms (Views: 7.2ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 7]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"10", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$4DqxI1AHsGAMDkSjT3eh0u2hOHEn/L91iOixP/QxakH2nSnwUfSci"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 11]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mAWwFkh5nCBaUiN7z6Yj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 7], ["user_id", 11], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 13], ["auth_token", "mAWwFkh5nCBaUiN7z6Yj"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::Member Load (4.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Completed 201 Created in 46ms (Views: 9.8ms | ActiveRecord: 17.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/11" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"11"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 11 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Completed 200 OK in 17ms (Views: 9.2ms | ActiveRecord: 3.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.5ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$0p4Qx6WnwXxKee66GT.10uAGbYPJ3ojg3VhRnSnj0XtzcHI7y1Ufi"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RqWM6SMtZGwmTa7ATLHp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 12], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 8], ["authentication_token", "RqWM6SMtZGwmTa7ATLHp"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 12]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BqkpZqMq1qzzTyAxiQee' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 8], ["user_id", 12], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 14], ["auth_token", "BqkpZqMq1qzzTyAxiQee"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 8]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$QEJ2u.uDSfMAH.o/r8Jr2eQc1UDOec1Qr4z.1hqzb5ITgV2zi10S2"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nsxeT4F4pg7mpijKsp7d' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 9], ["authentication_token", "nsxeT4F4pg7mpijKsp7d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 13]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RU6irZqKTVMwfSpsFMf1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 9], ["user_id", 13], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 15], ["auth_token", "RU6irZqKTVMwfSpsFMf1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (28.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (10.6ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$f2YGTKarcbAspyQLN2BPSefa0A4R6CUe9ue5bjQcChjZsVi31VZra"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qEyDRttDugFRmbAcrndx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 10], ["authentication_token", "qEyDRttDugFRmbAcrndx"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 14]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fqeHK2sJZBwpXyiphsqK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 10], ["user_id", 14], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 16], ["auth_token", "fqeHK2sJZBwpXyiphsqK"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$9N0FGtiVnS3ZxYk.TVT8kOhcGzjRemDxyuN44dVY8Nu0Ar1JZ0bG."], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 15], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZyndAUt8o5YxT2AJDYpG' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 15], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 11], ["authentication_token", "ZyndAUt8o5YxT2AJDYpG"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 15]] Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ygXDGkKWsHVTDxpZ5Y8x' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 11], ["user_id", 15], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 17], ["auth_token", "ygXDGkKWsHVTDxpZ5Y8x"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 11]] Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.3ms) ROLLBACK  (3.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$CO/XDgJMd.wcqa5lgW.Ka.OgjxbO4rNkGW4o3au1yQgy9OiHLe6N2"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 16], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5TqMMH7k7kzNyzDhwhxp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 16], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 12], ["authentication_token", "5TqMMH7k7kzNyzDhwhxp"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 16]] Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NRHUpsqVxUytTceatN6s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 12], ["user_id", 16], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 18], ["auth_token", "NRHUpsqVxUytTceatN6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 6ms (Views: 3.6ms | ActiveRecord: 1.2ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.8ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.5ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$t4wnRpdfZGt3rmi/wYBdzubik7wvzUAFR4/..CHCRaKbP/2J2r0Eq"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 17], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3YaJ5pRk3xSaSetajwhh' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 17], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["id", 13], ["authentication_token", "3YaJ5pRk3xSaSetajwhh"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["user_id", 17]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qPhtMj5GmUMJWxXApSLY' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 13], ["user_id", 17], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["id", 19], ["auth_token", "qPhtMj5GmUMJWxXApSLY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$clMwLBLScVOmnZex88w8/O0aUeAc30kbtb39/LUgPGg4D6ZPEQ81G"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$4RakMNUScRsYw6k1mZgF3ekE/pay/sktczPOrDBvziwZmYmP1P/5u"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["name", "Root"], ["owner_id", 19], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TK7oHBs1osXD9FcSBest' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Root"], ["subdomain", "www"], ["owner_id", 19], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["id", 14], ["authentication_token", "TK7oHBs1osXD9FcSBest"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.9ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (19.5ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (18.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (26.0ms) ROLLBACK  (2.0ms) BEGIN  (2.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (34.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.8ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.7ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 17:08:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$uTif9uiOLikskjYlrGWt2eA806YdA5RE5m9U4e1M4LF9eJvsKdd7y"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["name", "Testy"], ["owner_id", 20], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8pqtxczu6QS1HzfVpQou' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 20], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["id", 15], ["authentication_token", "8pqtxczu6QS1HzfVpQou"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["user_id", 20]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HAoKz7ThbjePntzW5qcX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 15], ["user_id", 20], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["id", 20], ["auth_token", "HAoKz7ThbjePntzW5qcX"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 15) LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 20 LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 15]] Completed 201 Created in 92ms (Views: 6.3ms | ActiveRecord: 40.7ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$smTwvjBaAdwF/0.fWWV8mOykHQLLdZqrmq.vCZYw3yBEiWElIKNta"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["name", "Testy"], ["owner_id", 21], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KePKvR1RCePKSrDRxKqj' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 21], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["id", 16], ["authentication_token", "KePKvR1RCePKSrDRxKqj"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 17:08:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 32ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (342.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (17.1ms) ROLLBACK  (2.5ms) BEGIN Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.5ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.4ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$IazGRVanh3mnYPZgrzpOUO641jRYt62H757Zgi/ulT3pPPyFkrOla"], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 22], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f5Gys4JxsaUyRPAbs4dR' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 22], ["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["id", 17], ["authentication_token", "f5Gys4JxsaUyRPAbs4dR"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["user_id", 22]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tSztxd3K96yPzoKkp8WP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 17], ["user_id", 22], ["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["id", 21], ["auth_token", "tSztxd3K96yPzoKkp8WP"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 17]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.6ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (24.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (61.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$UQQAgsXVX3H2EvIYbLhri.SHsxwSeCIRMtjpZKmqpBPYI9N1Z0soi"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pRNHi2sXTmAVurxmHPG3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 1], ["authentication_token", "pRNHi2sXTmAVurxmHPG3"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xsscy2rWQvrKpE2ShpBH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1], ["user_id", 1], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 1], ["auth_token", "Xsscy2rWQvrKpE2ShpBH"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$9864jb38kkEU9eJGa5kQGu/iS4aMHEoL8zDHSNDbFbJLHXnTCPQRC"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$kvizL66/iZ7qLTrZfRM5FeyMAqPM8q3F5uyb3ewP9bP5lODMcgaDm"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VjAdq1xKab69vqqp1Qm1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 2], ["authentication_token", "VjAdq1xKab69vqqp1Qm1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7uxCZ3NNJofyLesp29jZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 2], ["user_id", 3], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 2], ["auth_token", "7uxCZ3NNJofyLesp29jZ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (3.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (16.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.4ms) ROLLBACK  (0.5ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 159ms (Views: 150.2ms | ActiveRecord: 7.8ms)  (2.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.0ms) ROLLBACK  (2.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 2.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$zLndLRdz/WXPfGEzYzLxCO6DdrUofHxBn69sUDlVvzMRZWGp2VB2q"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UxWCCPpLvx9s6EeN9LLD' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 3], ["authentication_token", "UxWCCPpLvx9s6EeN9LLD"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["user_id", 4]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'na5AyirzUbLwspRyjpVQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 3], ["user_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 3], ["auth_token", "na5AyirzUbLwspRyjpVQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (10.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 53ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 27ms (Views: 11.2ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 3]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$MHROtIKFP9V76OzccoVfVe8xBc.ZAGmO5YodphU1tr3tDcl2y9PjG"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'geViznmmbtvyFqZwk9rw' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 4], ["authentication_token", "geViznmmbtvyFqZwk9rw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["user_id", 5]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GcBCzGRycaVRM15Nrugu' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 4], ["user_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 4], ["auth_token", "GcBCzGRycaVRM15Nrugu"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$fty4SrjQEjfo3qkOi17aWedlXQMmT6FraSlR7uxL8zZYK6yY96flm"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["user_id", 6]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oEsgtw3t9qqUfUiHHjpR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 4], ["user_id", 6], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 5], ["auth_token", "oEsgtw3t9qqUfUiHHjpR"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 26ms (Views: 7.8ms | ActiveRecord: 6.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/6" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"6"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 6 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 2.3ms) Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 8ms (Views: 5.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$eXWetL.JT9X0QXJ60kXyzO29ne52/6k6ff1kcMeuQRliL4rQIDfVK"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 7], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QMsQSB33p3z4XQEvZ1jX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 7], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 5], ["authentication_token", "QMsQSB33p3z4XQEvZ1jX"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 7]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qJnPhQ9K23MptBPvWchG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 5], ["user_id", 7], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 6], ["auth_token", "qJnPhQ9K23MptBPvWchG"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (15.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 19ms (Views: 8.1ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 5]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.6ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$coWUr0bLprBUg4CZL1H39OBN3FFOWbCnFPaUPk/c5DhRTngIrntdm"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 8]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's2sHCzqX1cdUQkA1DMKG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 5], ["user_id", 8], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 7], ["auth_token", "s2sHCzqX1cdUQkA1DMKG"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (19.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 201 Created in 150ms (Views: 18.0ms | ActiveRecord: 31.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/8" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"8"} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 8 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::Member Load (28.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 200 OK in 54ms (Views: 9.5ms | ActiveRecord: 31.4ms) Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Cadenero::V1::Account Load (46.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] Cadenero::V1::Account Load (26.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 201 Created in 89ms (Views: 8.6ms | ActiveRecord: 77.7ms) Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (18.1ms) ROLLBACK  (4.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$aqWurEG8cL.bwCQADR6aMuC30RIn7waHpGuonIDDhaxX0azbc2zvW"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (3.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 9], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MyxdmJ14Kohu4qvxGc1x' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 9], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 6], ["authentication_token", "MyxdmJ14Kohu4qvxGc1x"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 9]] Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SfuA57PpxkDBHMCapQaP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 6], ["user_id", 9], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 8], ["auth_token", "SfuA57PpxkDBHMCapQaP"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::Member Load (7.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 29ms (Views: 7.4ms | ActiveRecord: 11.3ms) Cadenero::V1::Account Load (7.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (9.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 6]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"9", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (37.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.7ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$wEWm/dem1Gymvy/r0Jf03.NAbEp0C5thbR3bJcQBcLvRcQjb4W1US"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 10], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZooxyrjYKVMxfTTZJyUF' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (4.1ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 10], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 7], ["authentication_token", "ZooxyrjYKVMxfTTZJyUF"]]  (9.9ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 10]] Cadenero::Member Load (5.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PdofgbsRhbgYgjcZ7Ha4' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (4.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 7], ["user_id", 10], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 9], ["auth_token", "PdofgbsRhbgYgjcZ7Ha4"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (7.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (7.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (9.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (31.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (26.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (12.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 21ms (Views: 0.4ms | ActiveRecord: 16.4ms) Cadenero::V1::Account Load (10.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (29.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.0ms) ROLLBACK  (0.3ms) BEGIN  (1.8ms) SAVEPOINT active_record_1 SQL (8.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$EgAWk0pjQHalaJCgxRNPROIinfQ6ZBACLOCbTN7zj/pCuek9gdKce"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]]  (6.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 11], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YCAqxVCkRzqRpqYzg9j7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (5.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 11], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 8], ["authentication_token", "YCAqxVCkRzqRpqYzg9j7"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 11]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wCQi6LLYMsxxER9TRxAs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 8], ["user_id", 11], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 10], ["auth_token", "wCQi6LLYMsxxER9TRxAs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 8]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (46.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$XqbkGEMOU4ETrXIt1sercuIHCJ56r8pQGqMOzpk9BkAT4C06D8d7e"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YEUuHQJhpHTFKpuokG4v' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 12], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 9], ["authentication_token", "YEUuHQJhpHTFKpuokG4v"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 12]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D7J4rZFUsB2Tm563C5sS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 9], ["user_id", 12], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 11], ["auth_token", "D7J4rZFUsB2Tm563C5sS"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (30.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (26.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (11.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (9.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (10.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.5ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$qqXGfssZsY3uqb02WHIIruEgy/rcHKd7KNusN2mXTGzzZSoiQIfbe"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QGrfiJ9UmxHjX55qUTZG' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 10], ["authentication_token", "QGrfiJ9UmxHjX55qUTZG"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 13]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZqvbTozUEJXdXkgUsnzL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 10], ["user_id", 13], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 12], ["auth_token", "ZqvbTozUEJXdXkgUsnzL"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$L04SR99ZbFNFEzM85cQMSOrHdeHQYQHpHbziZdRqnwhcbkkGcGz0W"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TbDGhZghnzs5fvoSWpWF' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 11], ["authentication_token", "TbDGhZghnzs5fvoSWpWF"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 14]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bCxQCjKJVPDVEkz2Xq8A' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 11], ["user_id", 14], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 13], ["auth_token", "bCxQCjKJVPDVEkz2Xq8A"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 10]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.8ms) ROLLBACK  (0.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 50ms (Views: 47.4ms | ActiveRecord: 1.2ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (1.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fMipLurF8Xh2RkRo9nTR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 14], ["auth_token", "fMipLurF8Xh2RkRo9nTR"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.3ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8KUcThhs68r7iOnL96idw.tVk8mX2dT48xmnDvJ7IO.gnUxq9ZQT6"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oUptgVex9kQ538eVMmKH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 12], ["authentication_token", "oUptgVex9kQ538eVMmKH"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 15]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KXFMLUgszqgfaQPJ3CgJ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 12], ["user_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 15], ["auth_token", "KXFMLUgszqgfaQPJ3CgJ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]]  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.8ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.1ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$939bH5G9e2/ZIvhryZTCF.L4EqvaSwBLno33wlhr5uWTEpug.PunC"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Testy"], ["owner_id", 16], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Peu551rRLYiVs7wWcsU5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 13], ["authentication_token", "Peu551rRLYiVs7wWcsU5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 16]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ckWTmuX7bZW7NPkiLrqr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 13], ["user_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 16], ["auth_token", "ckWTmuX7bZW7NPkiLrqr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 13) LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 13]] Completed 201 Created in 146ms (Views: 6.5ms | ActiveRecord: 43.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$aztgeGi2ItieZ2bx9asnEeDhNuMM2Zv4zSfM/spe.by8sXWY8tWgG"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G8egJttYZVpd3FTKcNuM' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 17], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 14], ["authentication_token", "G8egJttYZVpd3FTKcNuM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$0Uk.vi5rfuBITsE8O2ROWeps1NuCCPCooUprctDEshXIZ49WtWZ5C"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 18], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GnwZVZpcKAERqWAsiYKN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 18], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 15], ["authentication_token", "GnwZVZpcKAERqWAsiYKN"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 18]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GCU9tqRXS4qdPPVPx2Km' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 15], ["user_id", 18], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 17], ["auth_token", "GCU9tqRXS4qdPPVPx2Km"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$keOSCtnIAvIUSzsa.k0Ix.mhbm8x2AFmHHjXeK..8LFD2Ds6pdyd2"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] SQL (2.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 19]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iAZrz55AsPTmAVBAdxsp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 15], ["user_id", 19], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 18], ["auth_token", "iAZrz55AsPTmAVBAdxsp"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 19 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 19]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] Completed 201 Created in 25ms (Views: 6.3ms | ActiveRecord: 6.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/19" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"19"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 19 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 19 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 19]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$Tnv95M/TEpOTZpK4.SXjbe7K09mYg.PERotERUWPTc8FrYysiBXoO"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 20], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szqL2kcKsnB4D64PUU27' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 20], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 16], ["authentication_token", "szqL2kcKsnB4D64PUU27"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 20]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CMCoeyzyEuWVwNfzuzxC' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 16], ["user_id", 20], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 19], ["auth_token", "CMCoeyzyEuWVwNfzuzxC"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HZvwz6XUL.vGnjmf8OVEIO1YMaP1vjwHz3/BFCocY9TLv3xyU/L5e"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 21]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pBKUzK4CwCh1aY3ey4hQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 16], ["user_id", 21], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 20], ["auth_token", "pBKUzK4CwCh1aY3ey4hQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Completed 201 Created in 22ms (Views: 6.1ms | ActiveRecord: 4.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/21" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"21"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 21 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 16]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 21], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pV9qqqkCRwzyazQyyyLZ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 21], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 17], ["authentication_token", "pV9qqqkCRwzyazQyyyLZ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 21]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'su9PzwcF3psLrX7yeQLG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 17], ["user_id", 21], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 21], ["auth_token", "su9PzwcF3psLrX7yeQLG"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$xuLvfVsU.McYVtvjsDBXjO/HRamMAD9FrDC.ew4KRkoljPcdwacI6"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 22]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '367fpEyTtP11aYk34T1s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 22 [["account_id", 17], ["user_id", 22], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 22], ["auth_token", "367fpEyTtP11aYk34T1s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 22 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 22]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] Completed 201 Created in 23ms (Views: 6.7ms | ActiveRecord: 4.7ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/22" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"22"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 22 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 17]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 22 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 22]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.2ms) Started GET "/v1/users/21" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"21"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 21 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 16]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.2ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 16]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 20]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 20]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 20]] Completed 200 OK in 19ms (Views: 13.6ms | ActiveRecord: 3.5ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (13.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (1.6ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (1.4ms) SELECT currval('cadenero_accounts_id_seq'); PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session : SELECT currval('cadenero_accounts_id_seq');  (0.3ms) SELECT currval('cadenero_users_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false)) PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session : SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_users_id_seq');  (0.3ms) SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false)) PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (9.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 131ms (Views: 118.3ms | ActiveRecord: 12.1ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session : SELECT currval('cadenero_accounts_id_seq');  (0.3ms) SELECT currval('cadenero_users_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false)) PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 1.1ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session : SELECT currval('cadenero_accounts_id_seq');  (0.3ms) SELECT currval('cadenero_users_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_users_id_seq');  (0.3ms) SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false)) PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))  (0.2ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session : SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false)) PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))  (0.8ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (1.4ms) SELECT currval('cadenero_accounts_id_seq'); PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session : SELECT currval('cadenero_accounts_id_seq');  (0.3ms) SELECT currval('cadenero_users_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT currval('cadenero_members_id_seq'); PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false)) PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (4.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$/Vdx0GGOhlqzy5FQhvHOH.KrEtHQ0Dabm/79DFT65idFDmG7TeyHO"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["name", "Test Account"], ["owner_id", 23], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZYLgvhCG2m5qZ1Es2aic' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 18 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 23], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 18], ["authentication_token", "ZYLgvhCG2m5qZ1Es2aic"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 18], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["user_id", 23]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GyYsPbqpSQg4yW8x2Gg2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 23 [["account_id", 18], ["user_id", 23], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 23], ["auth_token", "GyYsPbqpSQg4yW8x2Gg2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 18]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1PuEspPrwttXtEykvJZc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 24 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 24], ["auth_token", "1PuEspPrwttXtEykvJZc"]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (15.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$ifrmIuGm0RZGFE1YCQ6eZ.S/gHliZ8wMENliiX.S0tGZzLsxJLeC2"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 24], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XCZDA2xxU16bAzBp9MN5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 19 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 24], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 19], ["authentication_token", "XCZDA2xxU16bAzBp9MN5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 19], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["user_id", 24]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AWWCfmqPctno5cG8fDep' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 25 [["account_id", 19], ["user_id", 24], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 25], ["auth_token", "AWWCfmqPctno5cG8fDep"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 41ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 19]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 24]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Completed 201 Created in 23ms (Views: 9.8ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 19]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (14.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$FOxrrYA0eiz8IxbiLGfPA..JNY3BZx95EoWvB8FbCNo9JKbrOQWYy"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 25], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nDG2y6dyBxBCzjnMK9sC' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 20 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 25], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 20], ["authentication_token", "nDG2y6dyBxBCzjnMK9sC"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 20], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 25]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P1X4XzxB696adzsXVLAq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 26 [["account_id", 20], ["user_id", 25], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 26], ["auth_token", "P1X4XzxB696adzsXVLAq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$jfF04uv2L4cOSIhf18qLAuIutCkRK1CMi3eyu/rqKtJs8Dbaj415K"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 20], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 26]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Aqp2SwzijKWzvD7psTRw' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 27 [["account_id", 20], ["user_id", 26], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 27], ["auth_token", "Aqp2SwzijKWzvD7psTRw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 26 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 26]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] Completed 201 Created in 23ms (Views: 6.6ms | ActiveRecord: 4.7ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/26" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"26"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 26 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 20]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 26 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 26]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 26 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 26]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 26 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$xW14HMXns3FOdXMobThvfOjbfmn9.5o1bpNDj1SDMXM2Xm0U98gLu"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 27], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6PzqKebiYYfQdGaSrX44' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 21 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 27], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 21], ["authentication_token", "6PzqKebiYYfQdGaSrX44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 21], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 27]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ypUzsuSPftj4PWaRb3Gr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 28 [["account_id", 21], ["user_id", 27], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 28], ["auth_token", "ypUzsuSPftj4PWaRb3Gr"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 21]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 27 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 27]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] Completed 201 Created in 16ms (Views: 6.9ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 21]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"27", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 27 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$QKq3oVxUd3TW/lB81VM/Det2NTLHF7/1ueOKWeWhYrliErntCLtLW"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 21], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 28]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzWppq6RcsPkyDg4wPKQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 29 [["account_id", 21], ["user_id", 28], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 29], ["auth_token", "qzWppq6RcsPkyDg4wPKQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 28 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 28]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] Completed 201 Created in 22ms (Views: 6.4ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/28" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"28"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 28 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 21]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 28 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 28]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] Completed 200 OK in 62ms (Views: 56.4ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 28 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 28]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] Completed 201 Created in 9ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$ZQ6ixZgbokAPCvJvwtg18.oZLTQiqb7gO0HOHxS19OR5k.LqiGyFu"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 29], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vG57a5Jy6zhL9TFAyd4c' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 22 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 29], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 22], ["authentication_token", "vG57a5Jy6zhL9TFAyd4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 22], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 29]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dsbGmWzzjEWzxENZxzvf' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 30 [["account_id", 22], ["user_id", 29], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 30], ["auth_token", "dsbGmWzzjEWzxENZxzvf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 22]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 29 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 29]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 29]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 29]] Completed 201 Created in 16ms (Views: 6.4ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 22]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"29", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 29 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.0ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$YkedX9A0R23nqPy/HeeHA.P5jjQGkxX5P7al0voHSFlWwz8oEDdLO"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 30], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uyWMpXzkZ6B3njjLUuyX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 23 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 30], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 23], ["authentication_token", "uyWMpXzkZ6B3njjLUuyX"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 23], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 30]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kDkPQJkAJa7kSYQpQGqZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 31 [["account_id", 23], ["user_id", 30], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 31], ["auth_token", "kDkPQJkAJa7kSYQpQGqZ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 23]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.4ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$jXUJrPuyWUBb9eqFRUq82.rmzRr8/gx1nmL6q3RC4mSJlV3TfZgXS"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 31], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XbpUkX8xipwqz1syg9mq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 24 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 31], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 24], ["authentication_token", "XbpUkX8xipwqz1syg9mq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 24], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 31]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YdWpaD67wpqMSACVx8zp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 32 [["account_id", 24], ["user_id", 31], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 32], ["auth_token", "YdWpaD67wpqMSACVx8zp"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 24]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.1ms) SELECT currval('cadenero_members_id_seq');  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$ZeCcUlvIdTXVuMsuYTkJy.SlAvpGKVM91dtgKIj5a3D.RU7N76sfi"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 32], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QoYhEmqqJzhV53XSx8Aw' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 25 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 32], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 25], ["authentication_token", "QoYhEmqqJzhV53XSx8Aw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 25], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 32]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QNqGoxNPyAampMAnhVqT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 33 [["account_id", 25], ["user_id", 32], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 33], ["auth_token", "QNqGoxNPyAampMAnhVqT"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$lcd16HAim6EWzZ5ZMHQtvuiwgc2pu3V9Ud71DsMSu1PsVzgPv0hOC"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 33], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q624cZZfPUqsWupjdodf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 26 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 33], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 26], ["authentication_token", "q624cZZfPUqsWupjdodf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 26], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 33]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p8HnP6i1xT22d6QWp4i2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 34 [["account_id", 26], ["user_id", 33], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 34], ["auth_token", "p8HnP6i1xT22d6QWp4i2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$CYSlta2QPddv/YzIrBF.T.oinFXdXHiZE3L218cpbwuG3jmIU6WQa"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 34], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JyaUDpWutBzUZUZfXmKg' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 27 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 34], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 27], ["authentication_token", "JyaUDpWutBzUZUZfXmKg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 27], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["user_id", 34]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jYMfRZfNRTpTWLvmexiW' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 35 [["account_id", 27], ["user_id", 34], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 35], ["auth_token", "jYMfRZfNRTpTWLvmexiW"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 26]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.1ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:41:57 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$EvFIvztJ2Lbmcu7Z.vPLJegJZg5LGHHpQVS0w536OZLMlo6OoBvpS"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["name", "Testy"], ["owner_id", 35], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'm3zL6zb5ch2Tyq2iZM1n' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 28 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 35], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 28], ["authentication_token", "m3zL6zb5ch2Tyq2iZM1n"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 28], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["user_id", 35]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YpszrayxYzm7cZjYSyso' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 36 [["account_id", 28], ["user_id", 35], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 36], ["auth_token", "YpszrayxYzm7cZjYSyso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 28) LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 35 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 28]] Completed 201 Created in 122ms (Views: 6.3ms | ActiveRecord: 39.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Uf3CDlfwznl/DCqQpUyUJ.H0kgSmcesPbS8jzIAYgMzmSqHLuqkFa"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["name", "Testy"], ["owner_id", 36], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Nghw5RGkeKpZnpbpHU6j' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 29 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 36], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 29], ["authentication_token", "Nghw5RGkeKpZnpbpHU6j"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:41:57 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 18ms (Views: 0.4ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.1ms) SELECT currval('cadenero_users_id_seq');  (0.5ms) SELECT currval('cadenero_members_id_seq');  (13.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$7AaNuwnXQHzk4G5zJMORcO42lT04riAz0oPNMaNag3E/oX/kvE8M2"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 37], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZDqFufyy5pzTcGXz9GmS' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 30 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 37], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 30], ["authentication_token", "ZDqFufyy5pzTcGXz9GmS"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 30], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["user_id", 37]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'huyAgKxgENmHNuVWxKMB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 37 [["account_id", 30], ["user_id", 37], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 37], ["auth_token", "huyAgKxgENmHNuVWxKMB"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$xlVEFb1Y6F4aOxdsBzuYH.SgKMZfa8H3yxqKZ3wkBQWzBOqsoBp3q"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$5xq058ywrGLmvamIGDJcP.pBvJgHa2N4J76QdD/xU/EGX3plAqKXy"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["name", "Root"], ["owner_id", 39], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aB3z3vceAwia17G4C4jA' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 31 [["name", "Root"], ["subdomain", "www"], ["owner_id", 39], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 31], ["authentication_token", "aB3z3vceAwia17G4C4jA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 31], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["user_id", 39]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aGoYnTpyPmPQxhmq44Tq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 38 [["account_id", 31], ["user_id", 39], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 38], ["auth_token", "aGoYnTpyPmPQxhmq44Tq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (11.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (11.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.1ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (11.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$eKJmFpfM21etTRVWf610p.b.SacC6kEi9Inb.YzS2zokngALFTBHK"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 40], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yZ14yMozaznvveqYz75m' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 32 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 40], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 32], ["authentication_token", "yZ14yMozaznvveqYz75m"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 32], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 40]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iwsAcyMJZZgjiJpNZxmy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 39 [["account_id", 32], ["user_id", 40], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 39], ["auth_token", "iwsAcyMJZZgjiJpNZxmy"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$pjc6QFPZ5yNqw0XL5irFeOwNrL7Me7EZvEUoKIZc6tV.pAGROq3.S"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 32], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 41]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rv4noSZVzVnqSaHo2SUQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 40 [["account_id", 32], ["user_id", 41], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 40], ["auth_token", "rv4noSZVzVnqSaHo2SUQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 41 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Completed 201 Created in 23ms (Views: 6.9ms | ActiveRecord: 4.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/41" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"41"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 41 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 32]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 41 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.3ms)  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$nHrt/NOYfcenYZjZRI0h6eBgeb2w0cQ5z9P.BToeoFlt7JYZQSmGC"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 42], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vpY2xv83Vq9tZDGr1bD9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 33 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 42], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 33], ["authentication_token", "vpY2xv83Vq9tZDGr1bD9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 33], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 42]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xgy9qSdu5cDvaTeuJnxN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 41 [["account_id", 33], ["user_id", 42], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 41], ["auth_token", "Xgy9qSdu5cDvaTeuJnxN"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$6qSlu8vrvd.stjC4fKr0Z.dGvIpbttIehBjjUh0o.nQi4Qq2CISdi"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 33], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 43]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hN3mBZGUFs4LTCihgo4y' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 42 [["account_id", 33], ["user_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 42], ["auth_token", "hN3mBZGUFs4LTCihgo4y"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Completed 201 Created in 23ms (Views: 6.2ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/43" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"43"} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 43 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 33]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.8ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 43], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kqWxdEzLc7K7hopWBc5f' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 34 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 34], ["authentication_token", "kqWxdEzLc7K7hopWBc5f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 34], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 43]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'exBK2w47QdJyXsawjjzy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 43 [["account_id", 34], ["user_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 43], ["auth_token", "exBK2w47QdJyXsawjjzy"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.8ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$gQlrLzAQI315Bxt9fsDT6OEoCyd03OjEnAFjgVfgdsa/eCqiREqn."], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 34], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 44]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rGq6GqAWFQabMxtpj7J8' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 44 [["account_id", 34], ["user_id", 44], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 44], ["auth_token", "rGq6GqAWFQabMxtpj7J8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 44 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 44]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] Completed 201 Created in 25ms (Views: 6.2ms | ActiveRecord: 7.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/44" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"44"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 44 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 34]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 44 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 44]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] Completed 200 OK in 13ms (Views: 5.9ms | ActiveRecord: 2.4ms) Started GET "/v1/users/43" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"43"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 43 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 33]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 2.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 33]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 42]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 42]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 42]] Completed 200 OK in 56ms (Views: 50.6ms | ActiveRecord: 3.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.3ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 6ms (Views: 3.1ms | ActiveRecord: 2.6ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (0.2ms) SELECT currval('cadenero_accounts_id_seq');  (0.2ms) SELECT currval('cadenero_users_id_seq');  (0.2ms) SELECT currval('cadenero_members_id_seq');  (11.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (6.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 123ms (Views: 112.6ms | ActiveRecord: 9.8ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$m/uAliCSAsTe1OO8Rh/PPu30w5rz3iQJvnvVpZu8X2dJXK2rqCzpa"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 45], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fjbtvrGfHUYx3E68scHq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 35 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 45], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 35], ["authentication_token", "fjbtvrGfHUYx3E68scHq"]] SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 35], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 45]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EoUtpwbXyWywxVozk4jH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 45 [["account_id", 35], ["user_id", 45], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 45], ["auth_token", "EoUtpwbXyWywxVozk4jH"]]  (0.4ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Q7nLfmFMys.52oF5uR4Za.LGZKp3fNgn/U.DQrp8H38eowoRnyegS"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 35], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 46]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VsJc4zzPB6zftxD7YtNH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 46 [["account_id", 35], ["user_id", 46], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 46], ["auth_token", "VsJc4zzPB6zftxD7YtNH"]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 46 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 46]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] Completed 201 Created in 67ms (Views: 9.9ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/46" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"46"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 46 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 35]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 46 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 46]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] Completed 200 OK in 14ms (Views: 6.3ms | ActiveRecord: 2.6ms)  (4.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$nSedNT.xIN8LI2HlVys57OgQ/YFUsfSbX03KGqd/C9dHlyn0.eM22"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 47], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'surQe3xFvZJLeh5rEeXB' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 36 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 47], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 36], ["authentication_token", "surQe3xFvZJLeh5rEeXB"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 36], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 47]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eFYgw6zwApv5H5GdWisL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 47 [["account_id", 36], ["user_id", 47], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 47], ["auth_token", "eFYgw6zwApv5H5GdWisL"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$XXVdtjEtYqe4RhmCqZJ/luGeHPF.hPuU3zUkTZe5ciQ03LIHN7RY2"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 36], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 48]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CxzMxeMYTHq2X9gL1rmk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 48 [["account_id", 36], ["user_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 48], ["auth_token", "CxzMxeMYTHq2X9gL1rmk"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Completed 201 Created in 22ms (Views: 6.4ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/48" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"48"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 48 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 36]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Completed 200 OK in 61ms (Views: 55.1ms | ActiveRecord: 2.7ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 48], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LpyYHyDde8xV7qvqSNxx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 37 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 37], ["authentication_token", "LpyYHyDde8xV7qvqSNxx"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 37], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 48]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gcyCREPwqPajtdVtvHoa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 49 [["account_id", 37], ["user_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 49], ["auth_token", "gcyCREPwqPajtdVtvHoa"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$mB.cA/R2pNNqs2X/JL0fCOhfINeamhaZQjI57qV14dQzjAcPRBh6."], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 37], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 49]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VnASDyxA1b3pdyYPzosK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 50 [["account_id", 37], ["user_id", 49], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 50], ["auth_token", "VnASDyxA1b3pdyYPzosK"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 49 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 49]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] Completed 201 Created in 22ms (Views: 6.3ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/49" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"49"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 49 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 37]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 49 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 49]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.2ms) Started GET "/v1/users/48" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"48"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 48 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 36]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 2.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 36]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 47]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 47]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 47]] Completed 200 OK in 21ms (Views: 15.2ms | ActiveRecord: 3.7ms)  (8.8ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$.gkcEHD1y1m3CRvklUYMeOAmQiZLIlGrBQOvyvrhQKJ/rFfnYP8QO"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Testy"], ["owner_id", 50], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eUjZqAQCabyRDssyU7xy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 38 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 50], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 38], ["authentication_token", "eUjZqAQCabyRDssyU7xy"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 38], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 50]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D1SkV2U44SQGZWMbzWvi' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 51 [["account_id", 38], ["user_id", 50], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 51], ["auth_token", "D1SkV2U44SQGZWMbzWvi"]]  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 38) LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 50 LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 38]] Completed 201 Created in 93ms (Views: 6.3ms | ActiveRecord: 42.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.8ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$ayrWjLTcRJbpzR2dqrAkq.lvYdgEeY0JmoH.soi2XKpIAz4xmN00W"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Testy"], ["owner_id", 51], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vMn3FenReWtKwp7wpwAX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 39 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 51], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 39], ["authentication_token", "vMn3FenReWtKwp7wpwAX"]] Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 CACHE (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 22ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.8ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gXQ439ApgpjXhpmoa1ed' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 52 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 52], ["auth_token", "gXQ439ApgpjXhpmoa1ed"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$vNiNSCAb5tCJB2lcAlLrwugQGNZ/fQi6JMFQK5VxVlDQfGAbQp87."], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account"], ["owner_id", 52], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tQqPHyhitHUoW7tpp8Ru' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 40 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 52], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 40], ["authentication_token", "tQqPHyhitHUoW7tpp8Ru"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 40], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 52]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CaMr5kZKSkWRpFGE6i5M' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 53 [["account_id", 40], ["user_id", 52], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 53], ["auth_token", "CaMr5kZKSkWRpFGE6i5M"]]  (0.3ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 40]]  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (12.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users" SQL (4.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$fMcGYqeXtEZz7ZFqPAX3GuTjM9p3j9Te1lRRaFFXqNvIVxEB41UWe"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 53], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Lcjm8m7ueDZpD2expYkq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 41 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 53], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 41], ["authentication_token", "Lcjm8m7ueDZpD2expYkq"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 41], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 53]] Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qtD5RiFfLMLC1xV3sekk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 54 [["account_id", 41], ["user_id", 53], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 54], ["auth_token", "qtD5RiFfLMLC1xV3sekk"]] SQL (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$vlJtQxtoNpvKHmqUlGEM4OCRwUaYtQCdxYDowjOoRLwZXflR2tMyK"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$SvL0Vj86KC.G2xCOjf41HOLgvtYjdKhEQjfmrgmML7L.c53MZ6n7."], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Root"], ["owner_id", 55], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gyKjYsTnZfqApuCWNyuz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 42 [["name", "Root"], ["subdomain", "www"], ["owner_id", 55], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 42], ["authentication_token", "gyKjYsTnZfqApuCWNyuz"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 42], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 55]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hBwTXvyQF3NxMWKH6qS6' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 55 [["account_id", 42], ["user_id", 55], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 55], ["auth_token", "hBwTXvyQF3NxMWKH6qS6"]]  (0.2ms) CREATE SCHEMA "www" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$s6hvMZCwiUwArlz4P7/wkOcbZi2sC/KOXK97vYtoE1A5SmZFbDfyW"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 56], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ho4X4evd3BjJCqptTCqe' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 43 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 56], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 43], ["authentication_token", "Ho4X4evd3BjJCqptTCqe"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 56]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YUp2FuThRcbzzmujf82k' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 56 [["account_id", 43], ["user_id", 56], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 56], ["auth_token", "YUp2FuThRcbzzmujf82k"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$uVv6pPyxQF1.z0wSAe4diuhFvCJ36Ec1oYXLQDwNaivMr9YXXDMfi"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 57]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pcmjpZ16j7xzz88sNEnP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 57 [["account_id", 43], ["user_id", 57], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 57], ["auth_token", "pcmjpZ16j7xzz88sNEnP"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 57]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] Completed 201 Created in 25ms (Views: 6.7ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/57" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"57"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 57 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 43]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 57]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 57]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] Completed 201 Created in 10ms (Views: 6.0ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$BCezpHVEXVBDrPZ044wcf.vKJuzvDCQ5MnCoGnqUOtr1U/BO25yTC"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 58], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Do2AdxvBRpeNZZopRuEy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 44 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 58], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 44], ["authentication_token", "Do2AdxvBRpeNZZopRuEy"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 44], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 58]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yXLHuiahajPSxc1Nut49' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 58 [["account_id", 44], ["user_id", 58], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 58], ["auth_token", "yXLHuiahajPSxc1Nut49"]]  (0.3ms) CREATE SCHEMA "test6" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 44]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 58 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 58]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 58]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 58]] Completed 201 Created in 19ms (Views: 7.0ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 44]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"58", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 58 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$F0iukc4IW5M5J4P/fAQvzeIrUQNguPNO324Nd8XUj6KozhLRXYi5C"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 59], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LoW4SsehnrYLZLEZmGs4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 45 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 59], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 45], ["authentication_token", "LoW4SsehnrYLZLEZmGs4"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 45], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 59]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kZxybwniyxfygipt4dZD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 59 [["account_id", 45], ["user_id", 59], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 59], ["auth_token", "kZxybwniyxfygipt4dZD"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 45]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 59 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 59]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 59]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 59]] Completed 201 Created in 17ms (Views: 7.0ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 45]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 59 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (2.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$9uTaQHPjn1Azhmm1Cczo1unYv1CKazxQ6g6pWByKjEafhbEjFE0xS"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 60], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PJbfEFhTYeMxuMK1CxDo' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 46 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 60], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 46], ["authentication_token", "PJbfEFhTYeMxuMK1CxDo"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 46], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 60]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RNsttwybwxRTJMUbhZHt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 60 [["account_id", 46], ["user_id", 60], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 60], ["auth_token", "RNsttwybwxRTJMUbhZHt"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 46]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 60 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 60]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 60]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 60]] Completed 201 Created in 16ms (Views: 6.5ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 46]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"60", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 60 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$Xd1rG2CIctEu92IhECTWGu.1SVOomhFUSrVv/aZXjE58iSOfcmYEW"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 46], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 61]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UGpm2DMitB34tviHsDas' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 61 [["account_id", 46], ["user_id", 61], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 61], ["auth_token", "UGpm2DMitB34tviHsDas"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Completed 201 Created in 23ms (Views: 6.3ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/61" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"61"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 61 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 46]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.7ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.9ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$TeZkxG4GcncSmhcYEt3YqesJNivVSrpPkPOAfZyI5ZG.gqQawThyS"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 62], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xE9BsCpU9nYFy31PpqUE' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 47 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 62], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 47], ["authentication_token", "xE9BsCpU9nYFy31PpqUE"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 47], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 62]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j1az2qe6qg5pCskCxpf1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 62 [["account_id", 47], ["user_id", 62], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 62], ["auth_token", "j1az2qe6qg5pCskCxpf1"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.1ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 47]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$F1CRvSrb9fNyT3LuXjnsA.0fcg8xowVYVSStkV1ZxNAlK2S/K8WOS"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 63], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qLKhQGPpmpkyxg8w2utb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 48 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 63], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 48], ["authentication_token", "qLKhQGPpmpkyxg8w2utb"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 63]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oh9MZ6AZodyzx38KHazk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 63 [["account_id", 48], ["user_id", 63], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 63], ["auth_token", "oh9MZ6AZodyzx38KHazk"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$BWd/8KkM8HsNrWl8F5WkTeCneNjtDWOrbWJ74UdeqX5p9nDI9kmNK"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 64], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FcC1jz5oFezo1de7X1qZ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 49 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 64], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 49], ["authentication_token", "FcC1jz5oFezo1de7X1qZ"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 49], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 64]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tcZb9fUnmv9r31rSuFpX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 64 [["account_id", 49], ["user_id", 64], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 64], ["auth_token", "tcZb9fUnmv9r31rSuFpX"]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 48]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$CJbozutdr.pkWlTa.XI8Veh15hkVHyQpofxEcSL0ozNbhnuQtf/Sa"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 65], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ciusMEzTbJZ7JDCH3a6o' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 50 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 65], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 50], ["authentication_token", "ciusMEzTbJZ7JDCH3a6o"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 50], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 65]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5xyLVAsotxvyRHvxG6Yj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 65 [["account_id", 50], ["user_id", 65], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 65], ["auth_token", "5xyLVAsotxvyRHvxG6Yj"]]  (0.2ms) CREATE SCHEMA "test12" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (7.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 50]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$4X.TX/Yh.H7zyqLrVNdU8.NP0dVNTfVVIDjKLXrITR.JVN7JFfVOa"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 66], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RTaTsKqpXMxQxcjQpAtm' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 51 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 66], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 51], ["authentication_token", "RTaTsKqpXMxQxcjQpAtm"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 51], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 66]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MTvCMnJjCrnR5XCdLafy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 66 [["account_id", 51], ["user_id", 66], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 66], ["auth_token", "MTvCMnJjCrnR5XCdLafy"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (27.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (5.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:52 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.2ms) ROLLBACK TO SAVEPOINT active_record_1  (2.2ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 16ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:21:06 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (5.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1H77iAy2LXYXj8gWFcm2gOcOSlrLSzdc8x24NZCyXuDYM6Ghri/j."], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["name", "Testy"], ["owner_id", 67], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mQkz6EVGz6EEyK26KoZp' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 67, "created_at" = '2013-07-16 01:21:07.328686', "updated_at" = '2013-07-16 01:21:07.328686', "authentication_token" = 'mQkz6EVGz6EEyK26KoZp' WHERE "public"."cadenero_accounts"."id" = 52  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (15.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 52], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["user_id", 67]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jiKqjKqKpMbxsuip2NPh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 52, "user_id" = 67, "created_at" = '2013-07-16 01:21:07.396432', "updated_at" = '2013-07-16 01:21:07.396432', "auth_token" = 'jiKqjKqKpMbxsuip2NPh' WHERE "public"."cadenero_members"."id" = 67  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) CREATE SCHEMA "test"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 52) LIMIT 1 Completed 201 Created in 452ms (Views: 1.9ms | ActiveRecord: 67.5ms) Cadenero::V1::Account Load (6.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (9.8ms) ROLLBACK  (0.1ms) ROLLBACK  (1.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$XgXfJm7TFXqa2F8jkqvKHuPkSIWsIPNOLg5PRzp2ohb0QlauIW/pq"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["name", "Testy"], ["owner_id", 68], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R7Pm3Y3DVPZuaoCNqMDq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 68, "created_at" = '2013-07-16 01:21:07.696930', "updated_at" = '2013-07-16 01:21:07.696930', "authentication_token" = 'R7Pm3Y3DVPZuaoCNqMDq' WHERE "public"."cadenero_accounts"."id" = 53  (0.1ms) RELEASE SAVEPOINT active_record_2 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:21:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 113ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$zez/aeJgFul9IS0nEL/1tuTh2LoMQLgdUNEXjMk8qkUgHLvKocCna"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 69], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PuVxSZy9vLcNr6BkTmxn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 69, "created_at" = '2013-07-16 01:21:07.939499', "updated_at" = '2013-07-16 01:21:07.939499', "authentication_token" = 'PuVxSZy9vLcNr6BkTmxn' WHERE "public"."cadenero_accounts"."id" = 54  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 54], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["user_id", 69]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JXpZYttHbpVSqVsswx6a' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 54, "user_id" = 69, "created_at" = '2013-07-16 01:21:07.944858', "updated_at" = '2013-07-16 01:21:07.944858', "auth_token" = 'JXpZYttHbpVSqVsswx6a' WHERE "public"."cadenero_members"."id" = 68  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test1"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$re2MeiMXyOyqgbWaEejPxev.rsWG4hB5/Q3rqwIG0D1P7Hr58IVpW"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 54], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 70]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '42jWFv3jBQz6EyVgN8fk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 54, "user_id" = 70, "created_at" = '2013-07-16 01:21:08.118322', "updated_at" = '2013-07-16 01:21:08.118322', "auth_token" = '42jWFv3jBQz6EyVgN8fk' WHERE "public"."cadenero_members"."id" = 69  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 70 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 70 Completed 201 Created in 159ms (Views: 48.0ms | ActiveRecord: 4.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/70" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"70"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 54 AND "public"."cadenero_users"."id" = 70 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 70 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 70 Completed 200 OK in 15ms (Views: 8.4ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 70 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 70 Completed 201 Created in 9ms (Views: 6.2ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (20.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$fBgukGOh9tAY/Jy51Tk4dOniTA5QmZ3MkxRRfQ5vXyK3qQJRRHjMe"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 71], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x4my7sa46EyUbsqLVHmx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 71, "created_at" = '2013-07-16 01:21:08.387009', "updated_at" = '2013-07-16 01:21:08.387009', "authentication_token" = 'x4my7sa46EyUbsqLVHmx' WHERE "public"."cadenero_accounts"."id" = 55  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 55], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 71]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Y6PCjKpgFwqeDiCWGxgs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 55, "user_id" = 71, "created_at" = '2013-07-16 01:21:08.392422', "updated_at" = '2013-07-16 01:21:08.392422', "auth_token" = 'Y6PCjKpgFwqeDiCWGxgs' WHERE "public"."cadenero_members"."id" = 70  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test2"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 55 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 71 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 71 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 71 Completed 201 Created in 111ms (Views: 5.6ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 55 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"71", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$rwM9sFuuceQGGtiJFiLHnexglxYsUSqlnBiuVr1ODqxMIM/3io76S"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 55], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 72]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '47wmGyLdKxkstXJgFvif' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 55, "user_id" = 72, "created_at" = '2013-07-16 01:21:08.721383', "updated_at" = '2013-07-16 01:21:08.721383', "auth_token" = '47wmGyLdKxkstXJgFvif' WHERE "public"."cadenero_members"."id" = 71  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 72 Completed 201 Created in 113ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/72" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"72"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 55 AND "public"."cadenero_users"."id" = 72 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 72 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 72 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$T5W8Db.Cx84NDDsVNNKpE.KprilO2vmb6qmLNrlsjv/ILBt2smh82"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 73], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G8GtY5GHEP3ewheucbpe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 73, "created_at" = '2013-07-16 01:21:08.876371', "updated_at" = '2013-07-16 01:21:08.876371', "authentication_token" = 'G8GtY5GHEP3ewheucbpe' WHERE "public"."cadenero_accounts"."id" = 56  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 56], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 73]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FU8Ly41DxdUW4ooFU5FN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 56, "user_id" = 73, "created_at" = '2013-07-16 01:21:08.881888', "updated_at" = '2013-07-16 01:21:08.881888', "auth_token" = 'FU8Ly41DxdUW4ooFU5FN' WHERE "public"."cadenero_members"."id" = 72  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test3"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 56 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 73 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 73 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 73 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 73 Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 56 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 73 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$FbRUaICfxV7jz9U54/X58u9VpODl5cTHsY80nSd5VfpgSw50zMwD2"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 74], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CzSE1WbpGDxG7bhfs5g4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 74, "created_at" = '2013-07-16 01:21:09.177487', "updated_at" = '2013-07-16 01:21:09.177487', "authentication_token" = 'CzSE1WbpGDxG7bhfs5g4' WHERE "public"."cadenero_accounts"."id" = 57  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 57], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 74]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wuM2yzzTb5zyobkJ5poq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 57, "user_id" = 74, "created_at" = '2013-07-16 01:21:09.183440', "updated_at" = '2013-07-16 01:21:09.183440', "auth_token" = 'wuM2yzzTb5zyobkJ5poq' WHERE "public"."cadenero_members"."id" = 73  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test4"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 57 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 74 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 74 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 74 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 74 Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 57 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"74", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 74 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ntZIful4Xc34sDcitnT.Bezb2jxSg.lM9wfO/b3M.M.YRjUx8wFUa"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 75], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Da4aLUsw7pt94rMtMyoc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 75, "created_at" = '2013-07-16 01:21:09.480602', "updated_at" = '2013-07-16 01:21:09.480602', "authentication_token" = 'Da4aLUsw7pt94rMtMyoc' WHERE "public"."cadenero_accounts"."id" = 58  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 58], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 75]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vCzuZemC54GhobXQBzpq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 58, "user_id" = 75, "created_at" = '2013-07-16 01:21:09.486150', "updated_at" = '2013-07-16 01:21:09.486150', "auth_token" = 'vCzuZemC54GhobXQBzpq' WHERE "public"."cadenero_members"."id" = 74  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test5"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 58 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$EAOG77W5q8Gy8/wAu9Fd3.5wIRnyqpg3C9o66tR2Wiqrn5al7.65W"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 76], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iqzzDbRKhTZJvHZxZCxV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 76, "created_at" = '2013-07-16 01:21:09.671103', "updated_at" = '2013-07-16 01:21:09.671103', "authentication_token" = 'iqzzDbRKhTZJvHZxZCxV' WHERE "public"."cadenero_accounts"."id" = 59  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 59], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 76]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f9L1cb1MipihLhX3PAwD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 59, "user_id" = 76, "created_at" = '2013-07-16 01:21:09.676704', "updated_at" = '2013-07-16 01:21:09.676704', "auth_token" = 'f9L1cb1MipihLhX3PAwD' WHERE "public"."cadenero_members"."id" = 75  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test6"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Ko8aVDMDq5ABXCNTDPVwtegfpqoEtmFMCiTZBxhJPxTehRb9lk22m"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 77], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FfNqsCqFFyiM72XfQVvK' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 77, "created_at" = '2013-07-16 01:21:09.844640', "updated_at" = '2013-07-16 01:21:09.844640', "authentication_token" = 'FfNqsCqFFyiM72XfQVvK' WHERE "public"."cadenero_accounts"."id" = 60  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 60], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 77]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wY2dUFRbsrzZJcuBN3Sr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 60, "user_id" = 77, "created_at" = '2013-07-16 01:21:09.882433', "updated_at" = '2013-07-16 01:21:09.882433', "auth_token" = 'wY2dUFRbsrzZJcuBN3Sr' WHERE "public"."cadenero_members"."id" = 76  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test7"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 60 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.7ms) ROLLBACK  (0.1ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$EjCwjCghWVqWg112rJQ2UOTkTC4cyXzOO2ZygsijxvBL7A6vJhlFW"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 78], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DXGK1t91T9BFoyxysoFH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 78, "created_at" = '2013-07-16 01:21:10.070010', "updated_at" = '2013-07-16 01:21:10.070010', "authentication_token" = 'DXGK1t91T9BFoyxysoFH' WHERE "public"."cadenero_accounts"."id" = 61  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 61], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["user_id", 78]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sEWtyF4aL2NmkvKLujyp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 61, "user_id" = 78, "created_at" = '2013-07-16 01:21:10.076490', "updated_at" = '2013-07-16 01:21:10.076490', "auth_token" = 'sEWtyF4aL2NmkvKLujyp' WHERE "public"."cadenero_members"."id" = 77  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$fmDdiKwHvcLV4GtswSu3KuI02aQsQgUQ0WQjq.Gfy9Typ1RBihE86"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 79], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4S82QH52xHAe9sj64J1m' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 79, "created_at" = '2013-07-16 01:21:10.232509', "updated_at" = '2013-07-16 01:21:10.232509', "authentication_token" = '4S82QH52xHAe9sj64J1m' WHERE "public"."cadenero_accounts"."id" = 62  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 62], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["user_id", 79]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nFdv3xSgkqpR7jYoN5tx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 62, "user_id" = 79, "created_at" = '2013-07-16 01:21:10.239191', "updated_at" = '2013-07-16 01:21:10.239191', "auth_token" = 'nFdv3xSgkqpR7jYoN5tx' WHERE "public"."cadenero_members"."id" = 78  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:10 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:10 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 61 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_2 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$HTrBXi8nYWeyo8Eoh4c0HOIH9HtfShVamQ3tnkB5vZ4pAy5MfSkOm"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 80], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gKwetTBqgZK7rkvvwDvU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 80, "created_at" = '2013-07-16 01:21:20.739979', "updated_at" = '2013-07-16 01:21:20.739979', "authentication_token" = 'gKwetTBqgZK7rkvvwDvU' WHERE "public"."cadenero_accounts"."id" = 63  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 63], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["user_id", 80]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kNPXBouK3c4F1JD8Ggyp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 63, "user_id" = 80, "created_at" = '2013-07-16 01:21:20.746694', "updated_at" = '2013-07-16 01:21:20.746694', "auth_token" = 'kNPXBouK3c4F1JD8Ggyp' WHERE "public"."cadenero_members"."id" = 79  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$fyIOmX9S.t.tCqJB3mZ9Bu1nUKcgITfwo4mBItU652SAKXiX1JWFW"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HOr7vUpsdGOsqBdLkZaDz.HR.eWVBm0BqkllMe8KzSAc57dFOe7n6"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["name", "Root"], ["owner_id", 82], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GG4Xr33my4qnVJnZgbVf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 82, "created_at" = '2013-07-16 01:21:20.949784', "updated_at" = '2013-07-16 01:21:20.949784', "authentication_token" = 'GG4Xr33my4qnVJnZgbVf' WHERE "public"."cadenero_accounts"."id" = 64  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 64], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["user_id", 82]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MtXwHsxXdsip5JLXWsJV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 64, "user_id" = 82, "created_at" = '2013-07-16 01:21:20.961158', "updated_at" = '2013-07-16 01:21:20.961158', "auth_token" = 'MtXwHsxXdsip5JLXWsJV' WHERE "public"."cadenero_members"."id" = 80  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "www"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (5.0ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hxQ/pEu1Ikrbwjz71LFonOtoIo9JB.JdktDYSGAJMtqBQdH1gH2WG"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 83], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WsJVyvLRUzdAyvopCJer' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 83, "created_at" = '2013-07-16 01:21:21.271904', "updated_at" = '2013-07-16 01:21:21.271904', "authentication_token" = 'WsJVyvLRUzdAyvopCJer' WHERE "public"."cadenero_accounts"."id" = 65  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 65], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 83]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YJpWrUDXTztGMzCvn3Rs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 65, "user_id" = 83, "created_at" = '2013-07-16 01:21:21.277757', "updated_at" = '2013-07-16 01:21:21.277757', "auth_token" = 'YJpWrUDXTztGMzCvn3Rs' WHERE "public"."cadenero_members"."id" = 81  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 65 LIMIT 1  (4.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zRuu2xXu1x83gHM2KhSb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 01:21:21.652620', "updated_at" = '2013-07-16 01:21:21.652620', "auth_token" = 'zRuu2xXu1x83gHM2KhSb' WHERE "public"."cadenero_members"."id" = 82  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$cNEl12s5zyMDb.IJb92cXuWSmpCeWs4optZ64nB4d26/rIxccijtG"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 84], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'joFSJj9caUEYMDVDnsGx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 84, "created_at" = '2013-07-16 01:21:21.765276', "updated_at" = '2013-07-16 01:21:21.765276', "authentication_token" = 'joFSJj9caUEYMDVDnsGx' WHERE "public"."cadenero_accounts"."id" = 66  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 66], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 84]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ouXTVygstxFXug3kx6qo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 66, "user_id" = 84, "created_at" = '2013-07-16 01:21:21.771065', "updated_at" = '2013-07-16 01:21:21.771065', "auth_token" = 'ouXTVygstxFXug3kx6qo' WHERE "public"."cadenero_members"."id" = 83  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test11"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:21:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fJK//aY370P5.0iCt5soweHanTWgh1z6MnYCXLJHIKgPslJ3mkupW"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 66], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 85]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EQsLq3ChudWBKQP3daNz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 66, "user_id" = 85, "created_at" = '2013-07-16 01:21:21.927719', "updated_at" = '2013-07-16 01:21:21.927719', "auth_token" = 'EQsLq3ChudWBKQP3daNz' WHERE "public"."cadenero_members"."id" = 84  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 85 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 85 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 85 Completed 201 Created in 113ms (Views: 6.2ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/85" for 127.0.0.1 at 2013-07-15 20:21:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"85"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 66 AND "public"."cadenero_users"."id" = 85 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 85 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 85 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 85 Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 2.6ms)  (6.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$e6fFHN0umxvtOvz/Kg2FLOrfsOKtvVNg0Z5GXq.PyzEmMqzx/AJYy"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 86], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nCxW7UXvdy76u7BBNreB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 86, "created_at" = '2013-07-16 01:21:22.072778', "updated_at" = '2013-07-16 01:21:22.072778', "authentication_token" = 'nCxW7UXvdy76u7BBNreB' WHERE "public"."cadenero_accounts"."id" = 67  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 67], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 86]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EzGHvp4QNkCnyXZCdukB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 67, "user_id" = 86, "created_at" = '2013-07-16 01:21:22.080076', "updated_at" = '2013-07-16 01:21:22.080076', "auth_token" = 'EzGHvp4QNkCnyXZCdukB' WHERE "public"."cadenero_members"."id" = 85  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test12"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$24MuuVH9L0glZAjVODhYJeEbdN/O8n5hAWisFDyNeBHPtT3/HJjaa"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 67], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 87]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CpvFjdRTqTkLRqGeq1jD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 67, "user_id" = 87, "created_at" = '2013-07-16 01:21:22.296306', "updated_at" = '2013-07-16 01:21:22.296306', "auth_token" = 'CpvFjdRTqTkLRqGeq1jD' WHERE "public"."cadenero_members"."id" = 86  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 87 Completed 201 Created in 168ms (Views: 6.9ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/87" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"87"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 67 AND "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 87 Completed 200 OK in 25ms (Views: 13.9ms | ActiveRecord: 3.8ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 87], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eCPkYD31f5xpRDReqxgw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 87, "created_at" = '2013-07-16 01:21:22.349630', "updated_at" = '2013-07-16 01:21:22.349630', "authentication_token" = 'eCPkYD31f5xpRDReqxgw' WHERE "public"."cadenero_accounts"."id" = 68  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 68], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 87]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y3mYWgRtrzxqt4sqKAAR' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 68, "user_id" = 87, "created_at" = '2013-07-16 01:21:22.361490', "updated_at" = '2013-07-16 01:21:22.361490', "auth_token" = 'y3mYWgRtrzxqt4sqKAAR' WHERE "public"."cadenero_members"."id" = 87  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test13"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (5.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.5ms) SELECT version FROM "schema_migrations"  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$638y/AluGsbhR0YDDfos6eLKFgnElU56MWC9RsSHuJpJEGHfpIaLK"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 68], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 88]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jyaA8xqTXtPx9sKkPySc' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 68, "user_id" = 88, "created_at" = '2013-07-16 01:21:22.590966', "updated_at" = '2013-07-16 01:21:22.590966', "auth_token" = 'jyaA8xqTXtPx9sKkPySc' WHERE "public"."cadenero_members"."id" = 88  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 88 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 88 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 88 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 88 Completed 201 Created in 157ms (Views: 6.4ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/88" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"88"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 68 AND "public"."cadenero_users"."id" = 88 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 88 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 88 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 88 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 88 Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 2.3ms) Started GET "/v1/users/87" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"87"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 67 AND "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 87 Completed 200 OK in 15ms (Views: 7.9ms | ActiveRecord: 2.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 67 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 87 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 86 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 86 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 86 Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 3.1ms)  (7.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$BIc2deUnAtk5cm9MuLNCbuhccnpvouwErsBW60Ge5sgaJ6GwDX.Gy"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 89], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XB3vEarm5hV9pgiPscMB' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 89, "created_at" = '2013-07-16 01:22:03.227911', "updated_at" = '2013-07-16 01:22:03.227911', "authentication_token" = 'XB3vEarm5hV9pgiPscMB' WHERE "public"."cadenero_accounts"."id" = 69  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.6ms) SAVEPOINT active_record_2 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 69], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 89]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vXkeq6BksZSspnFxSeqT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 69, "user_id" = 89, "created_at" = '2013-07-16 01:22:03.340750', "updated_at" = '2013-07-16 01:22:03.340750', "auth_token" = 'vXkeq6BksZSspnFxSeqT' WHERE "public"."cadenero_members"."id" = 89  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) CREATE SCHEMA "test1"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yblmb2QhC5piigo7aZAtCuHw9hgczap2BiiBScJMETFRwBigtz93O"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 69], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 90]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z8dq4qMj6niiqhyPWgwp' LIMIT 1  (3.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 69, "user_id" = 90, "created_at" = '2013-07-16 01:22:03.549212', "updated_at" = '2013-07-16 01:22:03.549212', "auth_token" = 'z8dq4qMj6niiqhyPWgwp' WHERE "public"."cadenero_members"."id" = 90  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 90 Completed 201 Created in 212ms (Views: 91.2ms | ActiveRecord: 8.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/90" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"90"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 69 AND "public"."cadenero_users"."id" = 90 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 90 Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 90], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RRD2zD3jyQHd9r3wLbPb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 90, "created_at" = '2013-07-16 01:22:03.686990', "updated_at" = '2013-07-16 01:22:03.686990', "authentication_token" = 'RRD2zD3jyQHd9r3wLbPb' WHERE "public"."cadenero_accounts"."id" = 70  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 70], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 90]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eVjTFpo3WcHby8Wnctke' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 70, "user_id" = 90, "created_at" = '2013-07-16 01:22:03.692586', "updated_at" = '2013-07-16 01:22:03.692586', "auth_token" = 'eVjTFpo3WcHby8Wnctke' WHERE "public"."cadenero_members"."id" = 91  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$r5maBxAeXf//Q2Ccag5N6.6vIXZvP.RAc74hkkzQPsNcg6Wgeu6MK"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 70], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 91]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Rxs8zW7hkMFoD7g9vsGP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 70, "user_id" = 91, "created_at" = '2013-07-16 01:22:03.856008', "updated_at" = '2013-07-16 01:22:03.856008', "auth_token" = 'Rxs8zW7hkMFoD7g9vsGP' WHERE "public"."cadenero_members"."id" = 92  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 91 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 91 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 91 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 91 Completed 201 Created in 115ms (Views: 5.8ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/91" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"91"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 70 AND "public"."cadenero_users"."id" = 91 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 91 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 91 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 91 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 91 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.7ms) Started GET "/v1/users/90" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"90"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 69 AND "public"."cadenero_users"."id" = 90 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 90 Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 69 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 90 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 89 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 89 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 89 Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 2.4ms)  (7.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$PRnp1L9kt5Mre7MZH.kg0eRcU2mNM24O9RPINm5V5S3eTM1hDb2NS"], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 92], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EZ7YWYLysxtzkKYzbVqX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 92, "created_at" = '2013-07-16 01:22:04.046188', "updated_at" = '2013-07-16 01:22:04.046188', "authentication_token" = 'EZ7YWYLysxtzkKYzbVqX' WHERE "public"."cadenero_accounts"."id" = 71  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 71], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["user_id", 92]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jscU7Q7f8GTGXMneXVwv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 71, "user_id" = 92, "created_at" = '2013-07-16 01:22:04.052278', "updated_at" = '2013-07-16 01:22:04.052278', "auth_token" = 'jscU7Q7f8GTGXMneXVwv' WHERE "public"."cadenero_members"."id" = 93  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test3"  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:22:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zbhxhXerz3ik4KIJOOnArO7KvpMTLYd/ExKd.dfSGGirDyyCS79jK"], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 71], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["user_id", 93]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2EfEzVrh4cRcpxWQK1bE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 71, "user_id" = 93, "created_at" = '2013-07-16 01:22:04.255735', "updated_at" = '2013-07-16 01:22:04.255735', "auth_token" = '2EfEzVrh4cRcpxWQK1bE' WHERE "public"."cadenero_members"."id" = 94  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 93 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 93 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 93 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 93 Completed 201 Created in 132ms (Views: 7.0ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/93" for 127.0.0.1 at 2013-07-15 20:22:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"93"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 71 AND "public"."cadenero_users"."id" = 93 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 93 LIMIT 1 Cadenero::Member Load (7.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 93 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 93 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 93 Completed 200 OK in 20ms (Views: 7.1ms | ActiveRecord: 9.3ms)  (5.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (7.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 140ms (Views: 109.8ms | ActiveRecord: 10.8ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$.kVGApgEAdsfQlfd1.Iqn.inxYkpygD3tKqxuGfLAcmY7i96YJ04m"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 94], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hPHFVZFpMs9rsipxMDmW' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 72 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 94], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 72], ["authentication_token", "hPHFVZFpMs9rsipxMDmW"]] SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 72], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 94]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EmyzHQwVym7aTfcu75Rz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 95 [["account_id", 72], ["user_id", 94], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 95], ["auth_token", "EmyzHQwVym7aTfcu75Rz"]]  (0.4ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Hd70rx8lXAdgtXmHQMpgEuRlWpDxEv2pC5SqBNZaVwT2wjAfIGTM6"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 72], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 95]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Eh3gdBCJX62hkrapLpH2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 96 [["account_id", 72], ["user_id", 95], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 96], ["auth_token", "Eh3gdBCJX62hkrapLpH2"]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Completed 201 Created in 92ms (Views: 31.9ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/95" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"95"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 95 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 72]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Completed 200 OK in 13ms (Views: 6.2ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 95], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BbiVoxccnH3L4f6qpNzb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 73 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 95], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 73], ["authentication_token", "BbiVoxccnH3L4f6qpNzb"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 73], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 95]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cytzz8NH7ydpkAQz9RFV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 97 [["account_id", 73], ["user_id", 95], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 97], ["auth_token", "cytzz8NH7ydpkAQz9RFV"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$CwOaajNxFe7zIxUi4WQFyeye7zOv9D/Igs27mH4EU7oxRkphCDwFy"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 73], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 96]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hr53oHVYdsoXKpAHse37' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 98 [["account_id", 73], ["user_id", 96], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 98], ["auth_token", "Hr53oHVYdsoXKpAHse37"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 96]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] Completed 201 Created in 24ms (Views: 6.2ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/96" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"96"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 96 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 73]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 96]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.3ms) Started GET "/v1/users/95" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"95"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 95 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 72]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Completed 200 OK in 60ms (Views: 9.0ms | ActiveRecord: 2.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 72]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 94]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 94]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 94]] Completed 200 OK in 20ms (Views: 13.8ms | ActiveRecord: 3.3ms)  (13.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$Om5zGqE0697tFeFOZ7MjBeeWZGSTbAo/M2MQ6gZB88OKcruF8PwhS"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 97], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's11KSVKeMnqs2NP6KH7E' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 74 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 97], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 74], ["authentication_token", "s11KSVKeMnqs2NP6KH7E"]] SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 74], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 97]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'h2NBAj6eCMFpDP2CGnJa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 99 [["account_id", 74], ["user_id", 97], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 99], ["auth_token", "h2NBAj6eCMFpDP2CGnJa"]]  (0.5ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (21.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$FaZ5r/0W8IEMB/.Bea1pLeFPUsz1fT1O6aX9v4szALHEELSdMC0UG"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 74], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 98]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bS2MNGYCkpu1TzeC1kRZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 100 [["account_id", 74], ["user_id", 98], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 100], ["auth_token", "bS2MNGYCkpu1TzeC1kRZ"]] Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 98 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 98]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] Completed 201 Created in 25ms (Views: 6.5ms | ActiveRecord: 7.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/98" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"98"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 98 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 74]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 98 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 98]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.2ms)  (4.4ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zM11Ay3MSZyyxAUMu2Gy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 101 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 101], ["auth_token", "zM11Ay3MSZyyxAUMu2Gy"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$NvADpczK01p9XvyUrN1qge8aiGkwqT8EnkQSU4uG.0SGMfEdjUGfi"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Testy"], ["owner_id", 99], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qGEWe5TFCcfSS1TxP61X' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 75 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 99], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 75], ["authentication_token", "qGEWe5TFCcfSS1TxP61X"]] Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 24ms (Views: 0.3ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$kYURM60Mke7LcQOndlwz3eVUTsMfFCRAFZGNBfX8N7LR.pWH7I2a2"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Testy"], ["owner_id", 100], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PqNybkJxD9qsqNo71u9i' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 76 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 100], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 76], ["authentication_token", "PqNybkJxD9qsqNo71u9i"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 76], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 100]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pVurnsgEqeX67sBpEbAQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 102 [["account_id", 76], ["user_id", 100], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 102], ["auth_token", "pVurnsgEqeX67sBpEbAQ"]]  (0.2ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 76) LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 100 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 76]] Completed 201 Created in 92ms (Views: 5.4ms | ActiveRecord: 56.3ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (12.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$5i.ci4PJJGmgOdLwWcEJ7.ddZayh6a4a.5v3hCpirhHvffetSzFma"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 101], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S7xk1p6kfnZqTCZ5T4Qg' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 77 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 101], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 77], ["authentication_token", "S7xk1p6kfnZqTCZ5T4Qg"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 77], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EtiZsPQmPvsAHTvwKd8p' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 103 [["account_id", 77], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 103], ["auth_token", "EtiZsPQmPvsAHTvwKd8p"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 77]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 201 Created in 17ms (Views: 6.5ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 77]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"101", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$7hwIcr5mHUhNhYabKAjfJu7yC5Sc/4CQkFxo16bZlFwcFarUR5z3u"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 77], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 102]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yNK6XiRgvNbqc1UGKrzZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 104 [["account_id", 77], ["user_id", 102], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 104], ["auth_token", "yNK6XiRgvNbqc1UGKrzZ"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 102]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] Completed 201 Created in 21ms (Views: 6.1ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/102" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"102"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 102 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 77]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 102]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 102]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$s38eyqvzL0gZrkI2NSownewzuXC6tSU5FwTuv7TRx4wyCjAo976dy"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 103], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5prM48wEsLBeP5pMfRUN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 78 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 103], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 78], ["authentication_token", "5prM48wEsLBeP5pMfRUN"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 78], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 103]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JjWhpMnxXpq7C1ymyZaz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 105 [["account_id", 78], ["user_id", 103], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 105], ["auth_token", "JjWhpMnxXpq7C1ymyZaz"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$1WIdPvd3q8ouKCOOLfYTze48CKVKVUyC6chJytxV457SswxeL1bJq"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 78], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 104]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kqGeCpLZ9BnLfmQDqthk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 106 [["account_id", 78], ["user_id", 104], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 106], ["auth_token", "kqGeCpLZ9BnLfmQDqthk"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 104]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Completed 201 Created in 80ms (Views: 63.2ms | ActiveRecord: 4.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/104" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"104"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 104 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 78]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 104]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 2.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 104]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$2JK.R9NnGUNSUxFfuurJpO9ubBvMYGQZQeQpn2DW3fLFRW1sPbop2"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 105], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9GoUAq5qsyvUbRzojJEz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 79 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 105], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 79], ["authentication_token", "9GoUAq5qsyvUbRzojJEz"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 79], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 105]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4zjtxcDn157p3fcrw9Ye' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 107 [["account_id", 79], ["user_id", 105], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 107], ["auth_token", "4zjtxcDn157p3fcrw9Ye"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 79]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 105 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 105]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 105]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 105]] Completed 201 Created in 15ms (Views: 6.0ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 79]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 105 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$kNExYAIjRL3/Fv68AFgh5.C9vTwTydUjmSLkHYLEiKp1wReHkQgLC"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 106], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QkTf42tbS5ZBjZNadLxj' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 80 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 106], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 80], ["authentication_token", "QkTf42tbS5ZBjZNadLxj"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 80], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 106]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qJ7at2xSiMPq9UdGGTcK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 108 [["account_id", 80], ["user_id", 106], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 108], ["auth_token", "qJ7at2xSiMPq9UdGGTcK"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 80]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 106]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Completed 201 Created in 16ms (Views: 6.3ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 80]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"106", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.7ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$i5383Bc9RP02r.uxQKTbSeIyL33jW/V.ZF30njdcawGLk2tnJy82m"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 107], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iojFKUozBC5yssb7Ct5g' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 81 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 107], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 81], ["authentication_token", "iojFKUozBC5yssb7Ct5g"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 81], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 107]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's5D3GNyyCQfhAULddEzt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 109 [["account_id", 81], ["user_id", 107], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 109], ["auth_token", "s5D3GNyyCQfhAULddEzt"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$Ua5r2xEYmxGo.K6tvsQOzeULYYK6s4rBYeFgF9jK9gA.1G6nHLv.y"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 108], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7iFAhVTHkoZLBopHxqYt' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 82 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 108], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 82], ["authentication_token", "7iFAhVTHkoZLBopHxqYt"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 82], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 108]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dv4kWpnyuUMkVTxBxxEy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 110 [["account_id", 82], ["user_id", 108], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 110], ["auth_token", "dv4kWpnyuUMkVTxBxxEy"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 82]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.9ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$rHpFf32vofKnCPkU.aREfur9Uk66ffTajatAXYeG87iZXbVZ9QckO"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 109], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4zTw56sNiD4v3oW8mBLn' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 83 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 109], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 83], ["authentication_token", "4zTw56sNiD4v3oW8mBLn"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 83], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 109]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n1PWeuzXC9nx69mkRYjB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 111 [["account_id", 83], ["user_id", 109], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 111], ["auth_token", "n1PWeuzXC9nx69mkRYjB"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 83]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1  (4.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$D6UCRo7kUCmuQUJZeOhde.NPQrHllJQlg2XHAIObSC/jiSlGNCc.W"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 110], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '432JsnAxpyJ6R2LSGyKB' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 84 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 110], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 84], ["authentication_token", "432JsnAxpyJ6R2LSGyKB"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 84], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 110]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9orDdeDbBEuzqDesrbHs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 112 [["account_id", 84], ["user_id", 110], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 112], ["auth_token", "9orDdeDbBEuzqDesrbHs"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$BOI3SWm2mQH1t9p5sf39hOf1nXMdrJIoRHrZXmZ9ed8L.1/6GrlqW"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 111], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4DTGqAqBcLHpcAvHMWyH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 85 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 111], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 85], ["authentication_token", "4DTGqAqBcLHpcAvHMWyH"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 85], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 111]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MyBnucEUZcsJwHfbLKxX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 113 [["account_id", 85], ["user_id", 111], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 113], ["auth_token", "MyBnucEUZcsJwHfbLKxX"]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 84]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$d4WDKvKxEUdIyQPvUIoCVOrnUvjX.pZ2XytJZkwhh8eACyO9t5U4y"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account"], ["owner_id", 112], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'h92zJEKss8snEU9j4Rcr' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 86 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 112], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 86], ["authentication_token", "h92zJEKss8snEU9j4Rcr"]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 86], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 112]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sqyHrciRv2E2QUKS9rdP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 114 [["account_id", 86], ["user_id", 112], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 114], ["auth_token", "sqyHrciRv2E2QUKS9rdP"]]  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 86]]  (5.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$3q/QJyVDzHD/z7DQ8dPi..EeVEQw3yT5.XMRrzygjOJiZiZvkjL2C"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 113], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TfbkKEGNR88G5pPypc1b' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 87 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 113], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 87], ["authentication_token", "TfbkKEGNR88G5pPypc1b"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 87], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["user_id", 113]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jwzDApGuTmj9poSxzAnj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 115 [["account_id", 87], ["user_id", 113], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 115], ["auth_token", "jwzDApGuTmj9poSxzAnj"]] SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$GTpLH858jxI1BMw4S0T..uUz7zIOJpIbNabONmSRGP5w.2qPlFNeS"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Gx3za.vfHUuHzE5yUuGbpuuD7p274h3MFBBLUZdf7zTgdz1ZM5xR6"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["name", "Root"], ["owner_id", 115], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oqMH8qNTtywezLhEqaxV' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 88 [["name", "Root"], ["subdomain", "www"], ["owner_id", 115], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 88], ["authentication_token", "oqMH8qNTtywezLhEqaxV"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 88], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["user_id", 115]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6XHSgRstKBAiFjnTA6mR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 116 [["account_id", 88], ["user_id", 115], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 116], ["auth_token", "6XHSgRstKBAiFjnTA6mR"]]  (0.2ms) CREATE SCHEMA "www" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (9.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$dRAxsx..j/.pnYWcIjCJZeoHrFE2cXhexlWWVKVhRJOEz1ratmeri"], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 116], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'daUFzks7d7acTyabCyJW' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 116, "created_at" = '2013-07-16 01:25:06.603672', "updated_at" = '2013-07-16 01:25:06.603672', "authentication_token" = 'daUFzks7d7acTyabCyJW' WHERE "public"."cadenero_accounts"."id" = 89  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 89], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["user_id", 116]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EK9UsHyxux4AXHZznyTM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 89, "user_id" = 116, "created_at" = '2013-07-16 01:25:06.712855', "updated_at" = '2013-07-16 01:25:06.712855', "auth_token" = 'EK9UsHyxux4AXHZznyTM' WHERE "public"."cadenero_members"."id" = 117  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) CREATE SCHEMA "test1"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:25:06 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$nyx8nwAMkNrcRR8UvdHe1.WSeRASzcvechQX9u1NdN6I6tmXaurA."], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 89], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["user_id", 117]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TmKVvxu3ELtxjFK25hzt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 89, "user_id" = 117, "created_at" = '2013-07-16 01:25:06.923888', "updated_at" = '2013-07-16 01:25:06.923888', "auth_token" = 'TmKVvxu3ELtxjFK25hzt' WHERE "public"."cadenero_members"."id" = 118  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 117 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 117 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 117 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 117 Completed 201 Created in 203ms (Views: 82.5ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/117" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"117"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 89 AND "public"."cadenero_users"."id" = 117 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 117 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 117 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 117 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 117 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.8ms)  (6.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$t7THmNKQIbUr7f4X3Lf0JuZNQkXvhOBcDkg6UDCg9Ibjf45vO121S"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 118], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nuuN7DpWS8isXZrxPT7L' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 118, "created_at" = '2013-07-16 01:25:07.174339', "updated_at" = '2013-07-16 01:25:07.174339', "authentication_token" = 'nuuN7DpWS8isXZrxPT7L' WHERE "public"."cadenero_accounts"."id" = 90  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 90], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 118]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xj1NyYxRhJfjFyr9yLwj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 90, "user_id" = 118, "created_at" = '2013-07-16 01:25:07.179809', "updated_at" = '2013-07-16 01:25:07.179809', "auth_token" = 'Xj1NyYxRhJfjFyr9yLwj' WHERE "public"."cadenero_members"."id" = 119  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test2"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (26.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IAhOYiu7xApZPYJB4z6xker78RHKA8jENfxaTbt3QqU/00i/3Axty"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 90], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 119]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'U7q7gbRxaLqsKqkYWiTN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 90, "user_id" = 119, "created_at" = '2013-07-16 01:25:07.429489', "updated_at" = '2013-07-16 01:25:07.429489', "auth_token" = 'U7q7gbRxaLqsKqkYWiTN' WHERE "public"."cadenero_members"."id" = 120  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 119 Completed 201 Created in 176ms (Views: 6.7ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/119" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"119"} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 90 AND "public"."cadenero_users"."id" = 119 LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 119 Completed 200 OK in 14ms (Views: 6.7ms | ActiveRecord: 4.1ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 119], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ieuJzSZELwujbREPzqJh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 119, "created_at" = '2013-07-16 01:25:07.468863', "updated_at" = '2013-07-16 01:25:07.468863', "authentication_token" = 'ieuJzSZELwujbREPzqJh' WHERE "public"."cadenero_accounts"."id" = 91  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 91], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 119]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N8x9KexP5en8EEcvadoj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 91, "user_id" = 119, "created_at" = '2013-07-16 01:25:07.474983', "updated_at" = '2013-07-16 01:25:07.474983', "auth_token" = 'N8x9KexP5en8EEcvadoj' WHERE "public"."cadenero_members"."id" = 121  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) CREATE SCHEMA "test3"  (3.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.6ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$SRN9wVx9Thyy.gsqNTabm.aaFnFvnl3w0AA7Jxn7ZBeeqHohgqWd2"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 91], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 120]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cYhtZnBJJ2xBjobpY3bx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 91, "user_id" = 120, "created_at" = '2013-07-16 01:25:07.649653', "updated_at" = '2013-07-16 01:25:07.649653', "auth_token" = 'cYhtZnBJJ2xBjobpY3bx' WHERE "public"."cadenero_members"."id" = 122  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 120 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 120 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 120 Completed 201 Created in 126ms (Views: 6.1ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/120" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"120"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 91 AND "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 120 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 120 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 120 Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 1.6ms) Started GET "/v1/users/119" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"119"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 90 AND "public"."cadenero_users"."id" = 119 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 119 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 90 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 119 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 118 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 118 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 118 Completed 200 OK in 19ms (Views: 13.0ms | ActiveRecord: 4.1ms)  (9.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (7.4ms) RELEASE SAVEPOINT active_record_1  (1.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SSNTx7s7HY8eprFALqsX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 01:25:07.860673', "updated_at" = '2013-07-16 01:25:07.860673', "auth_token" = 'SSNTx7s7HY8eprFALqsX' WHERE "public"."cadenero_members"."id" = 123  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Eu1jQGG47E51uQrX4ppXdOFHhuolzL/4s5Ff.nF614WSgKTMb9bku"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 121], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gusgWWwqf9RuGNKXBo3E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 121, "created_at" = '2013-07-16 01:25:08.200198', "updated_at" = '2013-07-16 01:25:08.200198', "authentication_token" = 'gusgWWwqf9RuGNKXBo3E' WHERE "public"."cadenero_accounts"."id" = 92  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 92], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["user_id", 121]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hr33LGcwLhCRcrQxiQKe' LIMIT 1  (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 92, "user_id" = 121, "created_at" = '2013-07-16 01:25:08.205710', "updated_at" = '2013-07-16 01:25:08.205710', "auth_token" = 'Hr33LGcwLhCRcrQxiQKe' WHERE "public"."cadenero_members"."id" = 124  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 92 LIMIT 1  (18.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:25:08 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$P6T/h/50DykwNC4LiC0Q1Oey0GXs8bt7QSeLbmXkvY5jg2G.EPDH2"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["name", "Testy"], ["owner_id", 122], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'byqyoS88pzsn8BkNTdaz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 122, "created_at" = '2013-07-16 01:25:08.676143', "updated_at" = '2013-07-16 01:25:08.676143', "authentication_token" = 'byqyoS88pzsn8BkNTdaz' WHERE "public"."cadenero_accounts"."id" = 93  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 93], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["user_id", 122]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3HbrGka8jszk6Y7FxQzg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 93, "user_id" = 122, "created_at" = '2013-07-16 01:25:08.682056', "updated_at" = '2013-07-16 01:25:08.682056', "auth_token" = '3HbrGka8jszk6Y7FxQzg' WHERE "public"."cadenero_members"."id" = 125  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 93) LIMIT 1 Completed 201 Created in 169ms (Views: 1.8ms | ActiveRecord: 40.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.1ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$l0tHHoCoqx4msGIprJ5VbOzmiI4mncmsKuVvlNV.MfLWtRi1EwI7K"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["name", "Testy"], ["owner_id", 123], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xEHdGuycSNy7v5Z3bE3b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 123, "created_at" = '2013-07-16 01:25:08.859206', "updated_at" = '2013-07-16 01:25:08.859206', "authentication_token" = 'xEHdGuycSNy7v5Z3bE3b' WHERE "public"."cadenero_accounts"."id" = 94  (0.1ms) RELEASE SAVEPOINT active_record_2 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:25:08 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 104ms (Views: 0.3ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$s.wMDM3YSxxhve7sNXnLbOAVvki0JUO7TDXZtQk.BVgkA2oy5pMtu"], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 124], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vxgdxpz4aA3Pzbx2g9a9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 124, "created_at" = '2013-07-16 01:25:11.814473', "updated_at" = '2013-07-16 01:25:11.814473', "authentication_token" = 'vxgdxpz4aA3Pzbx2g9a9' WHERE "public"."cadenero_accounts"."id" = 95  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 95], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["user_id", 124]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'r8PCiSC7qACH7iiSTH2s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 95, "user_id" = 124, "created_at" = '2013-07-16 01:25:11.821174', "updated_at" = '2013-07-16 01:25:11.821174', "auth_token" = 'r8PCiSC7qACH7iiSTH2s' WHERE "public"."cadenero_members"."id" = 126  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$J/lPPhOaUKtuRzIOjdjzvOBSvPQxA9OSZtgmqeUUSJrnAOB4Xe0Lu"], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$LnvP1.P6BTfSHzny3yKEFuxt5/pZioBY7vdfDRXGnsltcpTfNmE9y"], ["updated_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["name", "Root"], ["owner_id", 126], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C1ziTQFZhM7NgqNx71jx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 126, "created_at" = '2013-07-16 01:25:12.026253', "updated_at" = '2013-07-16 01:25:12.026253', "authentication_token" = 'C1ziTQFZhM7NgqNx71jx' WHERE "public"."cadenero_accounts"."id" = 96  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 96], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["user_id", 126]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qqPSFqWZ3sey2hjptGnp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 96, "user_id" = 126, "created_at" = '2013-07-16 01:25:12.031736', "updated_at" = '2013-07-16 01:25:12.031736', "auth_token" = 'qqPSFqWZ3sey2hjptGnp' WHERE "public"."cadenero_members"."id" = 127  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) CREATE SCHEMA "www"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (6.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.6ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Xk5RTcHvsQ4K7BEZzxwpWudzqepncHwOdrTXynlyBLLEmYkleweOC"], ["updated_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 127], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oGMDe72puUw7JdpEske8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 127, "created_at" = '2013-07-16 01:25:16.605942', "updated_at" = '2013-07-16 01:25:16.605942', "authentication_token" = 'oGMDe72puUw7JdpEske8' WHERE "public"."cadenero_accounts"."id" = 97  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 97], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["user_id", 127]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7BPxadCe4ASZzAEEePxy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 97, "user_id" = 127, "created_at" = '2013-07-16 01:25:16.617764', "updated_at" = '2013-07-16 01:25:16.617764', "auth_token" = '7BPxadCe4ASZzAEEePxy' WHERE "public"."cadenero_members"."id" = 128  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test5"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 97 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 127 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 127 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 127 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 127 Completed 201 Created in 112ms (Views: 5.9ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 97 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 127 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (9.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Ch6pcx6BYxqSTJfDIcYOheTYBVKgyT47qFvcKoQDqXH8uVVHwTpiW"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 128], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ziac3RcuYqd7ztqQrFax' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 128, "created_at" = '2013-07-16 01:25:17.015493', "updated_at" = '2013-07-16 01:25:17.015493', "authentication_token" = 'ziac3RcuYqd7ztqQrFax' WHERE "public"."cadenero_accounts"."id" = 98  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 98], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["user_id", 128]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HrH5StU387y1XfM4tAMh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 98, "user_id" = 128, "created_at" = '2013-07-16 01:25:17.021729', "updated_at" = '2013-07-16 01:25:17.021729', "auth_token" = 'HrH5StU387y1XfM4tAMh' WHERE "public"."cadenero_members"."id" = 129  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test6"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (97.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (22.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (25.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (42.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (37.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:17 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 98 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 128 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 128 Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 128 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 128 Completed 201 Created in 246ms (Views: 6.1ms | ActiveRecord: 10.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 98 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:17 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"128", "default"=>:json} Cadenero::User Load (10.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 128 LIMIT 1 Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 10.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:17 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.9ms) ROLLBACK  (0.1ms) ROLLBACK  (9.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (49.4ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$2NhWp0CX2RhCzG99Ztq.mOMk77SYipM.sJlDtlCl6OGd4pqR1SgrC"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 129], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DJCy6YfXwvt15H6oA57E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 129, "created_at" = '2013-07-16 01:25:17.887081', "updated_at" = '2013-07-16 01:25:17.887081', "authentication_token" = 'DJCy6YfXwvt15H6oA57E' WHERE "public"."cadenero_accounts"."id" = 99  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 99], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["user_id", 129]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uXNECkD9nR7CRg2tPEQS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 99, "user_id" = 129, "created_at" = '2013-07-16 01:25:17.893228', "updated_at" = '2013-07-16 01:25:17.893228', "auth_token" = 'uXNECkD9nR7CRg2tPEQS' WHERE "public"."cadenero_members"."id" = 130  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test7"  (22.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.0ms) SELECT version FROM "schema_migrations"  (7.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (5.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$yWaQ7iJzsEFZmSYSgqKx2uslk3YUaCwBse6KeWa5NjUHyDwyWHloq"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] SQL (5.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 99], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["user_id", 130]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9RW4FzxwGTouqpyDVNBy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 99, "user_id" = 130, "created_at" = '2013-07-16 01:25:18.154753', "updated_at" = '2013-07-16 01:25:18.154753', "auth_token" = '9RW4FzxwGTouqpyDVNBy' WHERE "public"."cadenero_members"."id" = 131  (0.1ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 130 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 130 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 130 Completed 201 Created in 141ms (Views: 5.6ms | ActiveRecord: 13.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/130" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"130"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 99 AND "public"."cadenero_users"."id" = 130 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 130 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 130 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 130 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 130 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 130 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 130 Completed 201 Created in 16ms (Views: 11.3ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (7.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$jKteI8FHFV4qdPjfqA0fAuKr5E6QZCAticoR.vVvEVcDh6bOfMiRq"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 131], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vikaiTZoYFptpwotPsqe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 131, "created_at" = '2013-07-16 01:25:18.418910', "updated_at" = '2013-07-16 01:25:18.418910', "authentication_token" = 'vikaiTZoYFptpwotPsqe' WHERE "public"."cadenero_accounts"."id" = 100  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 100], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["user_id", 131]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4GycpxGSB5fyc9wpSmi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 100, "user_id" = 131, "created_at" = '2013-07-16 01:25:18.424518', "updated_at" = '2013-07-16 01:25:18.424518', "auth_token" = 'q4GycpxGSB5fyc9wpSmi' WHERE "public"."cadenero_members"."id" = 132  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test8"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (12.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.7ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 100 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (12.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 131 LIMIT 1 Cadenero::Member Load (11.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 131 Cadenero::V1::Account Load (10.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 131 Cadenero::V1::Account Load (17.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 131 Completed 201 Created in 216ms (Views: 6.8ms | ActiveRecord: 53.3ms) Cadenero::V1::Account Load (10.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 100 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"131", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 131 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (3.4ms) SAVEPOINT active_record_2 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$fC.kXgxK06dcT9UG/5YLtOsCSvvbd0NWr9E6ovGrC8PS2dP9UnCxW"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] SQL (7.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 100], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["user_id", 132]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8dqREiqhnhkDgU3yTqeL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 100, "user_id" = 132, "created_at" = '2013-07-16 01:25:18.938760', "updated_at" = '2013-07-16 01:25:18.938760', "auth_token" = '8dqREiqhnhkDgU3yTqeL' WHERE "public"."cadenero_members"."id" = 133  (3.3ms) RELEASE SAVEPOINT active_record_2 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 132 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 132 Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 132 Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 132 Completed 201 Created in 169ms (Views: 16.7ms | ActiveRecord: 26.0ms) Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/132" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"132"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 100 AND "public"."cadenero_users"."id" = 132 LIMIT 1 Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 132 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 132 Cadenero::V1::Account Load (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 132 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 132 Completed 200 OK in 35ms (Views: 9.9ms | ActiveRecord: 20.7ms) Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 132 LIMIT 1 Cadenero::Member Load (5.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 132 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 132 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 132 Completed 201 Created in 14ms (Views: 5.8ms | ActiveRecord: 6.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) ROLLBACK  (2.5ms) BEGIN  (1.3ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1  (5.5ms) BEGIN  (14.9ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xvLsHiVUe.TwFC1I/KZzYO5zyKVLnNbmrtTVIcM4ks0cpAi6ZqmmO"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 133], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wu27JxsKs4osmbSDqY7m' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 133, "created_at" = '2013-07-16 01:25:19.285544', "updated_at" = '2013-07-16 01:25:19.285544', "authentication_token" = 'Wu27JxsKs4osmbSDqY7m' WHERE "public"."cadenero_accounts"."id" = 101  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 101], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["user_id", 133]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vzBxwXBwKt5Z4funDjEp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 101, "user_id" = 133, "created_at" = '2013-07-16 01:25:19.292481', "updated_at" = '2013-07-16 01:25:19.292481', "auth_token" = 'vzBxwXBwKt5Z4funDjEp' WHERE "public"."cadenero_members"."id" = 134  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test9"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (12.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 101 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.6ms) ROLLBACK  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) BEGIN  (11.2ms) SAVEPOINT active_record_2 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$d3Nf9S4iXCoVUV/ozwe3heLj4eXei5b9aT5Kzd8Mx9TAUCpCXVIp2"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (9.3ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (12.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (6.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 134], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HzcfxrWNduQxLdnyLZfp' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 134, "created_at" = '2013-07-16 01:25:19.618720', "updated_at" = '2013-07-16 01:25:19.618720', "authentication_token" = 'HzcfxrWNduQxLdnyLZfp' WHERE "public"."cadenero_accounts"."id" = 102  (8.3ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SAVEPOINT active_record_2 SQL (10.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 102], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["user_id", 134]] Cadenero::Member Load (10.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xnmZqX1GDafwBpBqRwz6' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 102, "user_id" = 134, "created_at" = '2013-07-16 01:25:19.652184', "updated_at" = '2013-07-16 01:25:19.652184', "auth_token" = 'xnmZqX1GDafwBpBqRwz6' WHERE "public"."cadenero_members"."id" = 135  (10.0ms) RELEASE SAVEPOINT active_record_2  (1.2ms) CREATE SCHEMA "test10"  (14.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.2ms) SAVEPOINT active_record_2 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$0NGOKFs2WcBWwE42Mx.XzO2T6CbEvXX3ZcXHuP0FqC/FH7G8deO/S"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_2  (1.4ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 135], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sKExTft4sbVDDpRFG5mT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 135, "created_at" = '2013-07-16 01:25:19.928470', "updated_at" = '2013-07-16 01:25:19.928470', "authentication_token" = 'sKExTft4sbVDDpRFG5mT' WHERE "public"."cadenero_accounts"."id" = 103  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 103], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["user_id", 135]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iRpXz6WJsykew65DwRkH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 103, "user_id" = 135, "created_at" = '2013-07-16 01:25:19.935397', "updated_at" = '2013-07-16 01:25:19.935397', "auth_token" = 'iRpXz6WJsykew65DwRkH' WHERE "public"."cadenero_members"."id" = 136  (0.1ms) RELEASE SAVEPOINT active_record_2 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 102 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.0ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$3fYtecpeLZ1Rw0tqqgmBPe6JxQ43HSGS7ZhVz/qPzjLHw6aGEEYYG"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 136], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wnz9KhFhCwzrqzmoRZ59' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 136, "created_at" = '2013-07-16 01:25:20.104816', "updated_at" = '2013-07-16 01:25:20.104816', "authentication_token" = 'Wnz9KhFhCwzrqzmoRZ59' WHERE "public"."cadenero_accounts"."id" = 104  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 104], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["user_id", 136]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wnX1B76ccQ2rVsNHpUXN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 104, "user_id" = 136, "created_at" = '2013-07-16 01:25:20.111146', "updated_at" = '2013-07-16 01:25:20.111146', "auth_token" = 'wnX1B76ccQ2rVsNHpUXN' WHERE "public"."cadenero_members"."id" = 137  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test12"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (4.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 104 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 11ms (Views: 0.9ms | ActiveRecord: 5.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (9.4ms) ROLLBACK  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$oWNhjRAaOvDTQLqKLNw46eBU2hjD9B9/cdQg7pyK4hsyzluZAL6ze"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 137], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GKjiYdWoVpkSvBhaaZPL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 137, "created_at" = '2013-07-16 01:25:20.344520', "updated_at" = '2013-07-16 01:25:20.344520', "authentication_token" = 'GKjiYdWoVpkSvBhaaZPL' WHERE "public"."cadenero_accounts"."id" = 105  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 105], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["user_id", 137]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8wRpsk3wDo8K7aemUgpA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 105, "user_id" = 137, "created_at" = '2013-07-16 01:25:20.350415', "updated_at" = '2013-07-16 01:25:20.350415', "auth_token" = '8wRpsk3wDo8K7aemUgpA' WHERE "public"."cadenero_members"."id" = 138  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) CREATE SCHEMA "test13"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:20 -0500 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.4ms) ROLLBACK  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (13.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0yVcHvJnS00b04qXKRn2nOtWkeBkEFMvc2OisEvu4aQizPzS6/q2m"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 138], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aYaAoZHAfzquzKcbyAmk' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 138, "created_at" = '2013-07-16 01:26:12.128253', "updated_at" = '2013-07-16 01:26:12.128253', "authentication_token" = 'aYaAoZHAfzquzKcbyAmk' WHERE "public"."cadenero_accounts"."id" = 106  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 106], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["user_id", 138]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's7xEdhKusQ7MmznWYDVL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 106, "user_id" = 138, "created_at" = '2013-07-16 01:26:12.229712', "updated_at" = '2013-07-16 01:26:12.229712', "auth_token" = 's7xEdhKusQ7MmznWYDVL' WHERE "public"."cadenero_members"."id" = 139  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$JyuImgTfGy4U0WpEo49XNuO.JJWbgxRblroi2SNrbbdBH209Z77/S"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xELXXOZL/HcXCcuH2hY9C.aFJpbzu2hXd9h8S7SmGtyen6EK/q/5e"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["name", "Root"], ["owner_id", 140], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'N4Kq85CvPWzsEvyFi1Vj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 140, "created_at" = '2013-07-16 01:26:12.436124', "updated_at" = '2013-07-16 01:26:12.436124', "authentication_token" = 'N4Kq85CvPWzsEvyFi1Vj' WHERE "public"."cadenero_accounts"."id" = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 107], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["user_id", 140]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yrwGuRNajTyoJp6jjLfs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 107, "user_id" = 140, "created_at" = '2013-07-16 01:26:12.441790', "updated_at" = '2013-07-16 01:26:12.441790', "auth_token" = 'yrwGuRNajTyoJp6jjLfs' WHERE "public"."cadenero_members"."id" = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (7.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:26:16 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$X9l/pj.RJPp0zzPm1.q.v.lySx8.3SX4ywd1ENX2mA0B4FU.AUWyK"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["name", "Testy"], ["owner_id", 141], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zJjAp6r2P1zeTyZr7vSN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 141, "created_at" = '2013-07-16 01:26:16.690282', "updated_at" = '2013-07-16 01:26:16.690282', "authentication_token" = 'zJjAp6r2P1zeTyZr7vSN' WHERE "public"."cadenero_accounts"."id" = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 108], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["user_id", 141]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1R88kgfYwxPpxknxzXPr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 108, "user_id" = 141, "created_at" = '2013-07-16 01:26:16.696371', "updated_at" = '2013-07-16 01:26:16.696371', "auth_token" = '1R88kgfYwxPpxknxzXPr' WHERE "public"."cadenero_members"."id" = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 108) LIMIT 1 Completed 201 Created in 180ms (Views: 3.5ms | ActiveRecord: 44.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5ZUJH.iLdth89r0Ed7rMHePB4J1SjmbJlel39hAoYPB8rFzXa3ZGu"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["name", "Testy"], ["owner_id", 142], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ynxvEXFsosqzub9AeVTA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 142, "created_at" = '2013-07-16 01:26:16.907790', "updated_at" = '2013-07-16 01:26:16.907790', "authentication_token" = 'ynxvEXFsosqzub9AeVTA' WHERE "public"."cadenero_accounts"."id" = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:26:16 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 121ms (Views: 0.3ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 94ms (Views: 91.8ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (42.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 74ms (Views: 30.4ms | ActiveRecord: 42.7ms)  (0.2ms) ROLLBACK  (9.8ms) BEGIN  (5.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Rh5edcXWpgksvt4qQSH9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 01:26:18.189710', "updated_at" = '2013-07-16 01:26:18.189710', "auth_token" = 'Rh5edcXWpgksvt4qQSH9' WHERE "public"."cadenero_members"."id" = 142  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.7ms) BEGIN  (3.6ms) COMMIT  (2.6ms) BEGIN  (5.0ms) SAVEPOINT active_record_1 SQL (4.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$S3TjY338uT0o/qZfAtWPaOMVNu3BK/8S8OBj7xiqaNb5.e5/7EN7C"], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (10.3ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 143], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zn2s8kzGzNW5Hf2kRTpg' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 143, "created_at" = '2013-07-16 01:26:18.416954', "updated_at" = '2013-07-16 01:26:18.416954', "authentication_token" = 'zn2s8kzGzNW5Hf2kRTpg' WHERE "public"."cadenero_accounts"."id" = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 110], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["user_id", 143]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UM7MStDCoWkuRWguvpP5' LIMIT 1  (2.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 110, "user_id" = 143, "created_at" = '2013-07-16 01:26:18.434954', "updated_at" = '2013-07-16 01:26:18.434954', "auth_token" = 'UM7MStDCoWkuRWguvpP5' WHERE "public"."cadenero_members"."id" = 143  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test2"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 110 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 143 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 143 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 143 Completed 201 Created in 186ms (Views: 6.1ms | ActiveRecord: 4.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 110 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:18 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"143", "default"=>:json} Cadenero::User Load (4.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 4.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:26:18 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (8.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (3.7ms) SAVEPOINT active_record_1 SQL (29.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$V1YebcSjEap6lRrFi26ANuulhcpMKXYfcuv7rGMThfejmfi9EV.uK"], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 110], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["user_id", 144]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xcdgxoz8hSqhifpePqGj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 110, "user_id" = 144, "created_at" = '2013-07-16 01:26:18.961550', "updated_at" = '2013-07-16 01:26:18.961550', "auth_token" = 'xcdgxoz8hSqhifpePqGj' WHERE "public"."cadenero_members"."id" = 144  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 144 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 144 Cadenero::V1::Account Load (15.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 144 Cadenero::V1::Account Load (15.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 144 Completed 201 Created in 241ms (Views: 7.2ms | ActiveRecord: 74.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/144" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"144"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 110 AND "public"."cadenero_users"."id" = 144 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 144 LIMIT 1 Cadenero::Member Load (4.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 144 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 144 Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 144 Completed 200 OK in 19ms (Views: 7.1ms | ActiveRecord: 8.3ms) Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (5.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 144 LIMIT 1 Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 144 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 144 Cadenero::V1::Account Load (8.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 144 Completed 201 Created in 23ms (Views: 6.4ms | ActiveRecord: 15.4ms) Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (7.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$chsP6.u/JwmeOOPbkgPKgOQpIw.LOqAA5/u/Tpbon4xK1bjNjL5iq"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]]  (2.8ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 145], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]] Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qAmE3fTehwHWQBfMWuAL' LIMIT 1  (5.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 145, "created_at" = '2013-07-16 01:26:19.351751', "updated_at" = '2013-07-16 01:26:19.351751', "authentication_token" = 'qAmE3fTehwHWQBfMWuAL' WHERE "public"."cadenero_accounts"."id" = 111  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 111], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["user_id", 145]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aifi4xsQSGe5qxgPHt4V' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 111, "user_id" = 145, "created_at" = '2013-07-16 01:26:19.367549', "updated_at" = '2013-07-16 01:26:19.367549', "auth_token" = 'aifi4xsQSGe5qxgPHt4V' WHERE "public"."cadenero_members"."id" = 145  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 111 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 145 LIMIT 1 Cadenero::Member Load (5.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 145 Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 145 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 145 Completed 201 Created in 123ms (Views: 5.9ms | ActiveRecord: 15.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 111 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"145", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 145 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (8.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$k25EIDWsQGXL7xN0bALmZ.mBBaze4wtqDJkscM1q6Ykx3QnYBQZcO"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 146], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4rx51yg1DEqcAvpHqc2x' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 146, "created_at" = '2013-07-16 01:26:19.707836', "updated_at" = '2013-07-16 01:26:19.707836', "authentication_token" = '4rx51yg1DEqcAvpHqc2x' WHERE "public"."cadenero_accounts"."id" = 112  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 112], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["user_id", 146]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uMfKtaLp6zvC9x6qDjzv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 112, "user_id" = 146, "created_at" = '2013-07-16 01:26:19.713308', "updated_at" = '2013-07-16 01:26:19.713308', "auth_token" = 'uMfKtaLp6zvC9x6qDjzv' WHERE "public"."cadenero_members"."id" = 146  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$z1Id939Q6BGUfMkj3O3FK.l36c6kfVp9FZk0FaIwW44m9CN/sncx2"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 112], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["user_id", 147]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BUSjqxGKukCh1ZbxrdyY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 112, "user_id" = 147, "created_at" = '2013-07-16 01:26:19.906391', "updated_at" = '2013-07-16 01:26:19.906391', "auth_token" = 'BUSjqxGKukCh1ZbxrdyY' WHERE "public"."cadenero_members"."id" = 147  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 147 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 147 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 147 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 147 Completed 201 Created in 116ms (Views: 6.2ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/147" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"147"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 112 AND "public"."cadenero_users"."id" = 147 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 147 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 147 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 147 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 147 Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 147 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 147 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 147 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 147 Completed 201 Created in 9ms (Views: 5.8ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 147 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$AOO3RHjesXQfr.rRSYLQc.tNqyCNKEfPU4vHLe16gmxYL/QSAIDx."], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 148], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'E8prXT8mscHzD3gRusg2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 148, "created_at" = '2013-07-16 01:26:20.131091', "updated_at" = '2013-07-16 01:26:20.131091', "authentication_token" = 'E8prXT8mscHzD3gRusg2' WHERE "public"."cadenero_accounts"."id" = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 113], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["user_id", 148]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zLbsZtCGzz9E93gtBYzM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 113, "user_id" = 148, "created_at" = '2013-07-16 01:26:20.136672', "updated_at" = '2013-07-16 01:26:20.136672', "auth_token" = 'zLbsZtCGzz9E93gtBYzM' WHERE "public"."cadenero_members"."id" = 148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test5"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 113 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 148 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 148 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 148 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 148 Completed 201 Created in 124ms (Views: 11.5ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 113 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 148 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$hHSQ91mIFr/RJ9YnWT9Aoud6.0RP1z9AZUdWvC3VqLQO/TGk5ZPeq"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 149], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zQRmqniq4DGWTHAMvsCB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 149, "created_at" = '2013-07-16 01:26:20.552629', "updated_at" = '2013-07-16 01:26:20.552629', "authentication_token" = 'zQRmqniq4DGWTHAMvsCB' WHERE "public"."cadenero_accounts"."id" = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 114], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["user_id", 149]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TMWPnLtE6xwtUpE28pwV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 114, "user_id" = 149, "created_at" = '2013-07-16 01:26:20.558576', "updated_at" = '2013-07-16 01:26:20.558576', "auth_token" = 'TMWPnLtE6xwtUpE28pwV' WHERE "public"."cadenero_members"."id" = 149  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (5.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:20 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$qB71SYyIZjXNQ05LPIYui.09L.6NGSCGQ7k00YKlbuJQrp81VZqi2"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 150], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'awQgaHvzNCaGNKEzsW5D' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 150, "created_at" = '2013-07-16 01:26:20.854173', "updated_at" = '2013-07-16 01:26:20.854173', "authentication_token" = 'awQgaHvzNCaGNKEzsW5D' WHERE "public"."cadenero_accounts"."id" = 115  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 115], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["user_id", 150]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YLZaV8pJp5UpZv3LuMss' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 115, "user_id" = 150, "created_at" = '2013-07-16 01:26:20.861035', "updated_at" = '2013-07-16 01:26:20.861035', "auth_token" = 'YLZaV8pJp5UpZv3LuMss' WHERE "public"."cadenero_members"."id" = 150  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$vicQ6uVmR7ttKSLBjbPBie1Y6QoQKuRN6/CimT9./VGssEMbvNQna"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 151], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zbZoXwHd7xkANvexzcJn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 151, "created_at" = '2013-07-16 01:26:21.021207', "updated_at" = '2013-07-16 01:26:21.021207', "authentication_token" = 'zbZoXwHd7xkANvexzcJn' WHERE "public"."cadenero_accounts"."id" = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 116], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 151]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '81R5rPSxWsUQiE2vjssd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 116, "user_id" = 151, "created_at" = '2013-07-16 01:26:21.026452', "updated_at" = '2013-07-16 01:26:21.026452', "auth_token" = '81R5rPSxWsUQiE2vjssd' WHERE "public"."cadenero_members"."id" = 151  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 115 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$GwEF/QkyUKdcEedDastdROLEBgrHkse8ic2TUmGN43YxfN1qm.FhG"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 152], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tPLr3yMBts5qcm1dYCgV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 152, "created_at" = '2013-07-16 01:26:21.160319', "updated_at" = '2013-07-16 01:26:21.160319', "authentication_token" = 'tPLr3yMBts5qcm1dYCgV' WHERE "public"."cadenero_accounts"."id" = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 117], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 152]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R54LdzC62yf9zTZXwfod' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 117, "user_id" = 152, "created_at" = '2013-07-16 01:26:21.165938', "updated_at" = '2013-07-16 01:26:21.165938', "auth_token" = 'R54LdzC62yf9zTZXwfod' WHERE "public"."cadenero_members"."id" = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 117 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$1q8XYfsybtVXWWPC8QA.eO6wWN6YOjoQ6.nFNCYiqDzYpyzXki2ZS"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 153], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rzXNBpR9QHUHzEe8pY5v' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 153, "created_at" = '2013-07-16 01:26:21.453870', "updated_at" = '2013-07-16 01:26:21.453870', "authentication_token" = 'rzXNBpR9QHUHzEe8pY5v' WHERE "public"."cadenero_accounts"."id" = 118  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 118], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 153]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '66XzLxEnSbiivyXf5epC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 118, "user_id" = 153, "created_at" = '2013-07-16 01:26:21.459457', "updated_at" = '2013-07-16 01:26:21.459457', "auth_token" = '66XzLxEnSbiivyXf5epC' WHERE "public"."cadenero_members"."id" = 153  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 118 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$Raw8fluGecjIYY13ZDQxoucxSy165y443ShfwtcjjmOuBieGrh7gu"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 154], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NcQwUUdGvxq9J9qREzsB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 154, "created_at" = '2013-07-16 01:26:21.656784', "updated_at" = '2013-07-16 01:26:21.656784', "authentication_token" = 'NcQwUUdGvxq9J9qREzsB' WHERE "public"."cadenero_accounts"."id" = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 119], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 154]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UyzQy5dbkxs1kPBxyWsy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 119, "user_id" = 154, "created_at" = '2013-07-16 01:26:21.662635', "updated_at" = '2013-07-16 01:26:21.662635', "auth_token" = 'UyzQy5dbkxs1kPBxyWsy' WHERE "public"."cadenero_members"."id" = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mjeo4mH2a2TqWNzfBDO8feks71lu4k3DQdoanvggnyjJwgAKSqV4G"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 119], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 155]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gs5zgvdZpLsx9hJhZzqf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 119, "user_id" = 155, "created_at" = '2013-07-16 01:26:21.819433', "updated_at" = '2013-07-16 01:26:21.819433', "auth_token" = 'Gs5zgvdZpLsx9hJhZzqf' WHERE "public"."cadenero_members"."id" = 155  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 155 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 155 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 155 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/155" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"155"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 119 AND "public"."cadenero_users"."id" = 155 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 155 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 155 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 155 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$NdiPr5tpPvowa9wwPloAPue6f3T8z2SgSAFwH0gHgJf5OC.XD6jlG"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 156], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gm5qGXrEWqX19Pu5DKvg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 156, "created_at" = '2013-07-16 01:26:21.967753', "updated_at" = '2013-07-16 01:26:21.967753', "authentication_token" = 'Gm5qGXrEWqX19Pu5DKvg' WHERE "public"."cadenero_accounts"."id" = 120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 120], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 156]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VqyYqmZqs1bf3ahg7WhA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 120, "user_id" = 156, "created_at" = '2013-07-16 01:26:21.973291', "updated_at" = '2013-07-16 01:26:21.973291', "auth_token" = 'VqyYqmZqs1bf3ahg7WhA' WHERE "public"."cadenero_members"."id" = 156  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hiiwYTNdE2l6HzM0Inzuh.WH2mqHUZ7ejZWIYWA/6ciF1sV7t5Je6"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 120], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 157]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sd8zYLUZ9vN5MQvYnJy8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 120, "user_id" = 157, "created_at" = '2013-07-16 01:26:22.131637', "updated_at" = '2013-07-16 01:26:22.131637', "auth_token" = 'sd8zYLUZ9vN5MQvYnJy8' WHERE "public"."cadenero_members"."id" = 157  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 157 Completed 201 Created in 113ms (Views: 5.6ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/157" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"157"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 120 AND "public"."cadenero_users"."id" = 157 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 157 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 3.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 157], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3pWLqTmm1a8jyMoNTLqs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 157, "created_at" = '2013-07-16 01:26:22.164607', "updated_at" = '2013-07-16 01:26:22.164607', "authentication_token" = '3pWLqTmm1a8jyMoNTLqs' WHERE "public"."cadenero_accounts"."id" = 121  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 121], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 157]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fpqkrxfqsxXm3ajoyFNX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 121, "user_id" = 157, "created_at" = '2013-07-16 01:26:22.170616', "updated_at" = '2013-07-16 01:26:22.170616', "auth_token" = 'fpqkrxfqsxXm3ajoyFNX' WHERE "public"."cadenero_members"."id" = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ds8lQ5/ldA7dKdcuP19w5.N5l0RhuYm0iPwDkKfzV.bno20MRPkQy"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 121], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 158]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'J8yPMfqBMkoSLXmRkAxr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 121, "user_id" = 158, "created_at" = '2013-07-16 01:26:22.363029', "updated_at" = '2013-07-16 01:26:22.363029', "auth_token" = 'J8yPMfqBMkoSLXmRkAxr' WHERE "public"."cadenero_members"."id" = 159  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 158 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 158 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 158 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 158 Completed 201 Created in 115ms (Views: 6.3ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/158" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"158"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 121 AND "public"."cadenero_users"."id" = 158 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 158 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 158 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 158 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 158 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.8ms) Started GET "/v1/users/157" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"157"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 120 AND "public"."cadenero_users"."id" = 157 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 157 Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 120 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 157 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 156 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 156 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 156 Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 2.9ms)  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) COMMIT  (0.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mUZrbLIOfG5IydvFZmGIfOZhho/lNicXPcoavWI0VEjSAUqv7Dzxy"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 159], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'j6utZnPcJyCq1p7CyR5s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 159, "created_at" = '2013-07-16 01:26:22.579400', "updated_at" = '2013-07-16 01:26:22.579400', "authentication_token" = 'j6utZnPcJyCq1p7CyR5s' WHERE "public"."cadenero_accounts"."id" = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 122], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 159]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4yTyRzi2taJQtpNTjpHp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 122, "user_id" = 159, "created_at" = '2013-07-16 01:26:22.585459', "updated_at" = '2013-07-16 01:26:22.585459', "auth_token" = '4yTyRzi2taJQtpNTjpHp' WHERE "public"."cadenero_members"."id" = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 122 LIMIT 1  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (8.4ms) SELECT "public"."cadenero_users".* FROM "public"."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 142ms (Views: 116.8ms | ActiveRecord: 12.3ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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", 1001], ["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:13 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" = '3zarxQkqqdx4wheijS2d' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 161 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["id", 161], ["auth_token", "3zarxQkqqdx4wheijS2d"]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$8kWrQkYzWZbzr3AVy3dGOeZ/X9vabfK.bmOb2Fr2c8.kD4rrsoKxS"], ["updated_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00]] Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 160], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01: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" = 'HB8y67NVytoYpPsLa9Fa' 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" = 123 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 160], ["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["id", 123], ["authentication_token", "HB8y67NVytoYpPsLa9Fa"]] 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", 123], ["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["user_id", 160]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LEXJh8a6bxTfnuBhq1AV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 162 [["account_id", 123], ["user_id", 160], ["created_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:13 UTC +00:00], ["id", 162], ["auth_token", "LEXJh8a6bxTfnuBhq1AV"]]  (0.4ms) CREATE SCHEMA "test1" SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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.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")  (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))   (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.5ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:13 -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.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 123]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 160 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 160]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 160]] 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", 160]] Completed 201 Created in 85ms (Views: 30.8ms | 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 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 123]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"160", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 160 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 20:41: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)  (2.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.6ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$7Kb9xdcDICfCvpF7YEqdCOlVlOGVvIgnvJPjWQ171XSQtsvfmizhm"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 161], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qk5xMEPyw2aEfpsC7kNz' 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" = 124 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 161], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 124], ["authentication_token", "qk5xMEPyw2aEfpsC7kNz"]] 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", 124], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 161]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8Ckee1LLxyJM1ZnpKYQz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 163 [["account_id", 124], ["user_id", 161], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 163], ["auth_token", "8Ckee1LLxyJM1ZnpKYQz"]]  (0.2ms) CREATE SCHEMA "test2" 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.0ms) 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")  (8.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:14 -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.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 [["account_id", 124]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 161 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 161]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 161]] 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", 161]] Completed 201 Created in 16ms (Views: 6.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 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 124]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:14 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"161", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 161 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 20: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.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$a0KJ9YxeX0eyFzzEzH0axev7TnknmuMtPAvU2cIorrlgxhc8vufgG"], ["updated_at", Tue, 16 Jul 2013 01:41: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", 124], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 162]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wpVdQVsP7rZuzWKh4TCQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 164 [["account_id", 124], ["user_id", 162], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 164], ["auth_token", "wpVdQVsP7rZuzWKh4TCQ"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 162 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 162]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 162]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 162]] Completed 201 Created in 22ms (Views: 6.1ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/162" for 127.0.0.1 at 2013-07-15 20:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"162"} 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" = 162 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 124]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 162 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 162]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 162]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 162]] Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:14 -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" = 162 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 162]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 162]] 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", 162]] Completed 201 Created in 9ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$KEO.iiWNuDUpIpC.A5OvTOfqY3F8LjJ64C2J8khQ.MRDu8YRCJ5hq"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] 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", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 163], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EGU2hxZyVsq8WT3ar14T' 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" = 125 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 163], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 125], ["authentication_token", "EGU2hxZyVsq8WT3ar14T"]] 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", 125], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 163]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ps6SY4Zu2A2ZNrCAwnnf' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 165 [["account_id", 125], ["user_id", 163], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 165], ["auth_token", "Ps6SY4Zu2A2ZNrCAwnnf"]]  (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)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (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))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20: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/users" for 127.0.0.1 at 2013-07-15 20:41:14 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$VLqvlhl8htMn9dT6g6OJm.TEsEnKyTbEtkezS.KpO8eZSrGCCoVp6"], ["updated_at", Tue, 16 Jul 2013 01:41: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", 125], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 164]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8VMjvDvuQWAyAf7nn3bz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 166 [["account_id", 125], ["user_id", 164], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 166], ["auth_token", "8VMjvDvuQWAyAf7nn3bz"]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 164 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 164]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 164]] 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", 164]] Completed 201 Created in 22ms (Views: 6.3ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/164" for 127.0.0.1 at 2013-07-15 20:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"164"} 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" = 164 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 125]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 164 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 164]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 164]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 164]] Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:14 -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" = 164 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 164]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 164]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 164]] Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:41:14 -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" = 164 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$97UL36oPGKgQnMRS8wbHPem0tB4m4O.RTdJXn./sPZXbO62ka9gnq"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Exists (0.6ms) 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", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 165], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'i6jEtLUBXpDrvxsau9n9' 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" = 126 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 165], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 126], ["authentication_token", "i6jEtLUBXpDrvxsau9n9"]] 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", 126], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 165]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FVyM1Uvbjq2y1o4QqPuU' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 167 [["account_id", 126], ["user_id", 165], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 167], ["auth_token", "FVyM1Uvbjq2y1o4QqPuU"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (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))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) 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 ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20: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 20:41:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 126]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 165 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 165]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 165]] 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", 165]] Completed 201 Created in 16ms (Views: 6.2ms | 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 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 126]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:41:14 -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" = 165 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$omHok5cE3QynIyRk1/q4l.KPH0ytqvRq8XWVprwjE1.MxLLX3zJGO"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 166], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01: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" = 'qL6mnPpdpTaxpDJGSBz1' 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" = 127 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 166], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 127], ["authentication_token", "qL6mnPpdpTaxpDJGSBz1"]] 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", 127], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 166]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rGz6TtF3GhRPQy8vZdUG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 168 [["account_id", 127], ["user_id", 166], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 168], ["auth_token", "rGz6TtF3GhRPQy8vZdUG"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) 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.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")  (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))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$7XLAP4kHi3MYNowZOyWorOiHwJ.jU7YCeqHdmaOj2u6VmgrZP/dYe"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 167], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KpgxRVNqkBqpZYGn2ZtL' 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" = 128 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 167], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 128], ["authentication_token", "KpgxRVNqkBqpZYGn2ZtL"]] 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", 128], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 167]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hQHx8roPZfjB9skxBUhS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 169 [["account_id", 128], ["user_id", 167], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 169], ["auth_token", "hQHx8roPZfjB9skxBUhS"]] Started GET "/v1" for 127.0.0.1 at 2013-07-15 20: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 20:41:14 -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 [["account_id", 127]] 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  (5.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) COMMIT  (2.3ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$DTh5F2qUZHfFRNGvv/d8GObb59w039D.G1No.Ns.gTgcgvSvf.Ln6"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 168], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01: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" = 'QoW9tzTrxsGCuQksq3kq' 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" = 129 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 168], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 129], ["authentication_token", "QoW9tzTrxsGCuQksq3kq"]] 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", 129], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 168]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iexSG59kiT8QuAx5sptn' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 170 [["account_id", 129], ["user_id", 168], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 170], ["auth_token", "iexSG59kiT8QuAx5sptn"]]  (0.2ms) CREATE SCHEMA "test7" 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")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) 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 ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41:14 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.6ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) COMMIT  (0.4ms) BEGIN SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$WS2.BiKnSqFqhe8uON3UP.gnGPdF34wKYxTLGqVHIvl3DhtWXPnRi"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (3.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 169], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CM9KseYG2H9Xus8FLMJ5' 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" = 130 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 169], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 130], ["authentication_token", "CM9KseYG2H9Xus8FLMJ5"]] 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", 130], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 169]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xgEodQjkMixtPXX3MzoN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 171 [["account_id", 130], ["user_id", 169], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 171], ["auth_token", "xgEodQjkMixtPXX3MzoN"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (4.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (7.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.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 ('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 20: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 20:41: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 ('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 [["account_id", 130]] 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  (2.5ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) COMMIT  (0.6ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$LabWlnd/4xaOxjh.bPeyq.oSYimAnTcpuMZqWmkGg0zcEjxiweRLC"], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 170], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01: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" = 'yDyNKj5qbo7p1RtzxEQf' 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" = 131 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 170], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 131], ["authentication_token", "yDyNKj5qbo7p1RtzxEQf"]] 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", 131], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["user_id", 170]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LszPfzaRphV2Z4K2VEpj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 172 [["account_id", 131], ["user_id", 170], ["created_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:14 UTC +00:00], ["id", 172], ["auth_token", "LszPfzaRphV2Z4K2VEpj"]]  (0.3ms) CREATE SCHEMA "test9" 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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (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)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 20: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.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:41: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 (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", 131]] 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  (5.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$MXbK48opeKqp8ne751e4b.QIjQIrY3totl8fSAhrWilMUKvXn.FLy"], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 171], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pXg8AELPy4PiGKtorfQp' 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" = 132 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 171], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["id", 132], ["authentication_token", "pXg8AELPy4PiGKtorfQp"]] 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", 132], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["user_id", 171]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '51YmzWPiufAPcBzQiqao' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 173 [["account_id", 132], ["user_id", 171], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["id", 173], ["auth_token", "51YmzWPiufAPcBzQiqao"]] SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$inkFvTEycBHOO4YAQtsAze/0cMDqiueo1UxuIe4dRPwiBWtAjhDqu"], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$WwaM99GS0/Vg8.mSAhSx2uDEBlqbioeJYbnmJgWO1tqgIiyz7cddO"], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["name", "Root"], ["owner_id", 173], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dJ6tpSwEiTQkEW6ocj3w' 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" = 133 [["name", "Root"], ["subdomain", "www"], ["owner_id", 173], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["id", 133], ["authentication_token", "dJ6tpSwEiTQkEW6ocj3w"]] 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", 133], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["user_id", 173]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zVdY5e34fB2pTaEEPyer' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 174 [["account_id", 133], ["user_id", 173], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["id", 174], ["auth_token", "zVdY5e34fB2pTaEEPyer"]]  (0.2ms) CREATE SCHEMA "www" SQL (0.2ms) 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.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (241.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (7.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (1.4ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:41: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} 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", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$k45P/aJx52xewljViWmiV.SGVQBjqVjcuPBM0JrZU0Bi95WyXPZYK"], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00]] SQL (13.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["name", "Testy"], ["owner_id", 174], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01: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" = 'TVyhZp8puccqCkTnZ74K' 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" = 134 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 174], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["id", 134], ["authentication_token", "TVyhZp8puccqCkTnZ74K"]] 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", 134], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["user_id", 174]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'G3fZDr5X136zKAMqkesP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 175 [["account_id", 134], ["user_id", 174], ["created_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:21 UTC +00:00], ["id", 175], ["auth_token", "G3fZDr5X136zKAMqkesP"]]  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (308.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.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")  (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, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.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.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" != 134) LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 174 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", 134]] Completed 201 Created in 437ms (Views: 13.2ms | ActiveRecord: 365.6ms) 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  (11.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$LgGYzmy7jIMh3avQa2O8gOXKHtKQw94152/I0/yIJo9axq4MgsnGe"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["name", "Testy"], ["owner_id", 175], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sNDd1cYZLGSjHgqyT4sy' 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" = 135 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 175], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 135], ["authentication_token", "sNDd1cYZLGSjHgqyT4sy"]] Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20: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} Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 41ms (Views: 0.5ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$943oXZ2InbstqDzylsnlJ.QZDEqhJ1c7997ZKfMG1uYK2NDMa1Bpu"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 176], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zkTKSFWKtg9epvvzW5NR' 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" = 136 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 176], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 136], ["authentication_token", "zkTKSFWKtg9epvvzW5NR"]] 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", 136], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["user_id", 176]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xaU78hBgSpCjjZyGn72t' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 176 [["account_id", 136], ["user_id", 176], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 176], ["auth_token", "xaU78hBgSpCjjZyGn72t"]]  (0.3ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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.3ms) 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.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (116.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 136]]  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$.wGcugYIQJFOZ2DubHwYRe./3djhZh/ZFHjzTidf34q/gNaj327P6"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 177], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01: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" = '8UmwUBiNs1SufpVGQWsT' 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" = 137 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 177], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 137], ["authentication_token", "8UmwUBiNs1SufpVGQWsT"]] 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", 137], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["user_id", 177]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wts2csgyETx5dWcMzMiA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 177 [["account_id", 137], ["user_id", 177], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 177], ["auth_token", "Wts2csgyETx5dWcMzMiA"]]  (0.2ms) CREATE SCHEMA "test11" 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.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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) 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)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:41: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.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$g.Sr3yphHjP8LzAdzZ9wl.C4dyiHgcl1YMtKhnrC0E77w5NlYSEEq"], ["updated_at", Tue, 16 Jul 2013 01:41: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", 137], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["user_id", 178]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xopAR1bmJerZQe9mk3xz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 178 [["account_id", 137], ["user_id", 178], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 178], ["auth_token", "xopAR1bmJerZQe9mk3xz"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 178 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 178]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 178]] 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", 178]] Completed 201 Created in 23ms (Views: 6.7ms | ActiveRecord: 5.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/178" for 127.0.0.1 at 2013-07-15 20:41:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"178"} 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 (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"."id" = 178 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 137]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 178 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 178]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 178]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 178]] Completed 200 OK in 13ms (Views: 6.5ms | ActiveRecord: 2.9ms)  (3.7ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$jXa4/w4NvtfYzmC.xABjTOh07OOhBIv0oCLJKEc.ZFOc5QJccpvly"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 179], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PmvhphhgmUGhneSKQoSz' 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" = 138 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 179], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 138], ["authentication_token", "PmvhphhgmUGhneSKQoSz"]] 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", 138], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["user_id", 179]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KL2igzskjC64srzufrzy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 179 [["account_id", 138], ["user_id", 179], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 179], ["auth_token", "KL2igzskjC64srzufrzy"]]  (0.5ms) CREATE SCHEMA "test12" SQL (0.5ms) 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)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) 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 ('20130715174857')  (0.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:41: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" = 'test12' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$pA2miLF7PT3kViRG4VokBuziVVW5kZr.HwgNnYF6zd15QT/DfASgS"], ["updated_at", Tue, 16 Jul 2013 01:41: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", 138], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["user_id", 180]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kFMzFug46WruypCJFWGS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 180 [["account_id", 138], ["user_id", 180], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 180], ["auth_token", "kFMzFug46WruypCJFWGS"]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 180 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 180]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 180]] 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", 180]] Completed 201 Created in 130ms (Views: 20.7ms | ActiveRecord: 6.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/180" for 127.0.0.1 at 2013-07-15 20:41:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"180"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.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" = 180 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 138]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 180 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 180]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 180]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 180]] Completed 200 OK in 13ms (Views: 6.0ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 180], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7a9VU79fN7Us3ie16sjU' 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" = 139 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 180], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 139], ["authentication_token", "7a9VU79fN7Us3ie16sjU"]] 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", 139], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["user_id", 180]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Mheg14zMs18csTDms3sQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 181 [["account_id", 139], ["user_id", 180], ["created_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:22 UTC +00:00], ["id", 181], ["auth_token", "Mheg14zMs18csTDms3sQ"]]  (0.3ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (10.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, "auth_token" character varying(255))  (13.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.1ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (11.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:41: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" = 'test13' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:41:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$C8wpZZdS/IkEQTefIKxfQ.wlMixO8TbSYorIsUPdo/Mg.MKhoy.3y"], ["updated_at", Tue, 16 Jul 2013 01:41:23 UTC +00:00]] 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", 139], ["created_at", Tue, 16 Jul 2013 01:41:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:23 UTC +00:00], ["user_id", 181]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KtSn9GM53vT9G5GtJvso' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 182 [["account_id", 139], ["user_id", 181], ["created_at", Tue, 16 Jul 2013 01:41:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:41:23 UTC +00:00], ["id", 182], ["auth_token", "KtSn9GM53vT9G5GtJvso"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 181 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 181]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 181]] 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", 181]] Completed 201 Created in 37ms (Views: 7.6ms | ActiveRecord: 15.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/181" for 127.0.0.1 at 2013-07-15 20:41:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"181"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.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" = 181 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 139]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 181 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 181]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 181]] 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" = $1 [["user_id", 181]] Completed 200 OK in 23ms (Views: 13.0ms | ActiveRecord: 6.4ms) Started GET "/v1/users/180" for 127.0.0.1 at 2013-07-15 20:41:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"180"} 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 (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" = 180 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 138]] Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 180 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 180]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 180]] 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", 180]] Completed 200 OK in 17ms (Views: 8.5ms | ActiveRecord: 4.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:41: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" = 'test12' LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 180 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 [["account_id", 138]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 180]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 180]] 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", 180]] Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 179]] Cadenero::V1::Account Load (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 179]] Cadenero::V1::Account Load (4.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", 179]] Completed 200 OK in 40ms (Views: 19.8ms | ActiveRecord: 17.7ms)  (9.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (7.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (20.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (12.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 41ms (Views: 6.5ms | ActiveRecord: 34.1ms)  (0.1ms) ROLLBACK  (7.5ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (4.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (1.7ms) 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 143ms (Views: 131.5ms | ActiveRecord: 10.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.5ms) 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 10ms (Views: 7.6ms | ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (30.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", Tue, 16 Jul 2013 15:46:48 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:48 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BoLstWz9HGPJPwdW6J73' LIMIT 1  (5.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 15:46:48.696380', "updated_at" = '2013-07-16 15:46:48.696380', "auth_token" = 'BoLstWz9HGPJPwdW6J73' WHERE "public"."cadenero_members"."id" = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Tue, 16 Jul 2013 15:46:48 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$u3pShKSsBRpM4jhfL8iIEOQ8mT1qQT8OnsD8DqUPzKhdv2u9enbau"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = 'test1' 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", Tue, 16 Jul 2013 15:46:48 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 182], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 15:46:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KV1LUS7oQcVtt8bbA7Kt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 182, "created_at" = '2013-07-16 15:46:48.876599', "updated_at" = '2013-07-16 15:46:48.876599', "authentication_token" = 'KV1LUS7oQcVtt8bbA7Kt' WHERE "public"."cadenero_accounts"."id" = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 140], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:48 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:48 UTC +00:00], ["user_id", 182]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PPv6ZfxnhpAmtqxKncxR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 140, "user_id" = 182, "created_at" = '2013-07-16 15:46:48.942835', "updated_at" = '2013-07-16 15:46:48.942835', "auth_token" = 'PPv6ZfxnhpAmtqxKncxR' WHERE "public"."cadenero_members"."id" = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) CREATE SCHEMA "test1"  (36.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.3ms) 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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.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-16 10:46: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.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.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Kvnr2BlMV4FS3BGw9bwjYe.clKnu2muhgVbiY7WikjckkC.sJSz8W"], ["updated_at", Tue, 16 Jul 2013 15:46:49 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", 140], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["user_id", 183]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '29pczVtjVcLzEqFPjous' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 140, "user_id" = 183, "created_at" = '2013-07-16 15:46:49.176176', "updated_at" = '2013-07-16 15:46:49.176176', "auth_token" = '29pczVtjVcLzEqFPjous' WHERE "public"."cadenero_members"."id" = 185  (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" = 183 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 183 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 183 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" = 183 Completed 201 Created in 129ms (Views: 10.3ms | 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/183" for 127.0.0.1 at 2013-07-16 10:46:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"183"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.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" = 140 AND "public"."cadenero_users"."id" = 183 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 183 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 183 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 183 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" = 183 Completed 200 OK in 17ms (Views: 9.1ms | ActiveRecord: 2.7ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_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", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 183], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Rs1MyfaaMXsKxyAfuJLT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 183, "created_at" = '2013-07-16 15:46:49.239047', "updated_at" = '2013-07-16 15:46:49.239047', "authentication_token" = 'Rs1MyfaaMXsKxyAfuJLT' WHERE "public"."cadenero_accounts"."id" = 141  (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", 141], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["user_id", 183]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tzzGA61N9aoZrxCgui87' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 141, "user_id" = 183, "created_at" = '2013-07-16 15:46:49.249483', "updated_at" = '2013-07-16 15:46:49.249483', "auth_token" = 'tzzGA61N9aoZrxCgui87' WHERE "public"."cadenero_members"."id" = 186  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.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")  (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.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.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.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (2.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-16 10:46: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 (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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$OmVdiinVHLUgw6mxOTJ75OXA5Uf8jhhSH7HIGuYag/gfaxte1CFL."], ["updated_at", Tue, 16 Jul 2013 15:46:49 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", 141], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["user_id", 184]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VWwSNxxT1spjiTWertuF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 141, "user_id" = 184, "created_at" = '2013-07-16 15:46:49.426351', "updated_at" = '2013-07-16 15:46:49.426351', "auth_token" = 'VWwSNxxT1spjiTWertuF' WHERE "public"."cadenero_members"."id" = 187  (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" = 184 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 184 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 184 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 184 Completed 201 Created in 115ms (Views: 5.8ms | 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/184" for 127.0.0.1 at 2013-07-16 10:46:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"184"} 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" = 141 AND "public"."cadenero_users"."id" = 184 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 184 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 184 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 184 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 184 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.9ms) Started GET "/v1/users/183" for 127.0.0.1 at 2013-07-16 10:46:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"183"} 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" = 140 AND "public"."cadenero_users"."id" = 183 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 183 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 183 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 183 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 183 Completed 200 OK in 13ms (Views: 6.6ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-16 10:46:49 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 140 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 183 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 183 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 183 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 183 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 182 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 182 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 182 Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.6ms)  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YR3BKmYL4g9c5oEGEJgByey0fmsn6vBJAq0E/JlR1bCuqQq2WYPQq"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = '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", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 185], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zrAVZ5wTqroiEQphyvY8' LIMIT 1  (1.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 185, "created_at" = '2013-07-16 15:46:49.640091', "updated_at" = '2013-07-16 15:46:49.640091', "authentication_token" = 'zrAVZ5wTqroiEQphyvY8' WHERE "public"."cadenero_accounts"."id" = 142  (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", 142], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["user_id", 185]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CyQASgnFPxy4515hUVQd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 142, "user_id" = 185, "created_at" = '2013-07-16 15:46:49.647618', "updated_at" = '2013-07-16 15:46:49.647618', "auth_token" = 'CyQASgnFPxy4515hUVQd' WHERE "public"."cadenero_members"."id" = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.8ms) 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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (1.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"  (53.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')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-16 10:46: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 (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", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CSfZhG3RadrrVI0UXYTP2O1h0kPtdadRs2.O455ChMbpqkRtNQZc."], ["updated_at", Tue, 16 Jul 2013 15:46:49 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", 142], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:49 UTC +00:00], ["user_id", 186]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pWwpFVfXKqgssxMhAs4P' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 142, "user_id" = 186, "created_at" = '2013-07-16 15:46:49.896184', "updated_at" = '2013-07-16 15:46:49.896184', "auth_token" = 'pWwpFVfXKqgssxMhAs4P' WHERE "public"."cadenero_members"."id" = 189  (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" = 186 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 186 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 186 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 186 Completed 201 Created in 128ms (Views: 6.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/186" for 127.0.0.1 at 2013-07-16 10:46:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"186"} 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" = 142 AND "public"."cadenero_users"."id" = 186 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 186 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 186 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 186 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 186 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$4aGeiUuOvj57T0tXbodT.Oo.iiln5LxgAlyHjVaOkr88TMvnHtMku"], ["updated_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00], ["name", "Test Account"], ["owner_id", 187], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'z9T8tfsb167Ujs6pvCBp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 187, "created_at" = '2013-07-16 15:46:50.162113', "updated_at" = '2013-07-16 15:46:50.162113', "authentication_token" = 'z9T8tfsb167Ujs6pvCBp' WHERE "public"."cadenero_accounts"."id" = 143  (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", 143], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00], ["user_id", 187]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LkiiyfCnsk9p8wy3dRif' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 143, "user_id" = 187, "created_at" = '2013-07-16 15:46:50.168285', "updated_at" = '2013-07-16 15:46:50.168285', "auth_token" = 'LkiiyfCnsk9p8wy3dRif' WHERE "public"."cadenero_members"."id" = 190  (0.1ms) RELEASE SAVEPOINT active_record_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)  (1.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")  (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.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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" = 143 LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.1ms) BEGIN  (0.2ms) COMMIT  (0.7ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$CpvSF/BfRimY7mzbwvYXtuCUQuXNaxfvTEZ/37tN/ERfdFGAedw.q"], ["updated_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00], ["name", "Testy"], ["owner_id", 188], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 15:46:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wd2VYfN9P5oYHYF771rC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 188, "created_at" = '2013-07-16 15:46:50.672035', "updated_at" = '2013-07-16 15:46:50.672035', "authentication_token" = 'wd2VYfN9P5oYHYF771rC' WHERE "public"."cadenero_accounts"."id" = 144  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-16 10:46:50 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.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.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-16 10:46: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.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$c.7FrPEHHdLt8XrN6ReL7udlywpU0M1qQAN9OKPkh8MVfw35ZrfKW"], ["updated_at", Tue, 16 Jul 2013 15:46:51 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", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["name", "Testy"], ["owner_id", 189], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qYp8Bq2J3GbqbzrUps8n' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 189, "created_at" = '2013-07-16 15:46:51.002300', "updated_at" = '2013-07-16 15:46:51.002300', "authentication_token" = 'qYp8Bq2J3GbqbzrUps8n' WHERE "public"."cadenero_accounts"."id" = 145  (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", 145], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["user_id", 189]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NtK7RKjNL5QYfMxYn3ds' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 145, "user_id" = 189, "created_at" = '2013-07-16 15:46:51.012476', "updated_at" = '2013-07-16 15:46:51.012476', "auth_token" = 'NtK7RKjNL5QYfMxYn3ds' WHERE "public"."cadenero_members"."id" = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (28.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.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 ('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') 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" != 145) LIMIT 1 Completed 201 Created in 297ms (Views: 1.6ms | ActiveRecord: 74.1ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (7.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$nQYa7/g17PZqIBHh.73OTesAHTKygiztlpsH8dFkmqzorCy1OSd7W"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = '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", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 190], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's2TvJf3p7QPccqx7QQis' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 190, "created_at" = '2013-07-16 15:46:51.252881', "updated_at" = '2013-07-16 15:46:51.252881', "authentication_token" = 's2TvJf3p7QPccqx7QQis' WHERE "public"."cadenero_accounts"."id" = 146  (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", 146], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["user_id", 190]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kAWydDGVkqbUTqKGt842' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 146, "user_id" = 190, "created_at" = '2013-07-16 15:46:51.258782', "updated_at" = '2013-07-16 15:46:51.258782', "auth_token" = 'kAWydDGVkqbUTqKGt842' WHERE "public"."cadenero_members"."id" = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test4"  (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")  (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, "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")  (1.6ms) 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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.9ms) SELECT version FROM "schema_migrations"  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-16 10:46: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-16 10:46: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 (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" = 146 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" = 190 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 190 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 190 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" = 190 Completed 201 Created in 109ms (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" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 146 Started GET "/v1" for 127.0.0.1 at 2013-07-16 10:46:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 190 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$1vK9Kipcr99rQzp5dOiRPenWyCPwzATHh3TUKBDpu7aoZDU5O4mu6"], ["updated_at", Tue, 16 Jul 2013 15:46: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", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 191], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WPGwMaPHHHv4pk8xxpmh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 191, "created_at" = '2013-07-16 15:46:51.592073', "updated_at" = '2013-07-16 15:46:51.592073', "authentication_token" = 'WPGwMaPHHHv4pk8xxpmh' WHERE "public"."cadenero_accounts"."id" = 147  (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", 147], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["user_id", 191]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CHzGxq2NqU7xxDqbszuC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 147, "user_id" = 191, "created_at" = '2013-07-16 15:46:51.598345', "updated_at" = '2013-07-16 15:46:51.598345', "auth_token" = 'CHzGxq2NqU7xxDqbszuC' WHERE "public"."cadenero_members"."id" = 193  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (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"  (8.6ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 147 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" = 191 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 191 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 191 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 191 Completed 201 Created in 156ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 147 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"191", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 191 LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-16 10:46:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-16 10:46:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) 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", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$WOtoJFmlQ4Z75BOPrjFWCejRrExK6eefKPmZXRAId8hHLfzhgRDuK"], ["updated_at", Tue, 16 Jul 2013 15:46:51 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", 147], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:51 UTC +00:00], ["user_id", 192]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bK9XMkFjs6zy25Tz1Wv4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 147, "user_id" = 192, "created_at" = '2013-07-16 15:46:51.941609', "updated_at" = '2013-07-16 15:46:51.941609', "auth_token" = 'bK9XMkFjs6zy25Tz1Wv4' WHERE "public"."cadenero_members"."id" = 194  (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" = 192 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 192 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 192 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 192 Completed 201 Created in 113ms (Views: 5.9ms | 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' LIMIT 1 Started GET "/v1/users/192" for 127.0.0.1 at 2013-07-16 10:46:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"192"} 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" = 147 AND "public"."cadenero_users"."id" = 192 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 192 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 192 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 192 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 192 Completed 200 OK in 11ms (Views: 5.8ms | 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-16 10:46:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 192 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 192 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 192 Cadenero::V1::Account Load (8.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" = 192 Completed 201 Created in 18ms (Views: 8.2ms | ActiveRecord: 8.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.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$nsITBpC1kBvOOVmeiqaPcO3UyfNGJHIR2/goiatQcWx4CrWXoKTKq"], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 193], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TyFsopePkPPmhaCGaRsJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 193, "created_at" = '2013-07-16 15:46:52.169749', "updated_at" = '2013-07-16 15:46:52.169749', "authentication_token" = 'TyFsopePkPPmhaCGaRsJ' WHERE "public"."cadenero_accounts"."id" = 148  (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", 148], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["user_id", 193]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1JKpRpnVtWWZp8GsV7DA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 148, "user_id" = 193, "created_at" = '2013-07-16 15:46:52.176210', "updated_at" = '2013-07-16 15:46:52.176210', "auth_token" = '1JKpRpnVtWWZp8GsV7DA' WHERE "public"."cadenero_members"."id" = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.8ms) 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))   (1.7ms) 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")  (2.6ms) 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)   (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"  (3.0ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:52 -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.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" = 148 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" = 193 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 193 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 193 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 193 Completed 201 Created in 110ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 148 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"193", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 193 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-16 10:46: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 53ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$TFoZ6NWPrhpHz7m7DmbSluc9yVJGnUgMJJdEBFn38136I8a6Va/ta"], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 194], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2DFZHfsJ8UbVW3cjhyRP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 194, "created_at" = '2013-07-16 15:46:52.572107', "updated_at" = '2013-07-16 15:46:52.572107', "authentication_token" = '2DFZHfsJ8UbVW3cjhyRP' WHERE "public"."cadenero_accounts"."id" = 149  (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", 149], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["user_id", 194]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Pm792p9Brfv6WLmVzj5E' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 149, "user_id" = 194, "created_at" = '2013-07-16 15:46:52.577938', "updated_at" = '2013-07-16 15:46:52.577938', "auth_token" = 'Pm792p9Brfv6WLmVzj5E' WHERE "public"."cadenero_members"."id" = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (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))  (1.2ms) 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.0ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-16 10:46: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/users" for 127.0.0.1 at 2013-07-16 10:46:52 -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" = '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", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Y48OFJuV4osUhhNBOZ.eWOstDB1VbOXlRv7edRZBtSlhjbPd9esA."], ["updated_at", Tue, 16 Jul 2013 15:46:52 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", 149], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["user_id", 195]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rESqTaz8JegRU4PsqBjP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 149, "user_id" = 195, "created_at" = '2013-07-16 15:46:52.768433', "updated_at" = '2013-07-16 15:46:52.768433', "auth_token" = 'rESqTaz8JegRU4PsqBjP' WHERE "public"."cadenero_members"."id" = 197  (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" = 195 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 195 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 195 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" = 195 Completed 201 Created in 133ms (Views: 6.1ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/195" for 127.0.0.1 at 2013-07-16 10:46:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"195"} 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" = 149 AND "public"."cadenero_users"."id" = 195 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 195 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 195 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 195 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 195 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:52 -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" = 195 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 195 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 195 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" = 195 Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.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" for 127.0.0.1 at 2013-07-16 10:46:52 -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" = 195 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$z.m3l98vrgfLvBgihhUTCuR8i1mp8o5ETZKP84UUorybchtqoALiG"], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 196], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GpiWx6c7EdeNAj1yCkHZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 196, "created_at" = '2013-07-16 15:46:52.932570', "updated_at" = '2013-07-16 15:46:52.932570', "authentication_token" = 'GpiWx6c7EdeNAj1yCkHZ' WHERE "public"."cadenero_accounts"."id" = 150  (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", 150], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:52 UTC +00:00], ["user_id", 196]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tNhhHXRov4B8xQKvd7Lp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 150, "user_id" = 196, "created_at" = '2013-07-16 15:46:52.939019', "updated_at" = '2013-07-16 15:46:52.939019', "auth_token" = 'tNhhHXRov4B8xQKvd7Lp' WHERE "public"."cadenero_members"."id" = 198  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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)  (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.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")  (2.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")  (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)  (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 ('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-16 10:46:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 150 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$5JYA2pHQ5uO.kMmfX3Dnt.5PsNxb1SXfAyp3GowPOVHetS4FRRoc2"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = '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", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 197], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FGpgiNN8qJ6SpNHKAuQh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 197, "created_at" = '2013-07-16 15:46:53.168702', "updated_at" = '2013-07-16 15:46:53.168702', "authentication_token" = 'FGpgiNN8qJ6SpNHKAuQh' WHERE "public"."cadenero_accounts"."id" = 151  (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", 151], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["user_id", 197]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3gBN1LNfeJwAsAmUuF8t' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 151, "user_id" = 197, "created_at" = '2013-07-16 15:46:53.179857', "updated_at" = '2013-07-16 15:46:53.179857', "auth_token" = '3gBN1LNfeJwAsAmUuF8t' WHERE "public"."cadenero_members"."id" = 199  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.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)   (3.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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))  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.9ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:53 -0500 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$YwolVIru4eiMC1iglbtEyeggsl0zCj0KLdi2FOLTVu1r.cetqoToi"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 198], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V7zGdxe35qHuYnrjzqd5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 198, "created_at" = '2013-07-16 15:46:53.409729', "updated_at" = '2013-07-16 15:46:53.409729', "authentication_token" = 'V7zGdxe35qHuYnrjzqd5' WHERE "public"."cadenero_accounts"."id" = 152  (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", 152], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["user_id", 198]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HpCYoWtZ7VdMjYHnFyox' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 152, "user_id" = 198, "created_at" = '2013-07-16 15:46:53.415245', "updated_at" = '2013-07-16 15:46:53.415245', "auth_token" = 'HpCYoWtZ7VdMjYHnFyox' WHERE "public"."cadenero_members"."id" = 200  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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.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.4ms) 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")  (3.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)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (9.3ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$gAc5j/aMvNTxeA8USYZ8OO3t9/5SrV951BMm01wazLx.CDRBSj.Ru"], ["updated_at", Tue, 16 Jul 2013 15:46:53 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" = 'test11' 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", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 199], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZwNpdq2zgipLL5QzFuxa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 199, "created_at" = '2013-07-16 15:46:53.662461', "updated_at" = '2013-07-16 15:46:53.662461', "authentication_token" = 'ZwNpdq2zgipLL5QzFuxa' WHERE "public"."cadenero_accounts"."id" = 153  (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", 153], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["user_id", 199]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xJ1HcSpL1fDj7Pm7yzpR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 153, "user_id" = 199, "created_at" = '2013-07-16 15:46:53.670445', "updated_at" = '2013-07-16 15:46:53.670445', "auth_token" = 'xJ1HcSpL1fDj7Pm7yzpR' WHERE "public"."cadenero_members"."id" = 201  (0.5ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-16 10:46:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46:53 -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 ('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" = 152 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (2.1ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$eGHsYo2EG/OFemw0uM6oHemyPPdRScV92x/VTnsSayEbT.dpk7mZ6"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 200], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mNMCe9WqCwKFxD8umaBD' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 200, "created_at" = '2013-07-16 15:46:53.847184', "updated_at" = '2013-07-16 15:46:53.847184', "authentication_token" = 'mNMCe9WqCwKFxD8umaBD' WHERE "public"."cadenero_accounts"."id" = 154  (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", 154], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:53 UTC +00:00], ["user_id", 200]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4rqT9zCSrFLTb9hrmoJP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 154, "user_id" = 200, "created_at" = '2013-07-16 15:46:53.853203', "updated_at" = '2013-07-16 15:46:53.853203', "auth_token" = '4rqT9zCSrFLTb9hrmoJP' WHERE "public"."cadenero_members"."id" = 202  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.0ms) 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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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)  (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.4ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-16 10:46:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 10:46: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 154 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$xcsbWLJF6STdHztSQVBF8eGrcjhQoOzLkAC6UpzAFYR0WhGTlowxq"], ["updated_at", Tue, 16 Jul 2013 15:46: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 201], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vhbpgAmwpo6b8XkJqZcv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 201, "created_at" = '2013-07-16 15:46:58.570316', "updated_at" = '2013-07-16 15:46:58.570316', "authentication_token" = 'vhbpgAmwpo6b8XkJqZcv' WHERE "public"."cadenero_accounts"."id" = 155  (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", 155], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["user_id", 201]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SCUQMHeyybS2oFY9pHSs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 155, "user_id" = 201, "created_at" = '2013-07-16 15:46:58.578601', "updated_at" = '2013-07-16 15:46:58.578601', "auth_token" = 'SCUQMHeyybS2oFY9pHSs' WHERE "public"."cadenero_members"."id" = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$voTXZUxgL48IDHENHxw/uuxWVWs9wyUJT9FNvwMKv85ZyMBL8ImDO"], ["updated_at", Tue, 16 Jul 2013 15:46:58 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", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$PalANwyU/4UqoGA8dnBRDuyhTiK.HzzmPhGzymJ7ljDK70BtuMS1a"], ["updated_at", Tue, 16 Jul 2013 15:46: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", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["name", "Root"], ["owner_id", 203], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PNBJJZ92X7bTQXD3GmxE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 203, "created_at" = '2013-07-16 15:46:58.805385', "updated_at" = '2013-07-16 15:46:58.805385', "authentication_token" = 'PNBJJZ92X7bTQXD3GmxE' WHERE "public"."cadenero_accounts"."id" = 156  (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", 156], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 15:46:58 UTC +00:00], ["user_id", 203]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'spWDQBbW6TDuukDP2j3S' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 156, "user_id" = 203, "created_at" = '2013-07-16 15:46:58.811051', "updated_at" = '2013-07-16 15:46:58.811051', "auth_token" = 'spWDQBbW6TDuukDP2j3S' WHERE "public"."cadenero_members"."id" = 204  (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.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, "auth_token" character varying(255))  (3.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")  (241.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (21.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)   (2.8ms) 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 ('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.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.8ms) 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK Connecting to database specified by database.yml  (4.8ms) BEGIN  (1.7ms) COMMIT  (0.2ms) BEGIN  (8.3ms) SAVEPOINT active_record_1 SQL (127.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:06:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$fgm/pUYmncGtoON6pxx2Le7D0QC1xGK0hnGPE0SyyJ0Wf7by5uANO"], ["updated_at", Wed, 17 Jul 2013 04:06:59 UTC +00:00]]  (5.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.1ms) 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", Wed, 17 Jul 2013 04:07:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 204], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 04:07:00 UTC +00:00]] Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UJBL6eca1rhR9x3sivQ4' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 204, "created_at" = '2013-07-17 04:07:00.107410', "updated_at" = '2013-07-17 04:07:00.107410', "authentication_token" = 'UJBL6eca1rhR9x3sivQ4' WHERE "public"."cadenero_accounts"."id" = 157  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 157], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:00 UTC +00:00], ["user_id", 204]] Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W16q6sLddByeTzuMsjsr' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 157, "user_id" = 204, "created_at" = '2013-07-17 04:07:00.318418', "updated_at" = '2013-07-17 04:07:00.318418', "auth_token" = 'W16q6sLddByeTzuMsjsr' WHERE "public"."cadenero_members"."id" = 205  (2.2ms) RELEASE SAVEPOINT active_record_1  (5.4ms) CREATE SCHEMA "test1"  (45.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)   (4.0ms) 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")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) 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)  (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"  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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 143ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 23:07: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 157 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (12.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 204 LIMIT 1 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 204 Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 204 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" = 204 Completed 201 Created in 523ms (Views: 38.3ms | ActiveRecord: 22.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" = 157 Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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" = 204 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (17.8ms) ROLLBACK  (0.5ms) BEGIN  (4.0ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$o3Q8Q6HAi/eeB3Xb8/gMR.Vpp4kPMA4i/EYTchhOI/Vv0mfCZUBHS"], ["updated_at", Wed, 17 Jul 2013 04:07:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (27.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", Wed, 17 Jul 2013 04:07:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 205], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 04:07:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ykwj8EzvVbffqKTyob3y' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 205, "created_at" = '2013-07-17 04:07:01.647321', "updated_at" = '2013-07-17 04:07:01.647321', "authentication_token" = 'Ykwj8EzvVbffqKTyob3y' WHERE "public"."cadenero_accounts"."id" = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 158], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:01 UTC +00:00], ["user_id", 205]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2HtX7XMpXjgprsbqECRq' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 158, "user_id" = 205, "created_at" = '2013-07-17 04:07:01.768408', "updated_at" = '2013-07-17 04:07:01.768408', "auth_token" = '2HtX7XMpXjgprsbqECRq' WHERE "public"."cadenero_members"."id" = 206  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.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")  (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.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")  (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.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"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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/users" for 127.0.0.1 at 2013-07-16 23:07: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 (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (1.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", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Wgrw7gK/Ydtim1AC84jmruZ3IQmDtDipBmJuQtGgtiWGIuopyYd6e"], ["updated_at", Wed, 17 Jul 2013 04:07: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", 158], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["user_id", 206]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ffNqtipJmwdpcCbnQfke' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 158, "user_id" = 206, "created_at" = '2013-07-17 04:07:02.046369', "updated_at" = '2013-07-17 04:07:02.046369', "auth_token" = 'ffNqtipJmwdpcCbnQfke' WHERE "public"."cadenero_members"."id" = 207  (1.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 206 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 206 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 206 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" = 206 Completed 201 Created in 195ms (Views: 6.3ms | ActiveRecord: 14.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/206" for 127.0.0.1 at 2013-07-16 23:07:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"206"} 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.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" = 158 AND "public"."cadenero_users"."id" = 206 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 206 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 206 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 206 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" = 206 Completed 200 OK in 16ms (Views: 7.9ms | ActiveRecord: 3.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-16 23:07: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 206 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 206 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 206 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" = 206 Completed 201 Created in 9ms (Views: 5.1ms | ActiveRecord: 2.3ms) 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" for 127.0.0.1 at 2013-07-16 23:07:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (7.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 206 LIMIT 1 Completed 200 OK in 38ms (Views: 18.7ms | ActiveRecord: 7.9ms)  (12.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (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", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$MkKkr3aY2NnAHzJ5EDBBJOzNEU27OOxkaMoqKiiN8ZB975T5qEUtG"], ["updated_at", Wed, 17 Jul 2013 04:07:02 UTC +00:00]]  (0.4ms) 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" = '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", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 207], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 04:07:02 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SWbcRhxwhYVAXeqbqA5y' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 207, "created_at" = '2013-07-17 04:07:02.707231', "updated_at" = '2013-07-17 04:07:02.707231', "authentication_token" = 'SWbcRhxwhYVAXeqbqA5y' WHERE "public"."cadenero_accounts"."id" = 159  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 159], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:02 UTC +00:00], ["user_id", 207]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VUGi9wrNxAmUm1s1m6Ba' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 159, "user_id" = 207, "created_at" = '2013-07-17 04:07:02.716241', "updated_at" = '2013-07-17 04:07:02.716241', "auth_token" = 'VUGi9wrNxAmUm1s1m6Ba' WHERE "public"."cadenero_members"."id" = 208  (0.1ms) RELEASE SAVEPOINT active_record_1  (14.0ms) CREATE SCHEMA "test3"  (15.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.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")  (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))  (2.7ms) 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")  (6.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.4ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-16 23:07:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) 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" = 159 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 207 LIMIT 1 Cadenero::Member Load (5.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 207 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 207 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 207 Completed 201 Created in 247ms (Views: 7.6ms | ActiveRecord: 10.6ms) Cadenero::V1::Account Load (1.0ms) 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" = 159 Cadenero::User Load (1.4ms) 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-16 23:07:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"207", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 207 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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-16 23:07: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 (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$DL5UoIqClhGcl8gWCarLv./lVRr.9Gov4cDxQQE2kn9sWJhgDsen6"], ["updated_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00]] 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", 159], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["user_id", 208]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fnR6iQGrdq35dwpG4dgq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 159, "user_id" = 208, "created_at" = '2013-07-17 04:07:03.288586', "updated_at" = '2013-07-17 04:07:03.288586', "auth_token" = 'fnR6iQGrdq35dwpG4dgq' WHERE "public"."cadenero_members"."id" = 209  (0.7ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 208 LIMIT 1 Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 208 Cadenero::V1::Account Load (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 208 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" = 208 Completed 201 Created in 208ms (Views: 13.8ms | ActiveRecord: 15.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/208" for 127.0.0.1 at 2013-07-16 23:07:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"208"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 159 AND "public"."cadenero_users"."id" = 208 LIMIT 1 Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 208 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 208 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 208 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" = 208 Completed 200 OK in 21ms (Views: 10.2ms | ActiveRecord: 6.9ms) 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-16 23:07: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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 208 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 208 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 208 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 208 Completed 201 Created in 11ms (Views: 5.0ms | ActiveRecord: 1.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  (12.7ms) ROLLBACK  (0.8ms) BEGIN  (0.6ms) COMMIT  (0.2ms) BEGIN  (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", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$XDQhY0EbqvXHpcPxXtpNf.xBtt8BetbifiRou6ZiBufTERVmx5uVm"], ["updated_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 209], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R2vFCCLz4rguhxtb8SNw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 209, "created_at" = '2013-07-17 04:07:03.572920', "updated_at" = '2013-07-17 04:07:03.572920', "authentication_token" = 'R2vFCCLz4rguhxtb8SNw' WHERE "public"."cadenero_accounts"."id" = 160  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", 160], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:03 UTC +00:00], ["user_id", 209]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FYsCoLbZti7rvqxjNFYt' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 160, "user_id" = 209, "created_at" = '2013-07-17 04:07:03.585147', "updated_at" = '2013-07-17 04:07:03.585147', "auth_token" = 'FYsCoLbZti7rvqxjNFYt' WHERE "public"."cadenero_members"."id" = 210  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test4"  (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)   (2.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.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")  (0.9ms) 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")  (16.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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) 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-16 23:07:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 160 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" = 209 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 209 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 209 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" = 209 Completed 201 Created in 139ms (Views: 5.5ms | 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' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 160 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-16 23:07:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"209", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 209 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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)  (17.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$elfBZoaxFZGB0RtCdSOt3.zqOuM83efUIl3WQith8RUPZAFF/Wo0e"], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 210], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pqv37yutAgjajYB4y1aZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 210, "created_at" = '2013-07-17 04:07:04.110315', "updated_at" = '2013-07-17 04:07:04.110315', "authentication_token" = 'Pqv37yutAgjajYB4y1aZ' WHERE "public"."cadenero_accounts"."id" = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (14.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", 161], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["user_id", 210]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HshE37VWJEtijGJdFcYs' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 161, "user_id" = 210, "created_at" = '2013-07-17 04:07:04.117586', "updated_at" = '2013-07-17 04:07:04.117586', "auth_token" = 'HshE37VWJEtijGJdFcYs' WHERE "public"."cadenero_members"."id" = 211  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test5"  (66.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.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")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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-16 23:07: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.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" = 161 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (10.0ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$PfWYOBouZYJVofhJE0WCpejX4MIFNpl8vjQa4vnQ2VA4Ry5fbWM/u"], ["updated_at", Wed, 17 Jul 2013 04:07:04 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 211], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zgyrjXeKqV4MQ1A2QFzu' LIMIT 1  (3.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 211, "created_at" = '2013-07-17 04:07:04.515834', "updated_at" = '2013-07-17 04:07:04.515834', "authentication_token" = 'zgyrjXeKqV4MQ1A2QFzu' WHERE "public"."cadenero_accounts"."id" = 162  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (3.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", 162], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["user_id", 211]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rYfZpirAZSFdhLGstDSY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 162, "user_id" = 211, "created_at" = '2013-07-17 04:07:04.525956', "updated_at" = '2013-07-17 04:07:04.525956', "auth_token" = 'rYfZpirAZSFdhLGstDSY' WHERE "public"."cadenero_members"."id" = 212  (1.0ms) 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)   (4.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.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")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) 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-16 23:07: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-16 23:07: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.4ms) 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" = 162 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 1.9ms) Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (11.0ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$jpy6UkogFGUy5rLER48fwOl1GO0lWdTNd6vQmWoha.UYQPLNGd.8."], ["updated_at", Wed, 17 Jul 2013 04:07: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 (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", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 212], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dPg6d9igrvXqH6icbGit' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 212, "created_at" = '2013-07-17 04:07:04.817777', "updated_at" = '2013-07-17 04:07:04.817777', "authentication_token" = 'dPg6d9igrvXqH6icbGit' WHERE "public"."cadenero_accounts"."id" = 163  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 163], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:04 UTC +00:00], ["user_id", 212]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2mF845AxbrusyhKpjzCp' LIMIT 1  (4.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 163, "user_id" = 212, "created_at" = '2013-07-17 04:07:04.832455', "updated_at" = '2013-07-17 04:07:04.832455', "auth_token" = '2mF845AxbrusyhKpjzCp' WHERE "public"."cadenero_members"."id" = 213  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test7"  (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)  (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")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (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")  (3.6ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (34.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.4ms) 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-16 23:07:04 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 SQL (9.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$.6hBJHFbzxVp9ZDATn6gAO.kbosRa3OVShx5jQ8y0nni/5G2bTSIe"], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 213], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xLH9pvWyosqmM3vaHsL2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 213, "created_at" = '2013-07-17 04:07:05.164828', "updated_at" = '2013-07-17 04:07:05.164828', "authentication_token" = 'xLH9pvWyosqmM3vaHsL2' WHERE "public"."cadenero_accounts"."id" = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 164], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["user_id", 213]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ypCpExiEQaRsns6BGzAz' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 164, "user_id" = 213, "created_at" = '2013-07-17 04:07:05.172673', "updated_at" = '2013-07-17 04:07:05.172673', "auth_token" = 'ypCpExiEQaRsns6BGzAz' WHERE "public"."cadenero_members"."id" = 214  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test8"  (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.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")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (16.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (9.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Zo1/Y9HaYSbeVGF7ds8JOuoL/TAiBzDjbk7gBO4/SmbiN1sXhSow6"], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 214], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5cCQqjzXYkRsmHxyx7SW' LIMIT 1  (1.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 214, "created_at" = '2013-07-17 04:07:05.411842', "updated_at" = '2013-07-17 04:07:05.411842', "authentication_token" = '5cCQqjzXYkRsmHxyx7SW' WHERE "public"."cadenero_accounts"."id" = 165  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 165], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["user_id", 214]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2UXsbGFbuWECQjuxdq3b' LIMIT 1  (5.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 165, "user_id" = 214, "created_at" = '2013-07-17 04:07:05.419482', "updated_at" = '2013-07-17 04:07:05.419482', "auth_token" = '2UXsbGFbuWECQjuxdq3b' WHERE "public"."cadenero_members"."id" = 215  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-16 23:07: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-16 23:07:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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" = 164 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.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  (15.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-16 23:07: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.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.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", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$6ppp/5TofLgZ5qxstY/pjevQjwNGc1Aw6ro6xu32LyWMS9cQnFvZy"], ["updated_at", Wed, 17 Jul 2013 04:07:05 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", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["name", "Testy"], ["owner_id", 215], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jbBszfqUzYawyYfYKB2G' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 215, "created_at" = '2013-07-17 04:07:05.749664', "updated_at" = '2013-07-17 04:07:05.749664', "authentication_token" = 'jbBszfqUzYawyYfYKB2G' WHERE "public"."cadenero_accounts"."id" = 166  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 166], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:05 UTC +00:00], ["user_id", 215]] Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2BRPgfF86QyqET6PsHbQ' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 166, "user_id" = 215, "created_at" = '2013-07-17 04:07:05.763069', "updated_at" = '2013-07-17 04:07:05.763069', "auth_token" = '2BRPgfF86QyqET6PsHbQ' WHERE "public"."cadenero_members"."id" = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (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.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")  (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, "auth_token" character varying(255))   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) 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")  (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)   (6.0ms) 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 ('20130715174857')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (4.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 166) LIMIT 1 Completed 201 Created in 396ms (Views: 2.9ms | ActiveRecord: 101.4ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (11.9ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) COMMIT  (0.7ms) BEGIN  (0.7ms) 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 (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Pq/ZaoEn6/7qV5.OoabzEOSrdQF/suga944q7UvMInSZeDL/Krnh."], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00]] 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", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["name", "Testy"], ["owner_id", 216], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YruhWMsFGU3jNswN3M37' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 216, "created_at" = '2013-07-17 04:07:06.117815', "updated_at" = '2013-07-17 04:07:06.117815', "authentication_token" = 'YruhWMsFGU3jNswN3M37' WHERE "public"."cadenero_accounts"."id" = 167  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-16 23:07: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 (6.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (11.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 266ms (Views: 0.3ms | ActiveRecord: 17.4ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$E79Oj22EgpMD2BBI7raRle/zkXB1O2Nt3fEeU/XbabpebRqeOoAuG"], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00]]  (0.2ms) 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" = '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", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 217], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AdDABp8buoAVViDfrfqx' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 217, "created_at" = '2013-07-17 04:07:06.591396', "updated_at" = '2013-07-17 04:07:06.591396', "authentication_token" = 'AdDABp8buoAVViDfrfqx' WHERE "public"."cadenero_accounts"."id" = 168  (0.2ms) 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", 168], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["user_id", 217]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'knmTwwxfgunCYCq2yroH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 168, "user_id" = 217, "created_at" = '2013-07-17 04:07:06.603316', "updated_at" = '2013-07-17 04:07:06.603316', "auth_token" = 'knmTwwxfgunCYCq2yroH' WHERE "public"."cadenero_members"."id" = 217  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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)  (12.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")  (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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) 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"  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-16 23:07: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (2.5ms) 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", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1qD/dlmvTHXbos7MIA4G9uoxCsQGdLiWGOlIS6jvHaU7kN62tQpUS"], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00]] SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 168], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:06 UTC +00:00], ["user_id", 218]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yeaNwZeJ9JqoNutzMqLL' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 168, "user_id" = 218, "created_at" = '2013-07-17 04:07:06.900025', "updated_at" = '2013-07-17 04:07:06.900025', "auth_token" = 'yeaNwZeJ9JqoNutzMqLL' WHERE "public"."cadenero_members"."id" = 218  (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" = 218 LIMIT 1 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 218 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 218 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" = 218 Completed 201 Created in 198ms (Views: 6.1ms | ActiveRecord: 20.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/218" for 127.0.0.1 at 2013-07-16 23:07:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"218"} 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" = 168 AND "public"."cadenero_users"."id" = 218 LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 218 LIMIT 1 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 218 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 218 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" = 218 Completed 200 OK in 20ms (Views: 10.9ms | ActiveRecord: 5.6ms)  (5.9ms) ROLLBACK  (2.3ms) BEGIN  (4.9ms) COMMIT  (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", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$wxv759AgJjiQQBDu74y89uChw18aogbKY8dmkgZ3/M3iKvoJJyt4C"], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) 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", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 219], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V8uZCLKSyytpBoHefDW8' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 219, "created_at" = '2013-07-17 04:07:07.192866', "updated_at" = '2013-07-17 04:07:07.192866', "authentication_token" = 'V8uZCLKSyytpBoHefDW8' WHERE "public"."cadenero_accounts"."id" = 169  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.6ms) 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", 169], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["user_id", 219]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qpVA1Po86WrDpayC8UFL' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 169, "user_id" = 219, "created_at" = '2013-07-17 04:07:07.205551', "updated_at" = '2013-07-17 04:07:07.205551', "auth_token" = 'qpVA1Po86WrDpayC8UFL' WHERE "public"."cadenero_members"."id" = 219  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test11"  (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.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.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))   (3.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")  (2.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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) 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 ('20130715174857')  (0.8ms) 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-16 23:07: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 (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.5ms) 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", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$RJvEnY6ciWTL1gz3WgB7G.vpOBrmRlDt7tHQbPzURW.beifprlqTm"], ["updated_at", Wed, 17 Jul 2013 04:07:07 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", 169], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["user_id", 220]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7jzee3z2idGgZ8fjwsZt' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 169, "user_id" = 220, "created_at" = '2013-07-17 04:07:07.470148', "updated_at" = '2013-07-17 04:07:07.470148', "auth_token" = '7jzee3z2idGgZ8fjwsZt' WHERE "public"."cadenero_members"."id" = 220  (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" = 220 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 220 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 220 Cadenero::V1::Account Load (4.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" = 220 Completed 201 Created in 170ms (Views: 15.9ms | ActiveRecord: 17.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/220" for 127.0.0.1 at 2013-07-16 23:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"220"} 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 (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" = 169 AND "public"."cadenero_users"."id" = 220 LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 220 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 220 Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 220 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" = 220 Completed 200 OK in 109ms (Views: 96.3ms | ActiveRecord: 8.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 (5.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' 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", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 220], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mQgohscKozDXsnQhexti' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 220, "created_at" = '2013-07-17 04:07:07.651653', "updated_at" = '2013-07-17 04:07:07.651653', "authentication_token" = 'mQgohscKozDXsnQhexti' WHERE "public"."cadenero_accounts"."id" = 170  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 170], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["user_id", 220]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'abcxqcr4t7iwpyxjX3Qx' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 170, "user_id" = 220, "created_at" = '2013-07-17 04:07:07.664611', "updated_at" = '2013-07-17 04:07:07.664611', "auth_token" = 'abcxqcr4t7iwpyxjX3Qx' WHERE "public"."cadenero_members"."id" = 221  (3.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test12"  (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)  (4.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")  (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, "auth_token" character varying(255))   (6.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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")  (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)   (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (7.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-16 23:07: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.6ms) 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", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yqQ5UdWgHNaVSJ7.MD3Zs.zAUt/Peh51vvfd83vJskqOlyZIv3ecC"], ["updated_at", Wed, 17 Jul 2013 04:07:07 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", 170], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:07 UTC +00:00], ["user_id", 221]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jxqCSUBzbY5MHRrbpkDG' LIMIT 1  (2.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 170, "user_id" = 221, "created_at" = '2013-07-17 04:07:07.915142', "updated_at" = '2013-07-17 04:07:07.915142', "auth_token" = 'jxqCSUBzbY5MHRrbpkDG' WHERE "public"."cadenero_members"."id" = 222  (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" = 221 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 221 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 221 Completed 201 Created in 137ms (Views: 5.8ms | ActiveRecord: 11.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 Started GET "/v1/users/221" for 127.0.0.1 at 2013-07-16 23:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"221"} Cadenero::V1::Account Load (5.7ms) 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" = 170 AND "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 221 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 221 Completed 200 OK in 18ms (Views: 5.9ms | ActiveRecord: 8.4ms) Started GET "/v1/users/220" for 127.0.0.1 at 2013-07-16 23:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"220"} 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.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" = 169 AND "public"."cadenero_users"."id" = 220 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 220 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 220 Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 220 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" = 220 Completed 200 OK in 19ms (Views: 8.8ms | ActiveRecord: 6.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-16 23:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 169 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 220 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 220 Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 220 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" = 220 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 219 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 219 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" = 219 Completed 200 OK in 25ms (Views: 15.4ms | ActiveRecord: 7.8ms)  (15.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Wed, 17 Jul 2013 04:07:12 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$ElVlSLkCvozCbON/ANoBjeXc/L.ftd9Vaz6zI6Gz2iPmrWLT8g1UO"], ["updated_at", Wed, 17 Jul 2013 04:07:12 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" = '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", Wed, 17 Jul 2013 04:07:12 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 222], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 04:07:12 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'T638FdSYf7sPaLWzfaAx' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 222, "created_at" = '2013-07-17 04:07:12.956702', "updated_at" = '2013-07-17 04:07:12.956702', "authentication_token" = 'T638FdSYf7sPaLWzfaAx' WHERE "public"."cadenero_accounts"."id" = 171  (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", 171], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:12 UTC +00:00], ["user_id", 222]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y5WJ14E7zmyBzt9Cd2ds' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 171, "user_id" = 222, "created_at" = '2013-07-17 04:07:12.966539', "updated_at" = '2013-07-17 04:07:12.966539', "auth_token" = 'y5WJ14E7zmyBzt9Cd2ds' WHERE "public"."cadenero_members"."id" = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.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", Wed, 17 Jul 2013 04:07:13 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$YlZyOGo8zx0dwfp/FBteHuWOznrpoh032XLyVR6LTIbKP7uaxu32C"], ["updated_at", Wed, 17 Jul 2013 04:07:13 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 04:07:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$o2k/NjTV0stb5GSzj83x0ui9MeED98mZ8VpBcoLyHW4gBKb5ttOMq"], ["updated_at", Wed, 17 Jul 2013 04:07:13 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.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", Wed, 17 Jul 2013 04:07:13 UTC +00:00], ["name", "Root"], ["owner_id", 224], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 04:07:13 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kzYptxcYQmwqVjuZoxFn' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 224, "created_at" = '2013-07-17 04:07:13.342669', "updated_at" = '2013-07-17 04:07:13.342669', "authentication_token" = 'kzYptxcYQmwqVjuZoxFn' WHERE "public"."cadenero_accounts"."id" = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 172], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:13 UTC +00:00], ["user_id", 224]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xhNjJR3R8pyXxZsEaqz9' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 172, "user_id" = 224, "created_at" = '2013-07-17 04:07:13.351532', "updated_at" = '2013-07-17 04:07:13.351532', "auth_token" = 'xhNjJR3R8pyXxZsEaqz9' WHERE "public"."cadenero_members"."id" = 224  (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)  (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")  (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, "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.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)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (1.6ms) 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.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (11.6ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.8ms) BEGIN  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) COMMIT  (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)  (3.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) COMMIT  (1.7ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:20 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AhApR6xNVsFsuXyKvTpF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 04:07:20.174765', "updated_at" = '2013-07-17 04:07:20.174765', "auth_token" = 'AhApR6xNVsFsuXyKvTpF' WHERE "public"."cadenero_members"."id" = 225  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (2.0ms) COMMIT  (0.7ms) 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) BEGIN  (0.4ms) COMMIT  (1.3ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.7ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 04:07:20 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8jfsR0rTI5TnZAiWNjG6se/m1vx9x8y0UZIuFDIvxaLC3B3ZT3ZVy"], ["updated_at", Wed, 17 Jul 2013 04:07:20 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", Wed, 17 Jul 2013 04:07:20 UTC +00:00], ["name", "Test Account"], ["owner_id", 225], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 04:07:20 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9PtVN18TpVXPeZMwnqVz' LIMIT 1  (2.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 225, "created_at" = '2013-07-17 04:07:20.650563', "updated_at" = '2013-07-17 04:07:20.650563', "authentication_token" = '9PtVN18TpVXPeZMwnqVz' WHERE "public"."cadenero_accounts"."id" = 173  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.0ms) 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", 173], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 04:07:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 04:07:20 UTC +00:00], ["user_id", 225]] Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4A2sPmBsAVzE18DuEgso' LIMIT 1  (4.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 173, "user_id" = 225, "created_at" = '2013-07-17 04:07:20.676981', "updated_at" = '2013-07-17 04:07:20.676981', "auth_token" = '4A2sPmBsAVzE18DuEgso' WHERE "public"."cadenero_members"."id" = 226  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test"  (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)   (4.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.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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")  (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)  (3.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"  (2.9ms) 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.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" = 173 LIMIT 1  (7.3ms) ROLLBACK  (0.9ms) BEGIN  (12.8ms) COMMIT  (9.9ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (14.8ms) ROLLBACK  (56.9ms) BEGIN  (1.4ms) COMMIT  (1.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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 1.0ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) COMMIT  (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 (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" = 101 Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 2.6ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (17.1ms) COMMIT  (0.2ms) BEGIN  (4.3ms) SAVEPOINT active_record_1 SQL (62.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 12:51:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$RiGH8VzEJBuKeSKz/UBO6utjdUXQjNHbFADqBsOwbHbH3jlg0Kq2q"], ["updated_at", Wed, 17 Jul 2013 12:51:04 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (7.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (18.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", Wed, 17 Jul 2013 12:51:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 226], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 12:51:04 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2Hz1xi3HKHuSpALZnxKp' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 226, "created_at" = '2013-07-17 12:51:04.529917', "updated_at" = '2013-07-17 12:51:04.529917', "authentication_token" = '2Hz1xi3HKHuSpALZnxKp' WHERE "public"."cadenero_accounts"."id" = 174  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (22.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", 174], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:04 UTC +00:00], ["user_id", 226]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bNyNW5z5Fhca1fdTCmxs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 174, "user_id" = 226, "created_at" = '2013-07-17 12:51:04.743374', "updated_at" = '2013-07-17 12:51:04.743374', "auth_token" = 'bNyNW5z5Fhca1fdTCmxs' WHERE "public"."cadenero_members"."id" = 227  (0.1ms) RELEASE SAVEPOINT active_record_1  (11.2ms) CREATE SCHEMA "test1"  (48.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.5ms) 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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (139.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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (11.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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 132ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51: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 (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 174 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" = 226 LIMIT 1 Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 226 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 226 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" = 226 Completed 201 Created in 181ms (Views: 33.9ms | ActiveRecord: 9.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 174 Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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" = 226 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (12.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$3gjFdXhQggDZJwwuoRzzMOKIogXt0ywYZUKUz.0qy0KbBXqz5RxcW"], ["updated_at", Wed, 17 Jul 2013 12:51:05 UTC +00:00]]  (1.1ms) 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" = '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", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 227], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 12:51:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J2CHksgwfxcE6B1LcwWe' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 227, "created_at" = '2013-07-17 12:51:05.649914', "updated_at" = '2013-07-17 12:51:05.649914', "authentication_token" = 'J2CHksgwfxcE6B1LcwWe' WHERE "public"."cadenero_accounts"."id" = 175  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 175], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["user_id", 227]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QrxWHiYE7Y2HbFuiRkdW' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 175, "user_id" = 227, "created_at" = '2013-07-17 12:51:05.657731', "updated_at" = '2013-07-17 12:51:05.657731', "auth_token" = 'QrxWHiYE7Y2HbFuiRkdW' WHERE "public"."cadenero_members"."id" = 228  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.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)  (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")  (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.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")  (19.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (12.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (11.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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-17 07: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 (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.7ms) 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", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$d63hphHex.e7clT85HqaWO4RoAaWlUeYkx3ihrTQaufssw5SCR6vu"], ["updated_at", Wed, 17 Jul 2013 12:51:05 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", 175], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:05 UTC +00:00], ["user_id", 228]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'v9PY2foAqMBzLSEBpW1Y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 175, "user_id" = 228, "created_at" = '2013-07-17 12:51:05.973473', "updated_at" = '2013-07-17 12:51:05.973473', "auth_token" = 'v9PY2foAqMBzLSEBpW1Y' WHERE "public"."cadenero_members"."id" = 229  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 228 LIMIT 1 Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 228 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 228 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" = 228 Completed 201 Created in 131ms (Views: 7.6ms | ActiveRecord: 11.6ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/228" for 127.0.0.1 at 2013-07-17 07:51:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"228"} Cadenero::V1::Account Load (8.0ms) 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" = 175 AND "public"."cadenero_users"."id" = 228 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 228 LIMIT 1 Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 228 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 228 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 228 Completed 200 OK in 30ms (Views: 7.0ms | ActiveRecord: 14.0ms) Cadenero::User Load (0.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-17 07: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 (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 228 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 228 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 228 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" = 228 Completed 201 Created in 16ms (Views: 5.2ms | 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" for 127.0.0.1 at 2013-07-17 07:51: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" = 228 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.5ms) 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", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$qXz/.YnkyQJ524mnLZP/LuieJDtCpTkTWRraM2GUjPEuO8WBHklLq"], ["updated_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 229], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pz7TiwHmtdjyzdbzqPLp' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 229, "created_at" = '2013-07-17 12:51:06.209192', "updated_at" = '2013-07-17 12:51:06.209192', "authentication_token" = 'Pz7TiwHmtdjyzdbzqPLp' WHERE "public"."cadenero_accounts"."id" = 176  (1.0ms) 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", 176], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["user_id", 229]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'A6N83xPPy9sSqkrVKA8U' LIMIT 1  (3.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 176, "user_id" = 229, "created_at" = '2013-07-17 12:51:06.225943', "updated_at" = '2013-07-17 12:51:06.225943', "auth_token" = 'A6N83xPPy9sSqkrVKA8U' WHERE "public"."cadenero_members"."id" = 230  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)   (0.9ms) 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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("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")  (16.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.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"  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51:06 -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" = 176 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 229 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 229 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 229 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" = 229 Completed 201 Created in 142ms (Views: 10.0ms | ActiveRecord: 5.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 (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 176 Cadenero::User Load (0.7ms) 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-17 07:51:06 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"229", "default"=>:json} Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 229 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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/users" for 127.0.0.1 at 2013-07-17 07: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 (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$/1L5t2S7Rl48Lkj8K3ilyeTjevrimEAZhwX7YWXIkGUVv6VJwPq/S"], ["updated_at", Wed, 17 Jul 2013 12:51:06 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", 176], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["user_id", 230]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AqpuapKpx4fP4eTkyU31' LIMIT 1  (2.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 176, "user_id" = 230, "created_at" = '2013-07-17 12:51:06.640649', "updated_at" = '2013-07-17 12:51:06.640649', "auth_token" = 'AqpuapKpx4fP4eTkyU31' WHERE "public"."cadenero_members"."id" = 231  (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" = 230 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 230 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 230 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" = 230 Completed 201 Created in 165ms (Views: 8.7ms | ActiveRecord: 16.5ms) Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/230" for 127.0.0.1 at 2013-07-17 07:51:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"230"} Cadenero::V1::Account Load (0.5ms) 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" = 176 AND "public"."cadenero_users"."id" = 230 LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 230 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 230 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 230 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" = 230 Completed 200 OK in 18ms (Views: 6.0ms | ActiveRecord: 8.4ms) 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-17 07: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" = 230 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 230 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 230 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" = 230 Completed 201 Created in 94ms (Views: 84.0ms | ActiveRecord: 8.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (9.0ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN  (6.0ms) 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", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$o15yHlFz9CtxYb3IsAeTde7YCAjUSjgqrrOalIfQjUPNSBeB8XUNC"], ["updated_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00]]  (0.1ms) 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" = '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", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 231], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 12: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" = '8GdyFzsCYToCGzurxQpL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 231, "created_at" = '2013-07-17 12:51:06.941643', "updated_at" = '2013-07-17 12:51:06.941643', "authentication_token" = '8GdyFzsCYToCGzurxQpL' WHERE "public"."cadenero_accounts"."id" = 177  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 177], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:06 UTC +00:00], ["user_id", 231]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jPjay1kshFsHVyz3xDsp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 177, "user_id" = 231, "created_at" = '2013-07-17 12:51:06.950241', "updated_at" = '2013-07-17 12:51:06.950241', "auth_token" = 'jPjay1kshFsHVyz3xDsp' WHERE "public"."cadenero_members"."id" = 232  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test4"  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (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")  (0.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)  (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"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51:07 -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" = 177 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 231 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 231 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 231 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" = 231 Completed 201 Created in 135ms (Views: 11.5ms | ActiveRecord: 2.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.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 177 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51:07 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"231", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 231 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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.2ms | ActiveRecord: 0.0ms)  (6.3ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) COMMIT  (1.0ms) BEGIN  (4.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$tznK.CZYzvTlrDMk/Pz2SO.BVcOC7cI8tN40sUbTefhptviKokEZm"], ["updated_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 232], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cJHYyNUZohpCKbUe5wyE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 232, "created_at" = '2013-07-17 12:51:07.377600', "updated_at" = '2013-07-17 12:51:07.377600', "authentication_token" = 'cJHYyNUZohpCKbUe5wyE' WHERE "public"."cadenero_accounts"."id" = 178  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 178], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["user_id", 232]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8oma8LF6xhxpPoqG4sR5' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 178, "user_id" = 232, "created_at" = '2013-07-17 12:51:07.386795', "updated_at" = '2013-07-17 12:51:07.386795', "auth_token" = '8oma8LF6xhxpPoqG4sR5' WHERE "public"."cadenero_members"."id" = 233  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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")  (4.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, "auth_token" character varying(255))   (2.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")  (0.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.0ms) 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"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51: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 (1.2ms) 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" = 178 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 2.0ms | ActiveRecord: 2.2ms) 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.7ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN  (1.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", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$vuyQqnOLC0zZHtVWzjJR7essgUtFvA3IVxsGcJHCfLJnOznd32ikq"], ["updated_at", Wed, 17 Jul 2013 12:51: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" = 'test6' 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", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 233], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00]] Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cG5SeMyVjiaaG5AzPnu8' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 233, "created_at" = '2013-07-17 12:51:07.662445', "updated_at" = '2013-07-17 12:51:07.662445', "authentication_token" = 'cG5SeMyVjiaaG5AzPnu8' WHERE "public"."cadenero_accounts"."id" = 179  (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", 179], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["user_id", 233]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RFyE52hMzP49vQS5yxQD' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 179, "user_id" = 233, "created_at" = '2013-07-17 12:51:07.672770', "updated_at" = '2013-07-17 12:51:07.672770', "auth_token" = 'RFyE52hMzP49vQS5yxQD' WHERE "public"."cadenero_members"."id" = 234  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)   (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")  (13.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (1.4ms) 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')  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 07: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07: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.6ms) 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" = 179 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 (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 12:51:07 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$gmk9B4IU.tc2nM2qVBvNR.Jr4H2mf4xn7ahqA5xVxutU/GHa603DG"], ["updated_at", Wed, 17 Jul 2013 12:51:07 UTC +00:00]]  (0.3ms) 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" = '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", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 234], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'z4qYXtMyhxbskCVp6tgE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 234, "created_at" = '2013-07-17 12:51:08.014114', "updated_at" = '2013-07-17 12:51:08.014114', "authentication_token" = 'z4qYXtMyhxbskCVp6tgE' WHERE "public"."cadenero_accounts"."id" = 180  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 180], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["user_id", 234]] Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VeqEGi4vDhszTezaazkq' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 180, "user_id" = 234, "created_at" = '2013-07-17 12:51:08.024296', "updated_at" = '2013-07-17 12:51:08.024296', "auth_token" = 'VeqEGi4vDhszTezaazkq' WHERE "public"."cadenero_members"."id" = 235  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test7"  (15.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.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.9ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51:08 -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  (15.7ms) ROLLBACK  (2.2ms) BEGIN  (1.0ms) COMMIT  (0.9ms) BEGIN  (3.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", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$7n.peQGmRXLfnzItKOxOmu5R3SPcYw1N..nnuwX2ryG6Ctw0oG07W"], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00]]  (0.4ms) 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" = 'test8' 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", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 235], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zNJ3quwXkzxX2ThR8kFc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 235, "created_at" = '2013-07-17 12:51:08.295699', "updated_at" = '2013-07-17 12:51:08.295699', "authentication_token" = 'zNJ3quwXkzxX2ThR8kFc' WHERE "public"."cadenero_accounts"."id" = 181  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) SAVEPOINT active_record_1 SQL (3.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", 181], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["user_id", 235]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9spfuTEJdo4qKdWeppex' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 181, "user_id" = 235, "created_at" = '2013-07-17 12:51:08.306069', "updated_at" = '2013-07-17 12:51:08.306069', "auth_token" = '9spfuTEJdo4qKdWeppex' WHERE "public"."cadenero_members"."id" = 236  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)   (2.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")  (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))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)  (5.1ms) 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.2ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$lYHFAOLT57XM3paag/6dU.eA5XlSXPIZDir3IVwGzuIPgo7fM8RuG"], ["updated_at", Wed, 17 Jul 2013 12:51:08 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" = '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", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 236], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'm2Qd2Uq7zuUsuyYbxfVM' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 236, "created_at" = '2013-07-17 12:51:08.516389', "updated_at" = '2013-07-17 12:51:08.516389', "authentication_token" = 'm2Qd2Uq7zuUsuyYbxfVM' WHERE "public"."cadenero_accounts"."id" = 182  (1.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", 182], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:08 UTC +00:00], ["user_id", 236]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LKAsXxdfMBrmPsCPBDsb' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 182, "user_id" = 236, "created_at" = '2013-07-17 12:51:08.524096', "updated_at" = '2013-07-17 12:51:08.524096', "auth_token" = 'LKAsXxdfMBrmPsCPBDsb' WHERE "public"."cadenero_members"."id" = 237  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 07:51:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 07:51:08 -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.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" = 181 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (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.3ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.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.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.5ms) 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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 2.8ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (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" = 101 Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 4.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.8ms) 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", Wed, 17 Jul 2013 12:51:13 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Y9hunaJ2BtsaJtGcjZ/YIOeZI8E7G6mLLfLyhNPWzgo5wxWnAWNna"], ["updated_at", Wed, 17 Jul 2013 12:51:13 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" = '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", Wed, 17 Jul 2013 12:51:13 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 237], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 12:51:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EGadqo7Pg6z2qAxL2mW1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 237, "created_at" = '2013-07-17 12:51:13.972492', "updated_at" = '2013-07-17 12:51:13.972492', "authentication_token" = 'EGadqo7Pg6z2qAxL2mW1' WHERE "public"."cadenero_accounts"."id" = 183  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 183], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:13 UTC +00:00], ["user_id", 237]] Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GLeRhMpKao48fDyva7uu' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 183, "user_id" = 237, "created_at" = '2013-07-17 12:51:13.980202', "updated_at" = '2013-07-17 12:51:13.980202', "auth_token" = 'GLeRhMpKao48fDyva7uu' WHERE "public"."cadenero_members"."id" = 238  (0.4ms) RELEASE SAVEPOINT active_record_1  (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", Wed, 17 Jul 2013 12:51:14 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$YAXduChlYD51iOk153F7y.WdkQMOXS3UkhMDq42gGAlW2YV6Zvwy2"], ["updated_at", Wed, 17 Jul 2013 12:51:14 UTC +00:00]]  (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", Wed, 17 Jul 2013 12:51:14 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$qYjIxHByIN1GGab3wvExSOg/QfZris.kyZykUZ9emo0BEeTSQSLh2"], ["updated_at", Wed, 17 Jul 2013 12:51:14 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:14 UTC +00:00], ["name", "Root"], ["owner_id", 239], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 12:51:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YfySmGB1B6MdkAopZFua' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 239, "created_at" = '2013-07-17 12:51:14.227435', "updated_at" = '2013-07-17 12:51:14.227435', "authentication_token" = 'YfySmGB1B6MdkAopZFua' WHERE "public"."cadenero_accounts"."id" = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 184], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:14 UTC +00:00], ["user_id", 239]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pRcsTb6AqLNdxza1HBTQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 184, "user_id" = 239, "created_at" = '2013-07-17 12:51:14.234904', "updated_at" = '2013-07-17 12:51:14.234904', "auth_token" = 'pRcsTb6AqLNdxza1HBTQ' WHERE "public"."cadenero_members"."id" = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "www"  (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)   (3.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.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))  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.7ms) 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.5ms) 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.7ms) 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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (19.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (6.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (4.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", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$qZwhG1cm3aJJoxMTtUG.j.0JP3y0VAHUaN7RqIT0o.janMLGYPW4y"], ["updated_at", Wed, 17 Jul 2013 12:51:22 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) 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", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 240], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 12: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" = 'ugTDCT79NTwyJypC6Enf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 240, "created_at" = '2013-07-17 12:51:22.374597', "updated_at" = '2013-07-17 12:51:22.374597', "authentication_token" = 'ugTDCT79NTwyJypC6Enf' WHERE "public"."cadenero_accounts"."id" = 185  (0.2ms) 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", 185], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["user_id", 240]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mdrzm6vy3byBdhVJWKoN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 185, "user_id" = 240, "created_at" = '2013-07-17 12:51:22.382390', "updated_at" = '2013-07-17 12:51:22.382390', "auth_token" = 'mdrzm6vy3byBdhVJWKoN' WHERE "public"."cadenero_members"."id" = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test11"  (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)   (5.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")  (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, "auth_token" character varying(255))  (1.4ms) 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")  (9.1ms) 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)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 07: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.3ms) 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", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$iE/GhYRMsNRZ.wWrJCHYieVDE8OZr1BQ/cfCDKYYzD2DYwZ/atfMa"], ["updated_at", Wed, 17 Jul 2013 12:51:22 UTC +00:00]] 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", 185], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:22 UTC +00:00], ["user_id", 241]] Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5PFByfHApznFyxx3bjF8' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 185, "user_id" = 241, "created_at" = '2013-07-17 12:51:22.675070', "updated_at" = '2013-07-17 12:51:22.675070', "auth_token" = '5PFByfHApznFyxx3bjF8' WHERE "public"."cadenero_members"."id" = 241  (0.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 241 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 241 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 241 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" = 241 Completed 201 Created in 208ms (Views: 18.0ms | ActiveRecord: 14.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/241" for 127.0.0.1 at 2013-07-17 07:51:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"241"} Cadenero::V1::Account Load (1.6ms) 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" = 185 AND "public"."cadenero_users"."id" = 241 LIMIT 1 Cadenero::User Load (5.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 241 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 241 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 241 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" = 241 Completed 200 OK in 33ms (Views: 18.4ms | ActiveRecord: 9.1ms)  (9.2ms) ROLLBACK  (0.9ms) BEGIN  (8.6ms) COMMIT  (0.5ms) BEGIN  (0.5ms) 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", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$uqm7NURrXi7d/DOIdcZ0a.nz0zDmvKfQJ.IrTZbr/vuT6hS8LYjjq"], ["updated_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.4ms) 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", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 242], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 12: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" = '3YtsB1yosN7yqgH1xr1X' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 242, "created_at" = '2013-07-17 12:51:23.017735', "updated_at" = '2013-07-17 12:51:23.017735', "authentication_token" = '3YtsB1yosN7yqgH1xr1X' WHERE "public"."cadenero_accounts"."id" = 186  (1.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", 186], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["user_id", 242]] Cadenero::Member Load (7.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1Bo9B9jAZG81fDgssuBE' LIMIT 1  (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 186, "user_id" = 242, "created_at" = '2013-07-17 12:51:23.026001', "updated_at" = '2013-07-17 12:51:23.026001', "auth_token" = '1Bo9B9jAZG81fDgssuBE' WHERE "public"."cadenero_members"."id" = 242  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test12"  (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)   (8.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.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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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)  (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"  (2.1ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 07: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (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", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tqrqCo95mIeSooQY.eGsPe0EG0LaEDRigYtXnbGaGxxCXjCOyNOaS"], ["updated_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00]] SQL (14.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", 186], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["user_id", 243]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HZNtdwBp1XxrqZoBruYF' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 186, "user_id" = 243, "created_at" = '2013-07-17 12:51:23.553131', "updated_at" = '2013-07-17 12:51:23.553131', "auth_token" = 'HZNtdwBp1XxrqZoBruYF' WHERE "public"."cadenero_members"."id" = 243  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 243 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 243 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" = 243 Completed 201 Created in 512ms (Views: 11.5ms | ActiveRecord: 32.5ms) Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/243" for 127.0.0.1 at 2013-07-17 07:51:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"243"} Cadenero::V1::Account Load (1.1ms) 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" = 186 AND "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 243 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 243 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" = 243 Completed 200 OK in 21ms (Views: 13.1ms | ActiveRecord: 3.1ms) Cadenero::User Load (6.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' 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" = 'test13' 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", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 243], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TW4skNufbo7d3stCAjzg' LIMIT 1  (10.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 243, "created_at" = '2013-07-17 12:51:23.729627', "updated_at" = '2013-07-17 12:51:23.729627', "authentication_token" = 'TW4skNufbo7d3stCAjzg' WHERE "public"."cadenero_accounts"."id" = 187  (0.5ms) 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", 187], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:23 UTC +00:00], ["user_id", 243]] Cadenero::Member Load (20.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZuntaCsJw6PweX9WHeFy' LIMIT 1  (3.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 187, "user_id" = 243, "created_at" = '2013-07-17 12:51:23.757889', "updated_at" = '2013-07-17 12:51:23.757889', "auth_token" = 'ZuntaCsJw6PweX9WHeFy' WHERE "public"."cadenero_members"."id" = 244  (4.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test13"  (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)   (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")  (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, "auth_token" character varying(255))  (1.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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (17.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (9.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 ('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-17 07: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.4ms) 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", Wed, 17 Jul 2013 12:51:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$U3YXQMy/E3DfnHsMHSBr2ODn2PJEN7NKum//jRqGISwk2h8OO.4oG"], ["updated_at", Wed, 17 Jul 2013 12:51:24 UTC +00:00]] SQL (3.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", 187], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:24 UTC +00:00], ["user_id", 244]] Cadenero::Member Load (7.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MvSGtwy8ypMjivSucpiz' LIMIT 1  (11.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 187, "user_id" = 244, "created_at" = '2013-07-17 12:51:24.295203', "updated_at" = '2013-07-17 12:51:24.295203', "auth_token" = 'MvSGtwy8ypMjivSucpiz' WHERE "public"."cadenero_members"."id" = 245  (0.7ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 244 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 244 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 244 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" = 244 Completed 201 Created in 350ms (Views: 6.5ms | ActiveRecord: 26.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/244" for 127.0.0.1 at 2013-07-17 07:51:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"244"} 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 (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 187 AND "public"."cadenero_users"."id" = 244 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 244 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 244 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 244 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" = 244 Completed 200 OK in 20ms (Views: 11.2ms | ActiveRecord: 5.1ms) Started GET "/v1/users/243" for 127.0.0.1 at 2013-07-17 07:51:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"243"} Cadenero::V1::Account Load (3.7ms) 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" = 186 AND "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 243 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 243 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" = 243 Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 5.5ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 07:51: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" = 'test12' 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" = 186 Cadenero::User Load (4.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 243 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 243 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" = 243 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 242 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 242 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" = 242 Completed 200 OK in 64ms (Views: 52.7ms | ActiveRecord: 10.0ms)  (34.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.0ms) 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", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:24 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (4.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XPMhAgLz9pZPnddvTseB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 12:51:24.996461', "updated_at" = '2013-07-17 12:51:24.996461', "auth_token" = 'XPMhAgLz9pZPnddvTseB' WHERE "public"."cadenero_members"."id" = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 07: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}  (14.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (24.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 12:51:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$6cOBRwsMftp.VC2REtgacOYMb0uTW62y8cV/Xan/ajJR3A34Se/ya"], ["updated_at", Wed, 17 Jul 2013 12:51:25 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:25 UTC +00:00], ["name", "Testy"], ["owner_id", 245], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 12:51:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7pwbPnZd3hbMySV1Fczp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 245, "created_at" = '2013-07-17 12:51:25.639229', "updated_at" = '2013-07-17 12:51:25.639229', "authentication_token" = '7pwbPnZd3hbMySV1Fczp' WHERE "public"."cadenero_accounts"."id" = 188  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 188], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:25 UTC +00:00], ["user_id", 245]] Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xNzW7dFU2v3BxkuDwneb' LIMIT 1  (4.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 188, "user_id" = 245, "created_at" = '2013-07-17 12:51:25.646245', "updated_at" = '2013-07-17 12:51:25.646245', "auth_token" = 'xNzW7dFU2v3BxkuDwneb' WHERE "public"."cadenero_members"."id" = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (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.6ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (9.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 188) LIMIT 1 Completed 201 Created in 603ms (Views: 1.9ms | ActiveRecord: 128.1ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (23.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.1ms) 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", Wed, 17 Jul 2013 12:51:26 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$m.mXSUZKr6VUxIznNGS/deauurIR9atUixZboxF5u0RXdkLDdnAnS"], ["updated_at", Wed, 17 Jul 2013 12:51:26 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:26 UTC +00:00], ["name", "Testy"], ["owner_id", 246], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 12: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" = 'Nyqq5FrpCotv3PY1k7wj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 246, "created_at" = '2013-07-17 12:51:26.168731', "updated_at" = '2013-07-17 12:51:26.168731', "authentication_token" = 'Nyqq5FrpCotv3PY1k7wj' WHERE "public"."cadenero_accounts"."id" = 189  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 07: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  (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 653ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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  (2.3ms) BEGIN  (0.8ms) COMMIT  (0.6ms) 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.2ms) ROLLBACK  (3.4ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (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" = 'test' LIMIT 1 SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 12:51:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1iEIQfdjtPYMCbeLpo8r.O9Bn3znaQjbpxpU5Udsj3h9uvgM3FU7i"], ["updated_at", Wed, 17 Jul 2013 12:51:27 UTC +00:00]] 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", Wed, 17 Jul 2013 12:51:27 UTC +00:00], ["name", "Test Account"], ["owner_id", 247], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 12:51:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TJyYPEWqy9NJqSF741Ce' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 247, "created_at" = '2013-07-17 12:51:27.887221', "updated_at" = '2013-07-17 12:51:27.887221', "authentication_token" = 'TJyYPEWqy9NJqSF741Ce' WHERE "public"."cadenero_accounts"."id" = 190  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) 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", 190], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 12:51:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 12:51:27 UTC +00:00], ["user_id", 247]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'srn2JMRWPTQZaZynTe96' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 190, "user_id" = 247, "created_at" = '2013-07-17 12:51:27.895025', "updated_at" = '2013-07-17 12:51:27.895025', "auth_token" = 'srn2JMRWPTQZaZynTe96' WHERE "public"."cadenero_members"."id" = 248  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.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))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.7ms) 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)   (3.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 ('20130715174857')  (7.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (11.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) 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" = 190 LIMIT 1  (24.0ms) ROLLBACK  (0.1ms) BEGIN  (3.5ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (5.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (18.9ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (6.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Wed, 17 Jul 2013 13:16:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$aA6nK.4eM6hbInBQmiHeyOmG5996wzoJwpS21Ux4GWjjtH1baOkba"], ["updated_at", Wed, 17 Jul 2013 13:16:53 UTC +00:00]] 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", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["name", "Test Account"], ["owner_id", 248], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eUzCp1jxQRoYNTD7xVtZ' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 248, "created_at" = '2013-07-17 13:16:54.010204', "updated_at" = '2013-07-17 13:16:54.010204', "authentication_token" = 'eUzCp1jxQRoYNTD7xVtZ' WHERE "public"."cadenero_accounts"."id" = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", 191], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["user_id", 248]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mLEXgpBkvCDBjxzM2vGD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 191, "user_id" = 248, "created_at" = '2013-07-17 13:16:54.046995', "updated_at" = '2013-07-17 13:16:54.046995', "auth_token" = 'mLEXgpBkvCDBjxzM2vGD' WHERE "public"."cadenero_members"."id" = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.4ms) CREATE SCHEMA "test"  (39.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")  (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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.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.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" = 191 LIMIT 1  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_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", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9yzYrxTzjxoFzXcEhxqs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 13:16:54.494448', "updated_at" = '2013-07-17 13:16:54.494448', "auth_token" = '9yzYrxTzjxoFzXcEhxqs' WHERE "public"."cadenero_members"."id" = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$WgfX/b/N.dwpNbLqXHD2GuZpA829YkXhjWMcVigth/3mBXTxkQXbO"], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 249], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4CJTkMzS8pL9vT6FTxro' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 249, "created_at" = '2013-07-17 13:16:54.608042', "updated_at" = '2013-07-17 13:16:54.608042', "authentication_token" = '4CJTkMzS8pL9vT6FTxro' WHERE "public"."cadenero_accounts"."id" = 192  (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", 192], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["user_id", 249]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nHvPUQLoJxdqR3nj1Ro6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 192, "user_id" = 249, "created_at" = '2013-07-17 13:16:54.613511', "updated_at" = '2013-07-17 13:16:54.613511', "auth_token" = 'nHvPUQLoJxdqR3nj1Ro6' WHERE "public"."cadenero_members"."id" = 251  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (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"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:16:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PdYeasUqKvmO2Ez8GSZ8PO1rAH0H.3qWzmdhih2ZE447lGqfBUTo2"], ["updated_at", Wed, 17 Jul 2013 13:16: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", 192], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["user_id", 250]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Risq3YCDkp4e59vNxegy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 192, "user_id" = 250, "created_at" = '2013-07-17 13:16:54.777408', "updated_at" = '2013-07-17 13:16:54.777408', "auth_token" = 'Risq3YCDkp4e59vNxegy' WHERE "public"."cadenero_members"."id" = 252  (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" = 250 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 250 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 250 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 250 Completed 201 Created in 145ms (Views: 29.1ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/250" for 127.0.0.1 at 2013-07-17 08:16:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"250"} 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" = 192 AND "public"."cadenero_users"."id" = 250 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 250 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 250 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 250 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 250 Completed 200 OK in 11ms (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@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" = 'test2' 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", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 250], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xkSXN5ENDsyZr7tXdSrP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 250, "created_at" = '2013-07-17 13:16:54.843559', "updated_at" = '2013-07-17 13:16:54.843559', "authentication_token" = 'xkSXN5ENDsyZr7tXdSrP' WHERE "public"."cadenero_accounts"."id" = 193  (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", 193], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:54 UTC +00:00], ["user_id", 250]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '88QWzpqJJp1dLSnBhHku' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 193, "user_id" = 250, "created_at" = '2013-07-17 13:16:54.849458', "updated_at" = '2013-07-17 13:16:54.849458', "auth_token" = '88QWzpqJJp1dLSnBhHku' WHERE "public"."cadenero_members"."id" = 253  (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)  (2.8ms) 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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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")  (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.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.1ms) 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-17 08:16: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" = 'test2' 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", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NfldD1.sBxVn6qCl8kTXQ.z35LfU2VPKFvbjjO4E3oDtT.05W37Mu"], ["updated_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 193], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["user_id", 251]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9skD7fFqwaLiBCuJkNCc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 193, "user_id" = 251, "created_at" = '2013-07-17 13:16:55.010095', "updated_at" = '2013-07-17 13:16:55.010095', "auth_token" = '9skD7fFqwaLiBCuJkNCc' WHERE "public"."cadenero_members"."id" = 254  (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" = 251 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 251 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 251 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 251 Completed 201 Created in 113ms (Views: 5.6ms | 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/251" for 127.0.0.1 at 2013-07-17 08:16:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"251"} 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" = 193 AND "public"."cadenero_users"."id" = 251 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 251 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 251 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 251 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 251 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) Started GET "/v1/users/250" for 127.0.0.1 at 2013-07-17 08:16:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"250"} 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" = 192 AND "public"."cadenero_users"."id" = 250 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 250 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 250 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 250 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 250 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 08:16:55 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 192 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 250 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 250 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 250 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 250 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 249 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 249 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 249 Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 2.6ms)  (13.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YFJCrQi57gLXZYI9DYnDnOXRPpCEpMyg0M1LKaL17NBOvkJKSEG.W"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = '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", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 252], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V3PSCqvqFXKZksuyB6pP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 252, "created_at" = '2013-07-17 13:16:55.192031', "updated_at" = '2013-07-17 13:16:55.192031', "authentication_token" = 'V3PSCqvqFXKZksuyB6pP' WHERE "public"."cadenero_accounts"."id" = 194  (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", 194], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["user_id", 252]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wVaRy22jW81Q7cz3mg86' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 194, "user_id" = 252, "created_at" = '2013-07-17 13:16:55.197549', "updated_at" = '2013-07-17 13:16:55.197549', "auth_token" = 'wVaRy22jW81Q7cz3mg86' WHERE "public"."cadenero_members"."id" = 255  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:16: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.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", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ltE58zprqerc4EyP1Pl9NehRVbzT2txZym2JITWGUOqf9GYBv.brW"], ["updated_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 194], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:55 UTC +00:00], ["user_id", 253]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2GPqnPrzxUvY4k1jHBP2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 194, "user_id" = 253, "created_at" = '2013-07-17 13:16:55.350949', "updated_at" = '2013-07-17 13:16:55.350949', "auth_token" = '2GPqnPrzxUvY4k1jHBP2' WHERE "public"."cadenero_members"."id" = 256  (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" = 253 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 253 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 253 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 253 Completed 201 Created in 116ms (Views: 6.0ms | 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/253" for 127.0.0.1 at 2013-07-17 08:16:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"253"} Cadenero::V1::Account Load (0.5ms) 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" = 194 AND "public"."cadenero_users"."id" = 253 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 253 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 253 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 253 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 253 Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.2ms)  (5.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (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 39ms (Views: 37.8ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$4BkEQ0ohj9QComXVZMSDG.gn0VTn7x0X6Z2QaNOZBK8mi.WxthwVe"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = '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", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 254], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZXwFEZQBuL5fcKxXZHk3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 254, "created_at" = '2013-07-17 13:16:56.018794', "updated_at" = '2013-07-17 13:16:56.018794', "authentication_token" = 'ZXwFEZQBuL5fcKxXZHk3' WHERE "public"."cadenero_accounts"."id" = 195  (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", 195], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["user_id", 254]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gQEkhiVgPDMtkzjHpuT6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 195, "user_id" = 254, "created_at" = '2013-07-17 13:16:56.025626', "updated_at" = '2013-07-17 13:16:56.025626', "auth_token" = 'gQEkhiVgPDMtkzjHpuT6' WHERE "public"."cadenero_members"."id" = 257  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16: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 ('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" = 195 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" = 254 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 254 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 254 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 254 Completed 201 Created in 106ms (Views: 5.1ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 195 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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" = 254 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$jviTHeMZ72IjSyJZzNkPHuxeMvfK1WZO81/jGicY9kyStimBUwWVm"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = '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", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 255], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rGPLN8ehbRsj5JJLfqxv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 255, "created_at" = '2013-07-17 13:16:56.328036', "updated_at" = '2013-07-17 13:16:56.328036', "authentication_token" = 'rGPLN8ehbRsj5JJLfqxv' WHERE "public"."cadenero_accounts"."id" = 196  (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", 196], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["user_id", 255]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hTYgciBHRsNT9ZHFUkiC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 196, "user_id" = 255, "created_at" = '2013-07-17 13:16:56.333434', "updated_at" = '2013-07-17 13:16:56.333434', "auth_token" = 'hTYgciBHRsNT9ZHFUkiC' WHERE "public"."cadenero_members"."id" = 258  (0.1ms) 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.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, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16: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.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" = 196 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" = 255 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 255 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 255 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 255 Completed 201 Created in 106ms (Views: 5.1ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 196 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"255", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 255 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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)  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$aSQOK/bLuRru7pMU7hvovew6DSXUINr6mQ7TiKM7HfUl8tXwM3mT6"], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 256], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2mXAuyLLBrDqTrnNJh2L' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 256, "created_at" = '2013-07-17 13:16:56.611937', "updated_at" = '2013-07-17 13:16:56.611937', "authentication_token" = '2mXAuyLLBrDqTrnNJh2L' WHERE "public"."cadenero_accounts"."id" = 197  (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", 197], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["user_id", 256]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sgptRxzpqjYLupN6n3fL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 197, "user_id" = 256, "created_at" = '2013-07-17 13:16:56.617370', "updated_at" = '2013-07-17 13:16:56.617370', "auth_token" = 'sgptRxzpqjYLupN6n3fL' WHERE "public"."cadenero_members"."id" = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.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))  (202.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:16:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 13:16:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$OKC2Gq/uSMA2uwvPrDACJOf/Jm/bj9WLq4Kuc8WQ6erpXRufVOibq"], ["updated_at", Wed, 17 Jul 2013 13:16:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 197], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["user_id", 257]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FnG3uyx6ozCBNRwqMEsE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 197, "user_id" = 257, "created_at" = '2013-07-17 13:16:57.002782', "updated_at" = '2013-07-17 13:16:57.002782', "auth_token" = 'FnG3uyx6ozCBNRwqMEsE' WHERE "public"."cadenero_members"."id" = 260  (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" = 257 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 257 Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/257" for 127.0.0.1 at 2013-07-17 08:16:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"257"} 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" = 197 AND "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 257 Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 257 Completed 201 Created in 7ms (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@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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" = 257 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$SCHQKaq3HZBMFJ8hH/ksregiPGqBpZqj2RG3jnifckRZmPOq91S5y"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = '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", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 258], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5Foqrp23zhXkpZdz9c3z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 258, "created_at" = '2013-07-17 13:16:57.160884', "updated_at" = '2013-07-17 13:16:57.160884', "authentication_token" = '5Foqrp23zhXkpZdz9c3z' WHERE "public"."cadenero_accounts"."id" = 198  (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", 198], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["user_id", 258]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q3BPcFXxyKcXCGfGGD5b' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 198, "user_id" = 258, "created_at" = '2013-07-17 13:16:57.166305', "updated_at" = '2013-07-17 13:16:57.166305', "auth_token" = 'q3BPcFXxyKcXCGfGGD5b' WHERE "public"."cadenero_members"."id" = 261  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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, "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")  (2.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 198 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 258 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 258 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 258 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 258 Completed 201 Created in 106ms (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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 198 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16:57 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"258", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 258 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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-17 08:16: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.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", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$nif6pPB7H2DTXoYR.M/fYe8YYz.WvS9T55a0ci0cq3JOL6mqCOGfS"], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 198], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["user_id", 259]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oohyfBmqEyh7Ep7Zqvz1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 198, "user_id" = 259, "created_at" = '2013-07-17 13:16:57.474671', "updated_at" = '2013-07-17 13:16:57.474671', "auth_token" = 'oohyfBmqEyh7Ep7Zqvz1' WHERE "public"."cadenero_members"."id" = 262  (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" = 259 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 259 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 259 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 259 Completed 201 Created in 114ms (Views: 6.6ms | 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/259" for 127.0.0.1 at 2013-07-17 08:16:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"259"} 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" = 198 AND "public"."cadenero_users"."id" = 259 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 259 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 259 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 259 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 259 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 259 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 259 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 259 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 259 Completed 201 Created in 8ms (Views: 5.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  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$m4jmeOH5SUOVB79L21urW.69at.vozORxJGrYU8rnHalSSnSEr.Em"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = '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", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 260], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dhtVC4xoqLAvEuGEMS2q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 260, "created_at" = '2013-07-17 13:16:57.629695', "updated_at" = '2013-07-17 13:16:57.629695', "authentication_token" = 'dhtVC4xoqLAvEuGEMS2q' WHERE "public"."cadenero_accounts"."id" = 199  (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", 199], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["user_id", 260]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6u1Pznqj7JTKHqaqSxAX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 199, "user_id" = 260, "created_at" = '2013-07-17 13:16:57.635286', "updated_at" = '2013-07-17 13:16:57.635286', "auth_token" = '6u1Pznqj7JTKHqaqSxAX' WHERE "public"."cadenero_members"."id" = 263  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))   (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.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)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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 53ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16: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 ('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" = 199 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Mnxm3CIprNxHZ4KdjmLZK.VYjW3ANiWGEu/cwTZUOhvFHqsW.iu62"], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 261], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tCXuT3TQkREQCFfk45L6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 261, "created_at" = '2013-07-17 13:16:57.864081', "updated_at" = '2013-07-17 13:16:57.864081', "authentication_token" = 'tCXuT3TQkREQCFfk45L6' WHERE "public"."cadenero_accounts"."id" = 200  (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", 200], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:57 UTC +00:00], ["user_id", 261]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cz7FLcUqnTzNismypGMg' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 200, "user_id" = 261, "created_at" = '2013-07-17 13:16:57.869665', "updated_at" = '2013-07-17 13:16:57.869665', "auth_token" = 'cz7FLcUqnTzNismypGMg' WHERE "public"."cadenero_members"."id" = 264  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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)   (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$K.S4peMVPxpLTOj7puLdsuet8J6ufj718I3dZCobzmaOJjpMFroWC"], ["updated_at", Wed, 17 Jul 2013 13:16: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", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 262], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'K3xgoUdpLkmPAnUzAwZ6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 262, "created_at" = '2013-07-17 13:16:58.017050', "updated_at" = '2013-07-17 13:16:58.017050', "authentication_token" = 'K3xgoUdpLkmPAnUzAwZ6' WHERE "public"."cadenero_accounts"."id" = 201  (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", 201], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["user_id", 262]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KVXUmXxVrVLUzqznEqbE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 201, "user_id" = 262, "created_at" = '2013-07-17 13:16:58.022465', "updated_at" = '2013-07-17 13:16:58.022465', "auth_token" = 'KVXUmXxVrVLUzqznEqbE' WHERE "public"."cadenero_members"."id" = 265  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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-17 08:16: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 ('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" = 200 AND "public"."cadenero_users"."email" = 'user9@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  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$ujpriU59CGe9o66Ld2j/I.KbttjSfh.6jyHHZO3u3vA.OPHLvpXQm"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 263], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4aoziEpQA7tyykxxDrfr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 263, "created_at" = '2013-07-17 13:16:58.152998', "updated_at" = '2013-07-17 13:16:58.152998', "authentication_token" = '4aoziEpQA7tyykxxDrfr' WHERE "public"."cadenero_accounts"."id" = 202  (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", 202], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["user_id", 263]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kdCFbTmKKushg3pVsfcR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 202, "user_id" = 263, "created_at" = '2013-07-17 13:16:58.158480', "updated_at" = '2013-07-17 13:16:58.158480', "auth_token" = 'kdCFbTmKKushg3pVsfcR' WHERE "public"."cadenero_members"."id" = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.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.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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:16: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-17 08:16: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 ('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" = 202 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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$qfASZOgQ89Qda2ojqw4KPOEEmEkqQqRPYn0jYRqJz.K8P2yN5Ysqe"], ["updated_at", Wed, 17 Jul 2013 13:16: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" = '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", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 264], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5JXoAdLSBkVGZ8ujZMs9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 264, "created_at" = '2013-07-17 13:16:58.328474', "updated_at" = '2013-07-17 13:16:58.328474', "authentication_token" = '5JXoAdLSBkVGZ8ujZMs9' WHERE "public"."cadenero_accounts"."id" = 203  (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", 203], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["user_id", 264]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1qqSoSnhop6K9NYz6ip4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 203, "user_id" = 264, "created_at" = '2013-07-17 13:16:58.333932', "updated_at" = '2013-07-17 13:16:58.333932', "auth_token" = '1qqSoSnhop6K9NYz6ip4' WHERE "public"."cadenero_members"."id" = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:16:58 -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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$GSjFccvC59bZpPnu/lCf6eXY5lRsqHX0xcZhXcjz3UWaet2jAC6Wu"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["name", "Testy"], ["owner_id", 265], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gpyHVbWBbuGxqDgfDUqp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 265, "created_at" = '2013-07-17 13:16:58.499026', "updated_at" = '2013-07-17 13:16:58.499026', "authentication_token" = 'gpyHVbWBbuGxqDgfDUqp' WHERE "public"."cadenero_accounts"."id" = 204  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 08:16: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.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 102ms (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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 08:16: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.n4EPyTOz7h20gy7YC0vWuZXrwcx3gBcBYb6j8OYAIt4CEUU9SCja"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["name", "Testy"], ["owner_id", 266], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FFpwB4QvMwkGsBEGzi39' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 266, "created_at" = '2013-07-17 13:16:58.715988', "updated_at" = '2013-07-17 13:16:58.715988', "authentication_token" = 'FFpwB4QvMwkGsBEGzi39' WHERE "public"."cadenero_accounts"."id" = 205  (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", 205], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:16:58 UTC +00:00], ["user_id", 266]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zQzT7Fgsc65tUqMqkD1H' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 205, "user_id" = 266, "created_at" = '2013-07-17 13:16:58.721335', "updated_at" = '2013-07-17 13:16:58.721335', "auth_token" = 'zQzT7Fgsc65tUqMqkD1H' WHERE "public"."cadenero_members"."id" = 268  (0.1ms) 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)  (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.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")  (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.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 205) LIMIT 1 Completed 201 Created in 160ms (Views: 1.7ms | ActiveRecord: 39.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:17:01 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$bvVpbHDAaGkjqz5GShbANOGlWZsBOT1WgUsX.d0sDSdEB8R4ICf5i"], ["updated_at", Wed, 17 Jul 2013 13:17:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Wed, 17 Jul 2013 13:17:01 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 267], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 13:17:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SJhrR5NHTpyiXQqzXRCA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 267, "created_at" = '2013-07-17 13:17:01.957208', "updated_at" = '2013-07-17 13:17:01.957208', "authentication_token" = 'SJhrR5NHTpyiXQqzXRCA' WHERE "public"."cadenero_accounts"."id" = 206  (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", 206], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:17:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:17:01 UTC +00:00], ["user_id", 267]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '81hJbNbyqv9fcs8yV7Xs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 206, "user_id" = 267, "created_at" = '2013-07-17 13:17:01.963412', "updated_at" = '2013-07-17 13:17:01.963412', "auth_token" = '81hJbNbyqv9fcs8yV7Xs' WHERE "public"."cadenero_members"."id" = 269  (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", Wed, 17 Jul 2013 13:17:02 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$yVueSvRqOStg6UQRC3lDneO0.aHSj.PErCIfJPkFu8xI6ei4ipzZK"], ["updated_at", Wed, 17 Jul 2013 13:17: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", Wed, 17 Jul 2013 13:17:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$0DJAVwr3jNjOPtXc/IVeseioIj90NrXWgtYgiP1tMV9.hyz/VHaCm"], ["updated_at", Wed, 17 Jul 2013 13:17:02 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:17:02 UTC +00:00], ["name", "Root"], ["owner_id", 269], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 13:17:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fLAXV3dmQynCeqst1pCK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 269, "created_at" = '2013-07-17 13:17:02.166644', "updated_at" = '2013-07-17 13:17:02.166644', "authentication_token" = 'fLAXV3dmQynCeqst1pCK' WHERE "public"."cadenero_accounts"."id" = 207  (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", 207], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:17:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:17:02 UTC +00:00], ["user_id", 269]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pvXPesi11xNsbNqAKLy6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 207, "user_id" = 269, "created_at" = '2013-07-17 13:17:02.171875', "updated_at" = '2013-07-17 13:17:02.171875', "auth_token" = 'pvXPesi11xNsbNqAKLy6' WHERE "public"."cadenero_members"."id" = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.8ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) COMMIT  (0.4ms) BEGIN  (0.7ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) COMMIT  (2.2ms) BEGIN Connecting to database specified by database.yml  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (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 (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$eQtFZ9uuwwShF3ibHLg9/On/jh3Q329s4m0YzPjTRV9ZvG0avnZGy"], ["updated_at", Wed, 17 Jul 2013 13:25:32 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 (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", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 270], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HQkBPwmZTww5yfWH7iTq' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 270, "created_at" = '2013-07-17 13:25:32.657875', "updated_at" = '2013-07-17 13:25:32.657875', "authentication_token" = 'HQkBPwmZTww5yfWH7iTq' WHERE "public"."cadenero_accounts"."id" = 208  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 208], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["user_id", 270]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iXq8s2Y8afhGBzZTYcbs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 208, "user_id" = 270, "created_at" = '2013-07-17 13:25:32.756565', "updated_at" = '2013-07-17 13:25:32.756565', "auth_token" = 'iXq8s2Y8afhGBzZTYcbs' WHERE "public"."cadenero_members"."id" = 271  (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", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$qktrAAYNTNVMbx28Hu3SLeoc56RE7eT2agpklPlks.h5kZG./g0Oy"], ["updated_at", Wed, 17 Jul 2013 13:25:32 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", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$WDsEJshr0yp46UYmL7hpnumnC3r23.xL5OUYAWdMQt.zk6GXfKh5G"], ["updated_at", Wed, 17 Jul 2013 13:25: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.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", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["name", "Root"], ["owner_id", 272], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pgQRZd1vxV6gZNw8wQz3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 272, "created_at" = '2013-07-17 13:25:32.959251', "updated_at" = '2013-07-17 13:25:32.959251', "authentication_token" = 'pgQRZd1vxV6gZNw8wQz3' WHERE "public"."cadenero_accounts"."id" = 209  (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", 209], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:32 UTC +00:00], ["user_id", 272]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Y7TZrwXUxv7b4FKVoFzp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 209, "user_id" = 272, "created_at" = '2013-07-17 13:25:32.965165', "updated_at" = '2013-07-17 13:25:32.965165', "auth_token" = 'Y7TZrwXUxv7b4FKVoFzp' WHERE "public"."cadenero_members"."id" = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)  (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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (5.0ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$OD8K4a2epVHezz72sxfocOySwO6uL1ImSIWCYP/rJSsWi/I3wcZ52"], ["updated_at", Wed, 17 Jul 2013 13:25:37 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:37 UTC +00:00], ["name", "Test Account"], ["owner_id", 273], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 13:25:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fykHriphWfSifxExbKsC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 273, "created_at" = '2013-07-17 13:25:37.427258', "updated_at" = '2013-07-17 13:25:37.427258', "authentication_token" = 'fykHriphWfSifxExbKsC' WHERE "public"."cadenero_accounts"."id" = 210  (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", 210], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:37 UTC +00:00], ["user_id", 273]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pU5iPs95jp8MoFAJNvFy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 210, "user_id" = 273, "created_at" = '2013-07-17 13:25:37.433176', "updated_at" = '2013-07-17 13:25:37.433176', "auth_token" = 'pU5iPs95jp8MoFAJNvFy' WHERE "public"."cadenero_members"."id" = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "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")  (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.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" = 210 LIMIT 1  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.6ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$30Bn.hF5HowPJYjRS2CR.OhbLTLgX/IGDOlPJ.bK2Vd68sjxLahQm"], ["updated_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 274], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UsKTDCQvMXum7AVcUsUw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 274, "created_at" = '2013-07-17 13:25:38.428811', "updated_at" = '2013-07-17 13:25:38.428811', "authentication_token" = 'UsKTDCQvMXum7AVcUsUw' WHERE "public"."cadenero_accounts"."id" = 211  (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", 211], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["user_id", 274]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1nGw4cZFXpihnqLZ9wBG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 211, "user_id" = 274, "created_at" = '2013-07-17 13:25:38.434776', "updated_at" = '2013-07-17 13:25:38.434776', "auth_token" = '1nGw4cZFXpihnqLZ9wBG' WHERE "public"."cadenero_members"."id" = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (15.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)  (7.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")  (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))   (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")  (0.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:25: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 (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (6.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", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$.fA/LVPpBxTgvvyJyLv/lOce/JbON1yk/hHBmH/Qihm9N5i1TsOp6"], ["updated_at", Wed, 17 Jul 2013 13:25:38 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", 211], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["user_id", 275]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SsgdnWzeyQssfJMoaqqJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 211, "user_id" = 275, "created_at" = '2013-07-17 13:25:38.724769', "updated_at" = '2013-07-17 13:25:38.724769', "auth_token" = 'SsgdnWzeyQssfJMoaqqJ' WHERE "public"."cadenero_members"."id" = 275  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (14.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 275 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 275 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 275 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 275 Completed 201 Created in 285ms (Views: 8.2ms | ActiveRecord: 33.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/275" for 127.0.0.1 at 2013-07-17 08:25:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"275"} 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" = 211 AND "public"."cadenero_users"."id" = 275 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 275 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 275 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 275 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 275 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.9ms) 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.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", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 275], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vWK8oqmNEEa9xfNoSWNJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 275, "created_at" = '2013-07-17 13:25:38.847684', "updated_at" = '2013-07-17 13:25:38.847684', "authentication_token" = 'vWK8oqmNEEa9xfNoSWNJ' WHERE "public"."cadenero_accounts"."id" = 212  (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", 212], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:38 UTC +00:00], ["user_id", 275]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uw1uJQp5XpvxmezWuntm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 212, "user_id" = 275, "created_at" = '2013-07-17 13:25:38.853961', "updated_at" = '2013-07-17 13:25:38.853961', "auth_token" = 'uw1uJQp5XpvxmezWuntm' WHERE "public"."cadenero_members"."id" = 276  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.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.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))   (4.2ms) 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.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (16.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.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (8.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (8.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:25: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 (25.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$uKZ4EnWTTltsMuJxvg/eAudsfHdGXzCUN83UOFTCfD.cR/33V4BiG"], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00]] SQL (51.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", 212], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["user_id", 276]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xUaKbvGkc1NYHke448hy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 212, "user_id" = 276, "created_at" = '2013-07-17 13:25:39.131947', "updated_at" = '2013-07-17 13:25:39.131947', "auth_token" = 'xUaKbvGkc1NYHke448hy' WHERE "public"."cadenero_members"."id" = 277  (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" = 276 LIMIT 1 Cadenero::Member Load (14.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 276 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 276 Cadenero::V1::Account Load (6.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" = 276 Completed 201 Created in 277ms (Views: 7.1ms | ActiveRecord: 109.9ms) Cadenero::V1::Account Load (15.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/276" for 127.0.0.1 at 2013-07-17 08:25:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"276"} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (8.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" = 212 AND "public"."cadenero_users"."id" = 276 LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 276 LIMIT 1 Cadenero::Member Load (2.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 276 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 276 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" = 276 Completed 200 OK in 29ms (Views: 7.4ms | ActiveRecord: 17.8ms) Started GET "/v1/users/275" for 127.0.0.1 at 2013-07-17 08:25:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"275"} 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" = 211 AND "public"."cadenero_users"."id" = 275 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 275 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 275 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 275 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 275 Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 08:25:39 -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.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" = 211 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 275 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 275 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 275 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" = 275 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 274 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 274 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 274 Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.5ms)  (12.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (20.4ms) SAVEPOINT active_record_1 SQL (15.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$rW2SFABAP/HoWWxvXHMtq.OXTi6PAp/cafdBTylhNMrbrzOdog9o6"], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 277], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6YrAe7zzm37tzptpcDTq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 277, "created_at" = '2013-07-17 13:25:39.561111', "updated_at" = '2013-07-17 13:25:39.561111', "authentication_token" = '6YrAe7zzm37tzptpcDTq' WHERE "public"."cadenero_accounts"."id" = 213  (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", 213], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["user_id", 277]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YNabQpKkNMA2ytyXyA8A' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 213, "user_id" = 277, "created_at" = '2013-07-17 13:25:39.566647', "updated_at" = '2013-07-17 13:25:39.566647', "auth_token" = 'YNabQpKkNMA2ytyXyA8A' WHERE "public"."cadenero_members"."id" = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)   (4.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")  (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, "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.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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:25: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (15.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NSidjdj.2f3kc0BvfUUIxOPOcwQBlLeJA0g9gXbFtUlvAIFxjrtmG"], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00]] SQL (9.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", 213], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:39 UTC +00:00], ["user_id", 278]] Cadenero::Member Load (9.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AGzVyKj6fbbmpzJGDw5m' LIMIT 1  (10.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 213, "user_id" = 278, "created_at" = '2013-07-17 13:25:39.846373', "updated_at" = '2013-07-17 13:25:39.846373', "auth_token" = 'AGzVyKj6fbbmpzJGDw5m' WHERE "public"."cadenero_members"."id" = 279  (3.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 278 LIMIT 1 Cadenero::Member Load (9.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 278 Cadenero::V1::Account Load (9.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 278 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 278 Completed 201 Created in 249ms (Views: 6.5ms | ActiveRecord: 71.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/278" for 127.0.0.1 at 2013-07-17 08:25:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"278"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.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" = 213 AND "public"."cadenero_users"."id" = 278 LIMIT 1 Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 278 LIMIT 1 Cadenero::Member Load (7.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 278 Cadenero::V1::Account Load (10.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 278 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" = 278 Completed 200 OK in 33ms (Views: 6.3ms | ActiveRecord: 23.6ms)  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.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 SQL (29.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$WvL2PYv7F5kHiHky0gL5A..LrLzmJZ/Tc.C7mO/TxJsXX1rQ20Ra."], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00]] SQL (10.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", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["name", "Testy"], ["owner_id", 279], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9qZ4dBHdzShHhe6zvzCe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 279, "created_at" = '2013-07-17 13:25:40.183456', "updated_at" = '2013-07-17 13:25:40.183456', "authentication_token" = '9qZ4dBHdzShHhe6zvzCe' WHERE "public"."cadenero_accounts"."id" = 214  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 08:25: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}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 102ms (Views: 0.4ms | 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 08:25: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}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tft1G8L5gbk0kE3y7EkaauUkJG5KBmER53Br5Q2RZ9Jy5ZBBV7KJ2"], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00]] SQL (0.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", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["name", "Testy"], ["owner_id", 280], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xjpSdXsC6A5Gjub8KAJv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 280, "created_at" = '2013-07-17 13:25:40.425577', "updated_at" = '2013-07-17 13:25:40.425577', "authentication_token" = 'xjpSdXsC6A5Gjub8KAJv' WHERE "public"."cadenero_accounts"."id" = 215  (0.2ms) 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", 215], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["user_id", 280]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yN2vsaPxYoxAq3ozW6RW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 215, "user_id" = 280, "created_at" = '2013-07-17 13:25:40.430939', "updated_at" = '2013-07-17 13:25:40.430939', "auth_token" = 'yN2vsaPxYoxAq3ozW6RW' WHERE "public"."cadenero_members"."id" = 280  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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.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.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.2ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) 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') 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" != 215) LIMIT 1 Completed 201 Created in 169ms (Views: 1.7ms | ActiveRecord: 37.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3pmUKoGyQxGdCtqGMSWj' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 13:25:40.608342', "updated_at" = '2013-07-17 13:25:40.608342', "auth_token" = '3pmUKoGyQxGdCtqGMSWj' WHERE "public"."cadenero_members"."id" = 281  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$cv5ABDt7zKpVor1.6K0Oj.lt6PbKtU38CvBOFE4z4aniBXedv6UVy"], ["updated_at", Wed, 17 Jul 2013 13:25: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" = '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", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 281], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hT8DSbXGp6s6SUUFxvYW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 281, "created_at" = '2013-07-17 13:25:40.773937', "updated_at" = '2013-07-17 13:25:40.773937', "authentication_token" = 'hT8DSbXGp6s6SUUFxvYW' WHERE "public"."cadenero_accounts"."id" = 216  (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", 216], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:40 UTC +00:00], ["user_id", 281]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nzStxq2BiHYypGFdhZ7D' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 216, "user_id" = 281, "created_at" = '2013-07-17 13:25:40.779767', "updated_at" = '2013-07-17 13:25:40.779767', "auth_token" = 'nzStxq2BiHYypGFdhZ7D' WHERE "public"."cadenero_members"."id" = 282  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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.7ms) 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.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)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:25:40 -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.7ms) 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" = 216 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 281 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 281 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 281 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" = 281 Completed 201 Created in 116ms (Views: 6.2ms | 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 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 216 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:25:40 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"281", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 281 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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 60ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$htOrNK2L.BINHC6rNGjxpezD7ANTAuqB5TMMrrhMPDc1zcM0eRkMC"], ["updated_at", Wed, 17 Jul 2013 13:25:41 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", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 282], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qP1831zrqLwiVensxo9M' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 282, "created_at" = '2013-07-17 13:25:41.178760', "updated_at" = '2013-07-17 13:25:41.178760', "authentication_token" = 'qP1831zrqLwiVensxo9M' WHERE "public"."cadenero_accounts"."id" = 217  (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", 217], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["user_id", 282]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TG6xaBzWCEu1TZhsp3nn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 217, "user_id" = 282, "created_at" = '2013-07-17 13:25:41.184330', "updated_at" = '2013-07-17 13:25:41.184330', "auth_token" = 'TG6xaBzWCEu1TZhsp3nn' WHERE "public"."cadenero_members"."id" = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Ox5difGyLntd1tyJpL0B7.j8KM86Vv2OjnkbN3lrPQkNOti/74URS"], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 283], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pp9rU4ApAzMo8YCKFySU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 283, "created_at" = '2013-07-17 13:25:41.371266', "updated_at" = '2013-07-17 13:25:41.371266', "authentication_token" = 'pp9rU4ApAzMo8YCKFySU' WHERE "public"."cadenero_accounts"."id" = 218  (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", 218], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["user_id", 283]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R5ZMChyAoouHLho2vAiy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 218, "user_id" = 283, "created_at" = '2013-07-17 13:25:41.376820', "updated_at" = '2013-07-17 13:25:41.376820', "auth_token" = 'R5ZMChyAoouHLho2vAiy' WHERE "public"."cadenero_members"."id" = 284  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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.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")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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)  (4.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$ZvxwCQzIFaQ6zDBOKz.eBuh.SDv4JCeki0eoWPW5CdPF2SWReldZO"], ["updated_at", Wed, 17 Jul 2013 13:25: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" = '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", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 284], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tZWFNqzg2FsGcC1rTqs9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 284, "created_at" = '2013-07-17 13:25:41.545393', "updated_at" = '2013-07-17 13:25:41.545393', "authentication_token" = 'tZWFNqzg2FsGcC1rTqs9' WHERE "public"."cadenero_accounts"."id" = 219  (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", 219], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["user_id", 284]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f8XZn8TMb131gEpB6bsK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 219, "user_id" = 284, "created_at" = '2013-07-17 13:25:41.550951', "updated_at" = '2013-07-17 13:25:41.550951', "auth_token" = 'f8XZn8TMb131gEpB6bsK' WHERE "public"."cadenero_members"."id" = 285  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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-17 08:25:41 -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" = 219 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" = 284 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 284 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 284 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" = 284 Completed 201 Created in 109ms (Views: 7.0ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 219 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:25:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"284", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 284 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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)  (10.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$DGq8Q44sI5mDDuwle/JAmuc5YY6/6GkZSnqIIcDRb0pSEni2406HK"], ["updated_at", Wed, 17 Jul 2013 13:25:41 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", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 285], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sxnZLt2eppf43jUaZev7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 285, "created_at" = '2013-07-17 13:25:41.856764', "updated_at" = '2013-07-17 13:25:41.856764', "authentication_token" = 'sxnZLt2eppf43jUaZev7' WHERE "public"."cadenero_accounts"."id" = 220  (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", 220], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:41 UTC +00:00], ["user_id", 285]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rC6AzmoJULdytncxXhq3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 220, "user_id" = 285, "created_at" = '2013-07-17 13:25:41.862783', "updated_at" = '2013-07-17 13:25:41.862783', "auth_token" = 'rC6AzmoJULdytncxXhq3' WHERE "public"."cadenero_members"."id" = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$DAXtTVp.DXkTG1xCLUdbNOvxHF2FBbgycKTm3JudzJwJYzSe54XCi"], ["updated_at", Wed, 17 Jul 2013 13:25: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 286], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ayTkrSbEkpsXhUDpUzZH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 286, "created_at" = '2013-07-17 13:25:42.013984', "updated_at" = '2013-07-17 13:25:42.013984', "authentication_token" = 'ayTkrSbEkpsXhUDpUzZH' WHERE "public"."cadenero_accounts"."id" = 221  (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", 221], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["user_id", 286]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W88Gezn3k6LpCxK3Nxbf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 221, "user_id" = 286, "created_at" = '2013-07-17 13:25:42.019290', "updated_at" = '2013-07-17 13:25:42.019290', "auth_token" = 'W88Gezn3k6LpCxK3Nxbf' WHERE "public"."cadenero_members"."id" = 287  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$KdE.QxACxsnbwtIFomY2AevSnadwdSDBIjKU9gW/CGqtA8x5PkIdW"], ["updated_at", Wed, 17 Jul 2013 13:25: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 287], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YjwP8ry9vuA3KnHHontZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 287, "created_at" = '2013-07-17 13:25:42.143168', "updated_at" = '2013-07-17 13:25:42.143168', "authentication_token" = 'YjwP8ry9vuA3KnHHontZ' WHERE "public"."cadenero_accounts"."id" = 222  (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", 222], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["user_id", 287]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VDQidkjiEHnbgYybfinz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 222, "user_id" = 287, "created_at" = '2013-07-17 13:25:42.148576', "updated_at" = '2013-07-17 13:25:42.148576', "auth_token" = 'VDQidkjiEHnbgYybfinz' WHERE "public"."cadenero_members"."id" = 288  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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")  (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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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)  (2.8ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$xs.4JAG2dce44ZYMPwogMOSwKNsJimHt4ic3ulo/KPWHbNSqAcHUe"], ["updated_at", Wed, 17 Jul 2013 13:25: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" = '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", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 288], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 're8dv2Grvbs72QsVv1qW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 288, "created_at" = '2013-07-17 13:25:42.311151', "updated_at" = '2013-07-17 13:25:42.311151', "authentication_token" = 're8dv2Grvbs72QsVv1qW' WHERE "public"."cadenero_accounts"."id" = 223  (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", 223], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["user_id", 288]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6fsXDcEudwNny5mCZGNu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 223, "user_id" = 288, "created_at" = '2013-07-17 13:25:42.316586', "updated_at" = '2013-07-17 13:25:42.316586', "auth_token" = '6fsXDcEudwNny5mCZGNu' WHERE "public"."cadenero_members"."id" = 289  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (17.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:25: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)  (4.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$VOyRd2aH1fa1I7EdRC33qOsaTL9NpXihPOhLUNmu3BBH5YOucIWJi"], ["updated_at", Wed, 17 Jul 2013 13:25: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" = 'test13' 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", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 289], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '43CraXVi28no9cBwfLGs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 289, "created_at" = '2013-07-17 13:25:42.491302', "updated_at" = '2013-07-17 13:25:42.491302', "authentication_token" = '43CraXVi28no9cBwfLGs' WHERE "public"."cadenero_accounts"."id" = 224  (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", 224], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:25:42 UTC +00:00], ["user_id", 289]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u7G2kGUChobKwHNbqyzf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 224, "user_id" = 289, "created_at" = '2013-07-17 13:25:42.496710', "updated_at" = '2013-07-17 13:25:42.496710', "auth_token" = 'u7G2kGUChobKwHNbqyzf' WHERE "public"."cadenero_members"."id" = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:25:42 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.1ms) ROLLBACK Connecting to database specified by database.yml  (2.2ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (38.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:26:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$e83eMShu9UBH4zWxX7huFeyhbA2npXIc0Qpfp.fBKdULFyr3od6dW"], ["updated_at", Wed, 17 Jul 2013 13:26:47 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 290], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 13:26:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kvrCzzqFBxg74weBxsab' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 290, "created_at" = '2013-07-17 13:26:47.493984', "updated_at" = '2013-07-17 13:26:47.493984', "authentication_token" = 'kvrCzzqFBxg74weBxsab' WHERE "public"."cadenero_accounts"."id" = 225  (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", 225], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:47 UTC +00:00], ["user_id", 290]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'En9BsRev8jxFmkDWJVHt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 225, "user_id" = 290, "created_at" = '2013-07-17 13:26:47.595113', "updated_at" = '2013-07-17 13:26:47.595113', "auth_token" = 'En9BsRev8jxFmkDWJVHt' WHERE "public"."cadenero_members"."id" = 291  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26: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 (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" = 225 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" = 290 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 290 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 290 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" = 290 Completed 201 Created in 143ms (Views: 29.5ms | 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::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 225 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 290 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) COMMIT  (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", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$HBS7.So0Zv9gK8dHLBLOV.u8p2DxQ9cx1baYiyEz1UWLPGHDn89Ja"], ["updated_at", Wed, 17 Jul 2013 13:26: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 291], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1JYpqiwxxAU6xGVo3hxH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 291, "created_at" = '2013-07-17 13:26:48.050674', "updated_at" = '2013-07-17 13:26:48.050674', "authentication_token" = '1JYpqiwxxAU6xGVo3hxH' WHERE "public"."cadenero_accounts"."id" = 226  (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", 226], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["user_id", 291]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2Rs4c96HKjpfgB5CS6o1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 226, "user_id" = 291, "created_at" = '2013-07-17 13:26:48.057229', "updated_at" = '2013-07-17 13:26:48.057229', "auth_token" = '2Rs4c96HKjpfgB5CS6o1' WHERE "public"."cadenero_members"."id" = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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")  (0.7ms) 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, "auth_token" character varying(255))   (1.7ms) 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")  (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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:48 -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 ('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" = 226 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 291 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 291 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 291 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 291 Completed 201 Created in 111ms (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" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 226 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:48 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"291", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 291 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 08:26:48 -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", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$VEWZMR4BxFE/U09xv4HtlurkF/39xTdioN5VPTb.bWzmghLyGO75y"], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 226], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["user_id", 292]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ievXZr5aaCijpMQzTosy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 226, "user_id" = 292, "created_at" = '2013-07-17 13:26:48.356081', "updated_at" = '2013-07-17 13:26:48.356081', "auth_token" = 'ievXZr5aaCijpMQzTosy' WHERE "public"."cadenero_members"."id" = 293  (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" = 292 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 292 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 292 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 292 Completed 201 Created in 114ms (Views: 5.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 Started GET "/v1/users/292" for 127.0.0.1 at 2013-07-17 08:26:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"292"} 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" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 226 AND "public"."cadenero_users"."id" = 292 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 292 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 292 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 292 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 292 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 292 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 292 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 292 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" = 292 Completed 201 Created in 7ms (Views: 4.8ms | 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.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$13jSVod6PKuZioLPRwHR4.iwlU.eYrIcZwMul8W5/IRHyDx.LHaYW"], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 293], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'k87EzZ3kiVzn2VEqQwyE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 293, "created_at" = '2013-07-17 13:26:48.530814', "updated_at" = '2013-07-17 13:26:48.530814', "authentication_token" = 'k87EzZ3kiVzn2VEqQwyE' WHERE "public"."cadenero_accounts"."id" = 227  (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", 227], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["user_id", 293]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'T4MHRdXb8nugQAp8zzVk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 227, "user_id" = 293, "created_at" = '2013-07-17 13:26:48.536231', "updated_at" = '2013-07-17 13:26:48.536231', "auth_token" = 'T4MHRdXb8nugQAp8zzVk' WHERE "public"."cadenero_members"."id" = 294  (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.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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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)   (0.7ms) 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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26: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/users" for 127.0.0.1 at 2013-07-17 08:26:48 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (1.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", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$P2LBD.1Y.SQxgh6jbfStu.Gauo8QMFXwsTh82vEMgYEmKelFzDfIG"], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 227], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["user_id", 294]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JgcxW1UyDKKpE4PGcsbL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 227, "user_id" = 294, "created_at" = '2013-07-17 13:26:48.701338', "updated_at" = '2013-07-17 13:26:48.701338', "auth_token" = 'JgcxW1UyDKKpE4PGcsbL' WHERE "public"."cadenero_members"."id" = 295  (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" = 294 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 294 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 294 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 294 Completed 201 Created in 119ms (Views: 6.8ms | ActiveRecord: 6.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/294" for 127.0.0.1 at 2013-07-17 08:26:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"294"} 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" = 227 AND "public"."cadenero_users"."id" = 294 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 294 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 294 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 294 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" = 294 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 294 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 294 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 294 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 294 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26:48 -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" = 294 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (3.8ms) ROLLBACK  (7.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$aLvP42Hf7GR0yTpGa.Wdn.XWr.d6nh8eZi1S9ZzSeBayoOITxuc3C"], ["updated_at", Wed, 17 Jul 2013 13:26: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" = '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", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 295], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tzGqcQkUj7f5WUPChedb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 295, "created_at" = '2013-07-17 13:26:48.871981', "updated_at" = '2013-07-17 13:26:48.871981', "authentication_token" = 'tzGqcQkUj7f5WUPChedb' WHERE "public"."cadenero_accounts"."id" = 228  (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", 228], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:48 UTC +00:00], ["user_id", 295]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yqkAWBWrVrNkqUfqBxv2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 228, "user_id" = 295, "created_at" = '2013-07-17 13:26:48.877518', "updated_at" = '2013-07-17 13:26:48.877518', "auth_token" = 'yqkAWBWrVrNkqUfqBxv2' WHERE "public"."cadenero_members"."id" = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))  (1.8ms) 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.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26: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.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" = 228 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" = 295 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 295 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 295 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 295 Completed 201 Created in 108ms (Views: 6.0ms | 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" = 228 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"295", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 295 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26: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)  (26.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$zraO18SkdThvBnQaDlowjOxpL0Ja4g6kT.jCciakW5owJS16nRsJS"], ["updated_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 296], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 13: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" = 'ywPFPicne5ZKjKS99J7R' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 296, "created_at" = '2013-07-17 13:26:49.209577', "updated_at" = '2013-07-17 13:26:49.209577', "authentication_token" = 'ywPFPicne5ZKjKS99J7R' WHERE "public"."cadenero_accounts"."id" = 229  (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", 229], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["user_id", 296]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3i1Tw2sFUhbbunqqUzau' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 229, "user_id" = 296, "created_at" = '2013-07-17 13:26:49.215406', "updated_at" = '2013-07-17 13:26:49.215406', "auth_token" = '3i1Tw2sFUhbbunqqUzau' WHERE "public"."cadenero_members"."id" = 297  (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.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.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")  (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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 229 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$k9K/MqdAxZxcWiUsQQh1Q.vJFUUViLkCKOHyDA1uTfnomnoCifNke"], ["updated_at", Wed, 17 Jul 2013 13:26: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" = '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", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 297], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 13: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" = '1fkZoEpAgBx9B9kwqYGx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 297, "created_at" = '2013-07-17 13:26:49.443056', "updated_at" = '2013-07-17 13:26:49.443056', "authentication_token" = '1fkZoEpAgBx9B9kwqYGx' WHERE "public"."cadenero_accounts"."id" = 230  (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", 230], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["user_id", 297]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jxbyDU4SnupRox6bKK1Q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 230, "user_id" = 297, "created_at" = '2013-07-17 13:26:49.448652', "updated_at" = '2013-07-17 13:26:49.448652', "auth_token" = 'jxbyDU4SnupRox6bKK1Q' WHERE "public"."cadenero_members"."id" = 298  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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")  (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))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26:49 -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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$D0k/vN4LXRO22Orl04EwWOmicOPzwG2FDdLHUvUuRDt6z7ewXQeYm"], ["updated_at", Wed, 17 Jul 2013 13:26: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" = '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", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 298], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 13: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" = 'w1N7EDTtqZBEZDmkwier' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 298, "created_at" = '2013-07-17 13:26:49.616742', "updated_at" = '2013-07-17 13:26:49.616742', "authentication_token" = 'w1N7EDTtqZBEZDmkwier' WHERE "public"."cadenero_accounts"."id" = 231  (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", 231], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["user_id", 298]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sz3FsVwq8Uo3PzvqDE2b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 231, "user_id" = 298, "created_at" = '2013-07-17 13:26:49.622244', "updated_at" = '2013-07-17 13:26:49.622244', "auth_token" = 'sz3FsVwq8Uo3PzvqDE2b' WHERE "public"."cadenero_members"."id" = 299  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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")  (2.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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (2.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 08:26: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.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" = 231 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.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$qGBDP5pFpKI9MlfsF1NyXuk.ebq0qHV0Btcpg8o7ThHVpwMSE8y7K"], ["updated_at", Wed, 17 Jul 2013 13:26: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" = '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", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 299], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 13: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" = 'pzqfDCr1ra943eRezADW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 299, "created_at" = '2013-07-17 13:26:49.795920', "updated_at" = '2013-07-17 13:26:49.795920', "authentication_token" = 'pzqfDCr1ra943eRezADW' WHERE "public"."cadenero_accounts"."id" = 232  (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", 232], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["user_id", 299]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zDedaEF5gPThSyUG6WVs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 232, "user_id" = 299, "created_at" = '2013-07-17 13:26:49.801318', "updated_at" = '2013-07-17 13:26:49.801318', "auth_token" = 'zDedaEF5gPThSyUG6WVs' WHERE "public"."cadenero_members"."id" = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.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", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$7q.IR.2Okw.kTZ0NPTa4LeC6MRGooBrB8IqJIEPAd/RWpiK/FthLu"], ["updated_at", Wed, 17 Jul 2013 13:26: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.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", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 300], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 13: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" = 'XM72MJrhxM3hhp65QY1e' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 300, "created_at" = '2013-07-17 13:26:49.951604', "updated_at" = '2013-07-17 13:26:49.951604', "authentication_token" = 'XM72MJrhxM3hhp65QY1e' WHERE "public"."cadenero_accounts"."id" = 233  (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", 233], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 13:26:49 UTC +00:00], ["user_id", 300]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EhVSSzJMhTaeWctqMns6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 233, "user_id" = 300, "created_at" = '2013-07-17 13:26:49.956782', "updated_at" = '2013-07-17 13:26:49.956782', "auth_token" = 'EhVSSzJMhTaeWctqMns6' WHERE "public"."cadenero_members"."id" = 301  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 08:26: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-17 08:26:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 232 AND "public"."cadenero_users"."email" = 'user9@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  (6.4ms) ROLLBACK Connecting to database specified by database.yml  (1.4ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.3ms) 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", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$H7A.fmG6.yCwqrlVbVsCyeHVz3bNFBil9BSTnstuDvQ0lg.uxHQMG"], ["updated_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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.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", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 301], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iBUimWt6qJ63zwKKs6ey' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 301, "created_at" = '2013-07-17 14:16:27.543707', "updated_at" = '2013-07-17 14:16:27.543707', "authentication_token" = 'iBUimWt6qJ63zwKKs6ey' WHERE "public"."cadenero_accounts"."id" = 234  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.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", 234], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["user_id", 301]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EJN7erydxBuVq97YYZkv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 234, "user_id" = 301, "created_at" = '2013-07-17 14:16:27.668286', "updated_at" = '2013-07-17 14:16:27.668286', "auth_token" = 'EJN7erydxBuVq97YYZkv' WHERE "public"."cadenero_members"."id" = 302  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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)   (2.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")  (10.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.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) 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 ('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/users" for 127.0.0.1 at 2013-07-17 09:16: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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$JMxJsQKjOazzfusbadGOPuZdHv.FaTiPMB9HDOpd/Wsb.Jhk1CR/6"], ["updated_at", Wed, 17 Jul 2013 14:16:27 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", 234], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:27 UTC +00:00], ["user_id", 302]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pmvjczkTL3axhy7Xq7k2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 234, "user_id" = 302, "created_at" = '2013-07-17 14:16:27.951688', "updated_at" = '2013-07-17 14:16:27.951688', "auth_token" = 'pmvjczkTL3axhy7Xq7k2' WHERE "public"."cadenero_members"."id" = 303  (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" = 302 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 302 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 302 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" = 302 Completed 201 Created in 202ms (Views: 79.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/302" for 127.0.0.1 at 2013-07-17 09:16:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"302"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 234 AND "public"."cadenero_users"."id" = 302 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 302 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 302 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 302 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" = 302 Completed 200 OK in 14ms (Views: 6.0ms | ActiveRecord: 2.2ms)  (12.5ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$HK49gcKfgnfaAAtrDVJjq.HjLsMb7.8W0A4LEaqvpu14zy63HNWG6"], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 303], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S4Roae2dAxh31CnQXA67' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 303, "created_at" = '2013-07-17 14:16:28.200217', "updated_at" = '2013-07-17 14:16:28.200217', "authentication_token" = 'S4Roae2dAxh31CnQXA67' WHERE "public"."cadenero_accounts"."id" = 235  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 235], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["user_id", 303]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1KVpsuAquhAPcCeoPiFE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 235, "user_id" = 303, "created_at" = '2013-07-17 14:16:28.208428', "updated_at" = '2013-07-17 14:16:28.208428', "auth_token" = '1KVpsuAquhAPcCeoPiFE' WHERE "public"."cadenero_members"."id" = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (8.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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) 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")  (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:16: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$r8er2VToo5gCTKw09Q4fbe8dAh3rj/u3.VVXuuG6IFPM3hlsneyhO"], ["updated_at", Wed, 17 Jul 2013 14:16:28 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", 235], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["user_id", 304]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DBFz98QRkxTcbHuzuqUQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 235, "user_id" = 304, "created_at" = '2013-07-17 14:16:28.400088', "updated_at" = '2013-07-17 14:16:28.400088', "auth_token" = 'DBFz98QRkxTcbHuzuqUQ' WHERE "public"."cadenero_members"."id" = 305  (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" = 304 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 304 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 304 Completed 201 Created in 118ms (Views: 5.8ms | 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 Started GET "/v1/users/304" for 127.0.0.1 at 2013-07-17 09:16:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"304"} 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" = 235 AND "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 304 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" = 304 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.7ms) 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" = '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", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 304], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xsPaNnnVQgA2QdNUaS72' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 304, "created_at" = '2013-07-17 14:16:28.434121', "updated_at" = '2013-07-17 14:16:28.434121', "authentication_token" = 'xsPaNnnVQgA2QdNUaS72' WHERE "public"."cadenero_accounts"."id" = 236  (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", 236], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["user_id", 304]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'enQcvh8R9ab1xeCfxKZg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 236, "user_id" = 304, "created_at" = '2013-07-17 14:16:28.440693', "updated_at" = '2013-07-17 14:16:28.440693', "auth_token" = 'enQcvh8R9ab1xeCfxKZg' WHERE "public"."cadenero_members"."id" = 306  (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)   (1.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")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:16: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 (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", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$w1Cc.5HEkOp1gu0.IaOCO.fGEvhMvvVc8J5KwaHPsktv1iZdOCCe."], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00]] 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", 236], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["user_id", 305]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6yk3bryaAbwutVpR5jUi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 236, "user_id" = 305, "created_at" = '2013-07-17 14:16:28.628473', "updated_at" = '2013-07-17 14:16:28.628473', "auth_token" = '6yk3bryaAbwutVpR5jUi' WHERE "public"."cadenero_members"."id" = 307  (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" = 305 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 305 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 305 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 305 Completed 201 Created in 132ms (Views: 9.6ms | ActiveRecord: 4.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/305" for 127.0.0.1 at 2013-07-17 09:16:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"305"} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 236 AND "public"."cadenero_users"."id" = 305 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 305 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 305 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 305 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 305 Completed 200 OK in 15ms (Views: 7.3ms | ActiveRecord: 4.2ms) Started GET "/v1/users/304" for 127.0.0.1 at 2013-07-17 09:16:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"304"} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 235 AND "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 304 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" = 304 Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 2.2ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 09:16:28 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.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" = 235 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 304 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 303 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 303 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 303 Completed 200 OK in 19ms (Views: 13.7ms | ActiveRecord: 3.2ms)  (22.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:28 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4BQkJ8CLFW1PhSBh8pN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 14:16:28.917707', "updated_at" = '2013-07-17 14:16:28.917707', "auth_token" = 'q4BQkJ8CLFW1PhSBh8pN' WHERE "public"."cadenero_members"."id" = 308  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$0gHc2eLM2SmbvXowo/2F6edo0eQbJg7EbG07NCSmcpL.uuRtGseoq"], ["updated_at", Wed, 17 Jul 2013 14:16:29 UTC +00:00]] 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", Wed, 17 Jul 2013 14:16:29 UTC +00:00], ["name", "Test Account"], ["owner_id", 306], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:16:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'brXAxwsPLqj2pEQoLS4r' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 306, "created_at" = '2013-07-17 14:16:29.027938', "updated_at" = '2013-07-17 14:16:29.027938', "authentication_token" = 'brXAxwsPLqj2pEQoLS4r' WHERE "public"."cadenero_accounts"."id" = 237  (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", 237], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:29 UTC +00:00], ["user_id", 306]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'krZqv15v8CtsJVrAoqXM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 237, "user_id" = 306, "created_at" = '2013-07-17 14:16:29.033737', "updated_at" = '2013-07-17 14:16:29.033737', "auth_token" = 'krZqv15v8CtsJVrAoqXM' WHERE "public"."cadenero_members"."id" = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (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")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.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" = 237 LIMIT 1  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:16: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.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$g4ahOHsTyWIbWF.DK.77iekljEucUhRQ5lhjH7ruee3nvM6E9IUW."], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["name", "Testy"], ["owner_id", 307], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ENLTdQSnQaoVMkuJQk5a' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 307, "created_at" = '2013-07-17 14:16:30.081099', "updated_at" = '2013-07-17 14:16:30.081099', "authentication_token" = 'ENLTdQSnQaoVMkuJQk5a' WHERE "public"."cadenero_accounts"."id" = 238  (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", 238], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["user_id", 307]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1TMauBrzjtzGXsbrxAtv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 238, "user_id" = 307, "created_at" = '2013-07-17 14:16:30.087323', "updated_at" = '2013-07-17 14:16:30.087323', "auth_token" = '1TMauBrzjtzGXsbrxAtv' WHERE "public"."cadenero_members"."id" = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 238) LIMIT 1 Completed 201 Created in 162ms (Views: 1.7ms | ActiveRecord: 36.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Pr08daOkLd1Ktx8yO1iTQOfEPy29oY7CAiafzfI7fdIQu77R3nIu2"], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["name", "Testy"], ["owner_id", 308], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ybxpvvkswvqzCgGsENim' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 308, "created_at" = '2013-07-17 14:16:30.255528', "updated_at" = '2013-07-17 14:16:30.255528', "authentication_token" = 'ybxpvvkswvqzCgGsENim' WHERE "public"."cadenero_accounts"."id" = 239  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:16: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.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 104ms (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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$w.P3Jt7GQAxiIhuRrLX5Ku3VzBh5KpTGTQ5ER1HTEJPv7c61xM4py"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = '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", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 309], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dzT8MpgEdGHtaUwZopEC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 309, "created_at" = '2013-07-17 14:16:30.481517', "updated_at" = '2013-07-17 14:16:30.481517', "authentication_token" = 'dzT8MpgEdGHtaUwZopEC' WHERE "public"."cadenero_accounts"."id" = 240  (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", 240], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["user_id", 309]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XUYw2Zctsvac1assjpqs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 240, "user_id" = 309, "created_at" = '2013-07-17 14:16:30.486978', "updated_at" = '2013-07-17 14:16:30.486978', "auth_token" = 'XUYw2Zctsvac1assjpqs' WHERE "public"."cadenero_members"."id" = 311  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.1ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16:30 -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.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" = 240 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" = 309 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 309 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 309 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 309 Completed 201 Created in 108ms (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.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 240 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-17 09:16:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"309", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 309 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16: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/users" for 127.0.0.1 at 2013-07-17 09:16: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.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", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ZQrzX7Qs04e4WMU4ry6UR.7QOGMJsdstTkQWmOV8C7DH3LBeT48Ma"], ["updated_at", Wed, 17 Jul 2013 14:16:30 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", 240], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["user_id", 310]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Dovq8Z44UqU7pJfXVdxz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 240, "user_id" = 310, "created_at" = '2013-07-17 14:16:30.777640', "updated_at" = '2013-07-17 14:16:30.777640', "auth_token" = 'Dovq8Z44UqU7pJfXVdxz' WHERE "public"."cadenero_members"."id" = 312  (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" = 310 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 310 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 310 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" = 310 Completed 201 Created in 115ms (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/310" for 127.0.0.1 at 2013-07-17 09:16:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"310"} 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" = 240 AND "public"."cadenero_users"."id" = 310 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 310 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 310 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 310 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 310 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 310 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 310 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 310 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 310 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  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$PPD6pV1m/xRKKfaRmUPIOusf7P0H1er9xHB4dN64/1xCaiXbvNppq"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = '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", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 311], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qAvTibEDiw6fowbja4te' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 311, "created_at" = '2013-07-17 14:16:30.930781', "updated_at" = '2013-07-17 14:16:30.930781', "authentication_token" = 'qAvTibEDiw6fowbja4te' WHERE "public"."cadenero_accounts"."id" = 241  (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", 241], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:30 UTC +00:00], ["user_id", 311]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MswyXGQiXAmyjwcq1pzu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 241, "user_id" = 311, "created_at" = '2013-07-17 14:16:30.936549', "updated_at" = '2013-07-17 14:16:30.936549', "auth_token" = 'MswyXGQiXAmyjwcq1pzu' WHERE "public"."cadenero_members"."id" = 313  (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")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16:30 -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" = 241 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" = 311 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 311 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 311 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 311 Completed 201 Created in 108ms (Views: 5.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::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 241 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16:31 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"311", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 311 LIMIT 1 Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$h9m9cu1lDOrwzvaUwSO3qe9Tm2FpjQDmxGmapRFOvPYqAhlwkSYa6"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = '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", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 312], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JqRqnGMPHBfSGe8e9BSy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 312, "created_at" = '2013-07-17 14:16:31.230775', "updated_at" = '2013-07-17 14:16:31.230775', "authentication_token" = 'JqRqnGMPHBfSGe8e9BSy' WHERE "public"."cadenero_accounts"."id" = 242  (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", 242], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["user_id", 312]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qNwdigFJMgnEx5R1nWFr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 242, "user_id" = 312, "created_at" = '2013-07-17 14:16:31.236547', "updated_at" = '2013-07-17 14:16:31.236547', "auth_token" = 'qNwdigFJMgnEx5R1nWFr' WHERE "public"."cadenero_members"."id" = 314  (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.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.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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16: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.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" = 242 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" = 312 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 312 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 312 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 312 Completed 201 Created in 111ms (Views: 6.0ms | 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.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 242 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16: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" = 312 LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$ykCmUcj/1nd6wnreUWm01e2ZdB4bNlU/grLI3KBaP9hqDQFd9tfqa"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = '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", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 313], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AT9GjxmWsSmtuDaiW9fS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 313, "created_at" = '2013-07-17 14:16:31.566166', "updated_at" = '2013-07-17 14:16:31.566166', "authentication_token" = 'AT9GjxmWsSmtuDaiW9fS' WHERE "public"."cadenero_accounts"."id" = 243  (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", 243], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["user_id", 313]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '47M7ivXjrXagewJ3JLLA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 243, "user_id" = 313, "created_at" = '2013-07-17 14:16:31.571795', "updated_at" = '2013-07-17 14:16:31.571795', "auth_token" = '47M7ivXjrXagewJ3JLLA' WHERE "public"."cadenero_members"."id" = 315  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16: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/users" for 127.0.0.1 at 2013-07-17 09:16:31 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) 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", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$271KPwAgUjdMDxZwtzVHWeLcnZncJnNP/uzqVEF3sTMlGGj6lXqW6"], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 243], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["user_id", 314]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yzwCErPamhRU4VHTW3uU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 243, "user_id" = 314, "created_at" = '2013-07-17 14:16:31.782231', "updated_at" = '2013-07-17 14:16:31.782231', "auth_token" = 'yzwCErPamhRU4VHTW3uU' WHERE "public"."cadenero_members"."id" = 316  (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" = 314 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 314 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 314 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 314 Completed 201 Created in 113ms (Views: 5.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/314" for 127.0.0.1 at 2013-07-17 09:16:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"314"} 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" = 243 AND "public"."cadenero_users"."id" = 314 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 314 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 314 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 314 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 314 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 314 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 314 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 314 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 314 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16:31 -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" = 314 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$3SmGHCcOnsWsEyyHZPYp4egRljufrjh9J/yhIFrGiGbiCvCN0HMxO"], ["updated_at", Wed, 17 Jul 2013 14:16:31 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" = '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", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 315], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q35ppd2hvqKqBEwAWASv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 315, "created_at" = '2013-07-17 14:16:31.939780', "updated_at" = '2013-07-17 14:16:31.939780', "authentication_token" = 'q35ppd2hvqKqBEwAWASv' WHERE "public"."cadenero_accounts"."id" = 244  (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", 244], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:31 UTC +00:00], ["user_id", 315]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qEeDhxqy48ucYy1zCim6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 244, "user_id" = 315, "created_at" = '2013-07-17 14:16:31.945619', "updated_at" = '2013-07-17 14:16:31.945619', "auth_token" = 'qEeDhxqy48ucYy1zCim6' WHERE "public"."cadenero_members"."id" = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16:32 -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.3ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$5laW03r38gjztekEs0AyH.DkxItDO95pMXpYNAiQYT/UMwQYEsrye"], ["updated_at", Wed, 17 Jul 2013 14:16:32 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" = '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", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 316], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zwHFhGKS4sjEeTNRGLvr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 316, "created_at" = '2013-07-17 14:16:32.132658', "updated_at" = '2013-07-17 14:16:32.132658', "authentication_token" = 'zwHFhGKS4sjEeTNRGLvr' WHERE "public"."cadenero_accounts"."id" = 245  (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", 245], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["user_id", 316]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GtvQbnjWok6XxfdPwyoV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 245, "user_id" = 316, "created_at" = '2013-07-17 14:16:32.140473', "updated_at" = '2013-07-17 14:16:32.140473', "auth_token" = 'GtvQbnjWok6XxfdPwyoV' WHERE "public"."cadenero_members"."id" = 318  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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")  (21.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (3.1ms) 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")  (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$dQ0aCAsNgv/BuquI/MC39OTQQjZztYYF60ZcGqnAJbNye/eG0GI9."], ["updated_at", Wed, 17 Jul 2013 14:16: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" = '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", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 317], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6cXByeeWsjALJKX469Kn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 317, "created_at" = '2013-07-17 14:16:32.327507', "updated_at" = '2013-07-17 14:16:32.327507', "authentication_token" = '6cXByeeWsjALJKX469Kn' WHERE "public"."cadenero_accounts"."id" = 246  (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", 246], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["user_id", 317]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9xgcCgr1PZhFJGrXWU8E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 246, "user_id" = 317, "created_at" = '2013-07-17 14:16:32.332722', "updated_at" = '2013-07-17 14:16:32.332722', "auth_token" = '9xgcCgr1PZhFJGrXWU8E' WHERE "public"."cadenero_members"."id" = 319  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16: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-17 09:16: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 245 AND "public"."cadenero_users"."email" = 'user9@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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$YHXXpwawRx.CL1f3p9xr.eHpYpN9UAhFnI2F5lFx9F2p9rMcgY6YS"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 318], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WRaPp5a8zHMsqKZq75gt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 318, "created_at" = '2013-07-17 14:16:32.476480', "updated_at" = '2013-07-17 14:16:32.476480', "authentication_token" = 'WRaPp5a8zHMsqKZq75gt' WHERE "public"."cadenero_accounts"."id" = 247  (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", 247], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["user_id", 318]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CY6qsAXcZXBS9EBuHxVz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 247, "user_id" = 318, "created_at" = '2013-07-17 14:16:32.482055', "updated_at" = '2013-07-17 14:16:32.482055', "auth_token" = 'CY6qsAXcZXBS9EBuHxVz' WHERE "public"."cadenero_members"."id" = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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")  (3.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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16: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.6ms) 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" = 247 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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$vD38ApmlFaTGpBV90xIECemZIwigfgwFlTL4RKyS2OaNJOT/XABqu"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = '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", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 319], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AWByP3PdZhUzS8ejzvqA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 319, "created_at" = '2013-07-17 14:16:32.658829', "updated_at" = '2013-07-17 14:16:32.658829', "authentication_token" = 'AWByP3PdZhUzS8ejzvqA' WHERE "public"."cadenero_accounts"."id" = 248  (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", 248], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["user_id", 319]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sD2YQbsDoAaZaHQxjSy2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 248, "user_id" = 319, "created_at" = '2013-07-17 14:16:32.664252', "updated_at" = '2013-07-17 14:16:32.664252', "auth_token" = 'sD2YQbsDoAaZaHQxjSy2' WHERE "public"."cadenero_members"."id" = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) 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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16: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 ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 248 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$NDI9NnQy70vVWmnhbhhVuOP6BfFvaiDD27ukxTZJd57b4ES3hB/pi"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = 'test13' 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", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 320], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ytpX5yRSZtXHUox9Z1S8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 320, "created_at" = '2013-07-17 14:16:32.841055', "updated_at" = '2013-07-17 14:16:32.841055', "authentication_token" = 'ytpX5yRSZtXHUox9Z1S8' WHERE "public"."cadenero_accounts"."id" = 249  (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", 249], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:32 UTC +00:00], ["user_id", 320]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Si4eSx8AyH4zAzzcErmi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 249, "user_id" = 320, "created_at" = '2013-07-17 14:16:32.846461', "updated_at" = '2013-07-17 14:16:32.846461', "auth_token" = 'Si4eSx8AyH4zAzzcErmi' WHERE "public"."cadenero_members"."id" = 322  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:16:32 -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 ('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" = 249 AND "public"."cadenero_users"."email" = 'user12@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 320 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 320 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 320 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 320 Completed 201 Created in 107ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 249 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:16: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" = 320 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.3ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) 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", Wed, 17 Jul 2013 14:16:41 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$wzSFVbvWwBwt0mssvBcideFzaq9Y9FxcPHfnhbDh.7/sN2hh2d/eG"], ["updated_at", Wed, 17 Jul 2013 14:16: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" = 'test14' 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", Wed, 17 Jul 2013 14:16:41 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 321], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 14:16:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FGiuYzxiTzWNquVrNqAW' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 321, "created_at" = '2013-07-17 14:16:41.692882', "updated_at" = '2013-07-17 14:16:41.692882', "authentication_token" = 'FGiuYzxiTzWNquVrNqAW' WHERE "public"."cadenero_accounts"."id" = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 250], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:41 UTC +00:00], ["user_id", 321]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NEpTuSnsn48HZzZBFXb1' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 250, "user_id" = 321, "created_at" = '2013-07-17 14:16:41.704589', "updated_at" = '2013-07-17 14:16:41.704589', "auth_token" = 'NEpTuSnsn48HZzZBFXb1' WHERE "public"."cadenero_members"."id" = 323  (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", Wed, 17 Jul 2013 14:16:41 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$hTBCUqtjKhzZ2wNQ9YLdKuai93oulkT44mxUxTjpRgNkkEOji/lKW"], ["updated_at", Wed, 17 Jul 2013 14:16: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", Wed, 17 Jul 2013 14:16:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$CtqNE/cIgRtK2yC5ppYr6Or/ix2DlOOLtKlKVsQnVThPTQbZnXGD2"], ["updated_at", Wed, 17 Jul 2013 14:16: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.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", Wed, 17 Jul 2013 14:16:42 UTC +00:00], ["name", "Root"], ["owner_id", 323], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 14:16:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2DMCbyCcL9x5mQqHQhZy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 323, "created_at" = '2013-07-17 14:16:42.051178', "updated_at" = '2013-07-17 14:16:42.051178', "authentication_token" = '2DMCbyCcL9x5mQqHQhZy' WHERE "public"."cadenero_accounts"."id" = 251  (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", 251], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:16:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:16:42 UTC +00:00], ["user_id", 323]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z2bhuRNPSasaR4pTeuyj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 251, "user_id" = 323, "created_at" = '2013-07-17 14:16:42.056815', "updated_at" = '2013-07-17 14:16:42.056815', "auth_token" = 'z2bhuRNPSasaR4pTeuyj' WHERE "public"."cadenero_members"."id" = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ovM9.ozaDh8m63Hp7WJ.huayDQpZyrNyAvQuUjyLEKx3FckJ1gCvS"], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 324], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tBX1gattLPXR3D4jE1HP' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 324, "created_at" = '2013-07-17 14:18:21.196458', "updated_at" = '2013-07-17 14:18:21.196458', "authentication_token" = 'tBX1gattLPXR3D4jE1HP' WHERE "public"."cadenero_accounts"."id" = 252  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 252], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["user_id", 324]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eWKqLTcuF5mrvpCroSCs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 252, "user_id" = 324, "created_at" = '2013-07-17 14:18:21.295472', "updated_at" = '2013-07-17 14:18:21.295472', "auth_token" = 'eWKqLTcuF5mrvpCroSCs' WHERE "public"."cadenero_members"."id" = 325  (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", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$TjAc2sNUH7Xr.cdXTXMiYuVwKk1N28J7sYc16pkwVxFtIchlNQeHa"], ["updated_at", Wed, 17 Jul 2013 14:18:21 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", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$oUEaufKTtI.cQgkQQIzxWuVh4tvVTvG5PB/oRJ/1FKWLZsXi/H4ZC"], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["name", "Root"], ["owner_id", 326], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zpkP6oVxspN96wjArj8y' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 326, "created_at" = '2013-07-17 14:18:21.504407', "updated_at" = '2013-07-17 14:18:21.504407', "authentication_token" = 'zpkP6oVxspN96wjArj8y' WHERE "public"."cadenero_accounts"."id" = 253  (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", 253], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["user_id", 326]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1P1JXDrm4WiYNePfydvX' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 253, "user_id" = 326, "created_at" = '2013-07-17 14:18:21.511438', "updated_at" = '2013-07-17 14:18:21.511438', "auth_token" = '1P1JXDrm4WiYNePfydvX' WHERE "public"."cadenero_members"."id" = 326  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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.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.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")  (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)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.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.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$EeJJX8h4jrimRd6V81QDTef0MHXwHshfY/yY2MOJyGJayEicEDCOq"], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00]] 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", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 327], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dZQuAqpKBFuxatAnqkH6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 327, "created_at" = '2013-07-17 14:18:21.765608', "updated_at" = '2013-07-17 14:18:21.765608', "authentication_token" = 'dZQuAqpKBFuxatAnqkH6' WHERE "public"."cadenero_accounts"."id" = 254  (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", 254], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:21 UTC +00:00], ["user_id", 327]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MARxGmvMC5qqYK1Ln7Mg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 254, "user_id" = 327, "created_at" = '2013-07-17 14:18:21.773000', "updated_at" = '2013-07-17 14:18:21.773000', "auth_token" = 'MARxGmvMC5qqYK1Ln7Mg' WHERE "public"."cadenero_members"."id" = 327  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (0.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")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.7ms) 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" = 254 LIMIT 1  (3.9ms) ROLLBACK  (1.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$0U82gcYiEMYJ98xbJH0eae3BnLMKurGAUBXOeOOC6NiNIa672OE9a"], ["updated_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["name", "Testy"], ["owner_id", 328], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Xp7X7qh9kyzzchnSNTBy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 328, "created_at" = '2013-07-17 14:18:22.321122', "updated_at" = '2013-07-17 14:18:22.321122', "authentication_token" = 'Xp7X7qh9kyzzchnSNTBy' WHERE "public"."cadenero_accounts"."id" = 255  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:18: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.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 105ms (Views: 0.4ms | 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:18: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.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5kARiTAfIjXcKUHln3llMuqnSiMl43sOJEW6gZid/irLEjaY5zJLC"], ["updated_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["name", "Testy"], ["owner_id", 329], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ohVyeVmvErymds4XKwbE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 329, "created_at" = '2013-07-17 14:18:22.575012', "updated_at" = '2013-07-17 14:18:22.575012', "authentication_token" = 'ohVyeVmvErymds4XKwbE' WHERE "public"."cadenero_accounts"."id" = 256  (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", 256], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["user_id", 329]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dx8ExEsRHKg22M6rzhQ7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 256, "user_id" = 329, "created_at" = '2013-07-17 14:18:22.580439', "updated_at" = '2013-07-17 14:18:22.580439', "auth_token" = 'dx8ExEsRHKg22M6rzhQ7' WHERE "public"."cadenero_members"."id" = 328  (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.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.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.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.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.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" != 256) LIMIT 1 Completed 201 Created in 166ms (Views: 1.9ms | ActiveRecord: 35.8ms) 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.2ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:22 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" = 'xnjzynfcbZXA7Qz2oBzq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 14:18:22.780759', "updated_at" = '2013-07-17 14:18:22.780759', "auth_token" = 'xnjzynfcbZXA7Qz2oBzq' WHERE "public"."cadenero_members"."id" = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$2IKxvyuIRco4nw6asO8NVOytRKJq5HkCnMipjiY/Ch./5VicuHZ/S"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 330], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6cMWBCkCBRWXZZhNk1Xn' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 330, "created_at" = '2013-07-17 14:18:23.011351', "updated_at" = '2013-07-17 14:18:23.011351', "authentication_token" = '6cMWBCkCBRWXZZhNk1Xn' WHERE "public"."cadenero_accounts"."id" = 257  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (4.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", 257], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["user_id", 330]] Cadenero::Member Load (7.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CpczPkLqcT3X46h5tpHp' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 257, "user_id" = 330, "created_at" = '2013-07-17 14:18:23.116370', "updated_at" = '2013-07-17 14:18:23.116370', "auth_token" = 'CpczPkLqcT3X46h5tpHp' WHERE "public"."cadenero_members"."id" = 330  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test2"  (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.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.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")  (2.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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)   (6.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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-17 09:18: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 (5.1ms) 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" = 257 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 330 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 330 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 330 Cadenero::V1::Account Load (5.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" = 330 Completed 201 Created in 165ms (Views: 34.3ms | ActiveRecord: 20.8ms) Cadenero::V1::Account Load (1.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" = 257 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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" = 330 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$BLgH/qcAzkr4etY3fqkfIur2lVwzIaxgwF0o/mf0ty5v7LsLtw0/6"], ["updated_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 331], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WzqGdQzoxPkhR53xF9kz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 331, "created_at" = '2013-07-17 14:18:23.587944', "updated_at" = '2013-07-17 14:18:23.587944', "authentication_token" = 'WzqGdQzoxPkhR53xF9kz' WHERE "public"."cadenero_accounts"."id" = 258  (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", 258], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:23 UTC +00:00], ["user_id", 331]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sRUGq1UorY3p2aBCgVxP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 258, "user_id" = 331, "created_at" = '2013-07-17 14:18:23.614257', "updated_at" = '2013-07-17 14:18:23.614257', "auth_token" = 'sRUGq1UorY3p2aBCgVxP' WHERE "public"."cadenero_members"."id" = 331  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (6.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")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (4.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.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)  (3.3ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18: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 (3.8ms) 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" = 258 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" = 331 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 331 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 331 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" = 331 Completed 201 Created in 138ms (Views: 5.7ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 258 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"331", "default"=>:json} Cadenero::User Load (5.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 331 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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/users" for 127.0.0.1 at 2013-07-17 09:18: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 (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$xR8q1XhUOkXQb9qZAbwbqu8oAqtmx9zB/zCKKFHkcynRgactxtSem"], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00]] SQL (12.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", 258], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["user_id", 332]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x6spoyzxwU7d5ZJKs5pS' LIMIT 1  (4.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 258, "user_id" = 332, "created_at" = '2013-07-17 14:18:24.008099', "updated_at" = '2013-07-17 14:18:24.008099', "auth_token" = 'x6spoyzxwU7d5ZJKs5pS' WHERE "public"."cadenero_members"."id" = 332  (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" = 332 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 332 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 332 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" = 332 Completed 201 Created in 163ms (Views: 6.1ms | ActiveRecord: 26.3ms) Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/332" for 127.0.0.1 at 2013-07-17 09:18:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"332"} 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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 258 AND "public"."cadenero_users"."id" = 332 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 332 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 332 Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 332 Cadenero::V1::Account Load (8.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" = 332 Completed 200 OK in 23ms (Views: 5.9ms | ActiveRecord: 13.2ms) Cadenero::User Load (7.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18:24 -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" = 332 LIMIT 1 Cadenero::Member Load (2.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 332 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 332 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" = 332 Completed 201 Created in 13ms (Views: 5.2ms | ActiveRecord: 6.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.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$njV7uGFVSXqUd/HZXGiA8u1RBUmk//YHJop6TD4ICzWm.crK2Xgty"], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 333], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00]] Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WKpuVxxq8FU4dyYW8DVv' LIMIT 1  (7.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 333, "created_at" = '2013-07-17 14:18:24.230066', "updated_at" = '2013-07-17 14:18:24.230066', "authentication_token" = 'WKpuVxxq8FU4dyYW8DVv' WHERE "public"."cadenero_accounts"."id" = 259  (3.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 259], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["user_id", 333]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LqE6YEkNDUyF9Qrevsbx' LIMIT 1  (4.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 259, "user_id" = 333, "created_at" = '2013-07-17 14:18:24.252715', "updated_at" = '2013-07-17 14:18:24.252715', "auth_token" = 'LqE6YEkNDUyF9Qrevsbx' WHERE "public"."cadenero_members"."id" = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (4.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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/users" for 127.0.0.1 at 2013-07-17 09:18:24 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$vsJYXvGlc2mCPGoLa8MRV.5SPt2nevLb2YNlnZMr4VI4Ee9Qy1ehK"], ["updated_at", Wed, 17 Jul 2013 14:18:24 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", 259], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["user_id", 334]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tzps6NXoTtx7HviQT9Nz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 259, "user_id" = 334, "created_at" = '2013-07-17 14:18:24.491391', "updated_at" = '2013-07-17 14:18:24.491391', "auth_token" = 'tzps6NXoTtx7HviQT9Nz' WHERE "public"."cadenero_members"."id" = 334  (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" = 334 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (9.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 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" = 334 Completed 201 Created in 161ms (Views: 6.1ms | 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/334" for 127.0.0.1 at 2013-07-17 09:18:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"334"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.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" = 259 AND "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 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" = 334 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18:24 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 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" = 334 Completed 201 Created in 13ms (Views: 5.2ms | ActiveRecord: 6.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18:24 -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" = 334 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (1.6ms) 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", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$xmLix1LMqPvMGkuJEyYQauJ6GnE/3Ysvy0frAdUQ/mghyK5vqVcfy"], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.2ms) 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", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 335], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iPx8HSsh8yvpMtgGkHRs' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 335, "created_at" = '2013-07-17 14:18:24.709796', "updated_at" = '2013-07-17 14:18:24.709796', "authentication_token" = 'iPx8HSsh8yvpMtgGkHRs' WHERE "public"."cadenero_accounts"."id" = 260  (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", 260], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:24 UTC +00:00], ["user_id", 335]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wfpwjD6qohcXZo2igx8D' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 260, "user_id" = 335, "created_at" = '2013-07-17 14:18:24.717624', "updated_at" = '2013-07-17 14:18:24.717624', "auth_token" = 'wfpwjD6qohcXZo2igx8D' WHERE "public"."cadenero_members"."id" = 335  (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)   (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.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.7ms) 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.9ms) 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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18: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.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" = 260 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" = 335 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 335 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 335 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 335 Completed 201 Created in 122ms (Views: 8.2ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 260 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"335", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 335 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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)  (4.3ms) ROLLBACK  (3.0ms) BEGIN  (0.1ms) COMMIT  (4.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$HJioz6rw1GPm7jI5Fm6qnu/5ehVHDCN7aesLobIhi8I5HS7Eyp08W"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = '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", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 336], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Y3sz8ddaE8psTZcHsC7L' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 336, "created_at" = '2013-07-17 14:18:25.115949', "updated_at" = '2013-07-17 14:18:25.115949', "authentication_token" = 'Y3sz8ddaE8psTZcHsC7L' WHERE "public"."cadenero_accounts"."id" = 261  (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", 261], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["user_id", 336]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wD9riEpaczrvMU4VAJxP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 261, "user_id" = 336, "created_at" = '2013-07-17 14:18:25.121935', "updated_at" = '2013-07-17 14:18:25.121935', "auth_token" = 'wD9riEpaczrvMU4VAJxP' WHERE "public"."cadenero_members"."id" = 336  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.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, "auth_token" character varying(255))   (5.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.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)  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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-17 09:18: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 (4.9ms) 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" = 261 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" = 336 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 336 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 336 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" = 336 Completed 201 Created in 121ms (Views: 7.2ms | ActiveRecord: 6.7ms) 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::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 261 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18:25 -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" = 336 LIMIT 1 Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$FQVpnflD5y0ihu0ssonOw.jJBZKmqchq.qJh0/RwCVmp2Y.8BnafO"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = '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", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 337], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qWDs8kDXSpCsBUssbkJq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 337, "created_at" = '2013-07-17 14:18:25.528580', "updated_at" = '2013-07-17 14:18:25.528580', "authentication_token" = 'qWDs8kDXSpCsBUssbkJq' WHERE "public"."cadenero_accounts"."id" = 262  (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", 262], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["user_id", 337]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FsVxMSzDWYeZ3vsvfKze' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 262, "user_id" = 337, "created_at" = '2013-07-17 14:18:25.534153', "updated_at" = '2013-07-17 14:18:25.534153', "auth_token" = 'FsVxMSzDWYeZ3vsvfKze' WHERE "public"."cadenero_members"."id" = 337  (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.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.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.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.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)  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.0ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:18:25 -0500 Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$CMmeD1VSNyAQ5n1MIJEAPep/NOLx1qFLSMIfCs7etfUwSMuYhnWLy"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = '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", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 338], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sGqppdmJnHc1nuA9YUEQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 338, "created_at" = '2013-07-17 14:18:25.729715', "updated_at" = '2013-07-17 14:18:25.729715', "authentication_token" = 'sGqppdmJnHc1nuA9YUEQ' WHERE "public"."cadenero_accounts"."id" = 263  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 263], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["user_id", 338]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gGz2SDxu8axiyPDMNRx5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 263, "user_id" = 338, "created_at" = '2013-07-17 14:18:25.735723', "updated_at" = '2013-07-17 14:18:25.735723', "auth_token" = 'gGz2SDxu8axiyPDMNRx5' WHERE "public"."cadenero_members"."id" = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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-17 09:18: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 263 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$OnsZYGclCUkekn/zeaAk6ezD3sDllK55BEy0LXmkBtamveDFT9ykq"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = '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", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 339], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mAxsFxWFAAKPBqj29ZT7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 339, "created_at" = '2013-07-17 14:18:25.946609', "updated_at" = '2013-07-17 14:18:25.946609', "authentication_token" = 'mAxsFxWFAAKPBqj29ZT7' WHERE "public"."cadenero_accounts"."id" = 264  (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", 264], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:25 UTC +00:00], ["user_id", 339]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ebnr77PG4Qotnh1xuZko' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 264, "user_id" = 339, "created_at" = '2013-07-17 14:18:25.952113', "updated_at" = '2013-07-17 14:18:25.952113', "auth_token" = 'Ebnr77PG4Qotnh1xuZko' WHERE "public"."cadenero_members"."id" = 339  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$R78xVIRcylYhBp/r7qV7eOUZodtEWQQ.y9Bus5PE4FvaokeiDz4vi"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = '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", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 340], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00]] Cadenero::V1::Account Load (7.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ygUiTNgHTsr1hEhUs6sf' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 340, "created_at" = '2013-07-17 14:18:26.127343', "updated_at" = '2013-07-17 14:18:26.127343', "authentication_token" = 'ygUiTNgHTsr1hEhUs6sf' WHERE "public"."cadenero_accounts"."id" = 265  (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", 265], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["user_id", 340]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tqRXtZ7rVCjSDFS57Kuu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 265, "user_id" = 340, "created_at" = '2013-07-17 14:18:26.142729', "updated_at" = '2013-07-17 14:18:26.142729', "auth_token" = 'tqRXtZ7rVCjSDFS57Kuu' WHERE "public"."cadenero_members"."id" = 340  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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-17 09:18:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.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" = 264 AND "public"."cadenero_users"."email" = 'user11@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.6ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$XYOVGe8aW.k6Wyyxmo8GBO8mfjdsRASB60wOGDylzE0e3UHB/5xLi"], ["updated_at", Wed, 17 Jul 2013 14:18: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 341], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MhVAnKyxpYbyn8RxuxrE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 341, "created_at" = '2013-07-17 14:18:26.311515', "updated_at" = '2013-07-17 14:18:26.311515', "authentication_token" = 'MhVAnKyxpYbyn8RxuxrE' WHERE "public"."cadenero_accounts"."id" = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 266], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:26 UTC +00:00], ["user_id", 341]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z1x76aTLVndJxqL1sQ2E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 266, "user_id" = 341, "created_at" = '2013-07-17 14:18:26.320853', "updated_at" = '2013-07-17 14:18:26.320853', "auth_token" = 'Z1x76aTLVndJxqL1sQ2E' WHERE "public"."cadenero_members"."id" = 341  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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")  (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, "auth_token" character varying(255))   (2.4ms) 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.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) 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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:18: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-17 09:18: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') 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" = 266 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  (8.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$GbDXOXwIcdd8IdBBsNeJx.QU6dq2dK8J4liXdkC.HIF0xQO7qVsTq"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = '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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 342], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'o4BEmLaQmzYxrz41NYox' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 342, "created_at" = '2013-07-17 14:18:27.011437', "updated_at" = '2013-07-17 14:18:27.011437', "authentication_token" = 'o4BEmLaQmzYxrz41NYox' WHERE "public"."cadenero_accounts"."id" = 267  (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", 267], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["user_id", 342]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8fWu3CKrJCDsn7b98yzX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 267, "user_id" = 342, "created_at" = '2013-07-17 14:18:27.017131', "updated_at" = '2013-07-17 14:18:27.017131', "auth_token" = '8fWu3CKrJCDsn7b98yzX' WHERE "public"."cadenero_members"."id" = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (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.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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:18: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.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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$sb3f5JlGV99j8O.BOG/W7.KQvIg2FOfoqZwahcehyAvzQmaf603eK"], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00]] 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", 267], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["user_id", 343]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UQRxibksNcLQ4TbjGuxW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 267, "user_id" = 343, "created_at" = '2013-07-17 14:18:27.203107', "updated_at" = '2013-07-17 14:18:27.203107', "auth_token" = 'UQRxibksNcLQ4TbjGuxW' WHERE "public"."cadenero_members"."id" = 343  (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" = 343 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 Completed 201 Created in 150ms (Views: 6.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/343" for 127.0.0.1 at 2013-07-17 09:18:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"343"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 267 AND "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 Cadenero::V1::Account Load (0.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" = 343 Completed 200 OK in 16ms (Views: 8.8ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 343], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'muuHFogZzdQnT6EsUw5A' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 343, "created_at" = '2013-07-17 14:18:27.246299', "updated_at" = '2013-07-17 14:18:27.246299', "authentication_token" = 'muuHFogZzdQnT6EsUw5A' WHERE "public"."cadenero_accounts"."id" = 268  (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", 268], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["user_id", 343]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yPSpzoarzxUts2FqbFUc' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 268, "user_id" = 343, "created_at" = '2013-07-17 14:18:27.254122', "updated_at" = '2013-07-17 14:18:27.254122', "auth_token" = 'yPSpzoarzxUts2FqbFUc' WHERE "public"."cadenero_members"."id" = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (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")  (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.5ms) 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.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 ('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-17 09:18: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" = '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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2RWa53WP5U6kT8Vz6fl3q.k6qalzcjGnnJv7j7uuw27Sc6mHssGCa"], ["updated_at", Wed, 17 Jul 2013 14:18:27 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", 268], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["user_id", 344]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yGNpvX9p8z8btyrGamua' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 268, "user_id" = 344, "created_at" = '2013-07-17 14:18:27.416687', "updated_at" = '2013-07-17 14:18:27.416687', "auth_token" = 'yGNpvX9p8z8btyrGamua' WHERE "public"."cadenero_members"."id" = 345  (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" = 344 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 344 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 344 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 344 Completed 201 Created in 116ms (Views: 6.1ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/344" for 127.0.0.1 at 2013-07-17 09:18:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"344"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 268 AND "public"."cadenero_users"."id" = 344 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 344 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 344 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 344 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.9ms) Started GET "/v1/users/343" for 127.0.0.1 at 2013-07-17 09:18:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"343"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 267 AND "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 1.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 09:18: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" = '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" = 267 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 342 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 342 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 342 Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 2.7ms)  (9.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$ZXLsiSgUDKqyLn/i8XKgbODBpBWhg6qBgB6RCkISWXl.0Q4Xizddi"], ["updated_at", Wed, 17 Jul 2013 14:18: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" = 'test14' 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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 345], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2oPPQZsDuz7HVNs8j6fY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 345, "created_at" = '2013-07-17 14:18:27.660302', "updated_at" = '2013-07-17 14:18:27.660302', "authentication_token" = '2oPPQZsDuz7HVNs8j6fY' WHERE "public"."cadenero_accounts"."id" = 269  (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", 269], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["user_id", 345]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tXSyoXiR1rTcBzkv8hzV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 269, "user_id" = 345, "created_at" = '2013-07-17 14:18:27.666087', "updated_at" = '2013-07-17 14:18:27.666087', "auth_token" = 'tXSyoXiR1rTcBzkv8hzV' WHERE "public"."cadenero_members"."id" = 346  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (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")  (15.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:18: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" = 'test14' 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", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$.VAgY4/BC9pWXwQWWDFG6ujvwBPmppSwo5EiYWg39Yp8ASGABiTy6"], ["updated_at", Wed, 17 Jul 2013 14:18:27 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", 269], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:18:27 UTC +00:00], ["user_id", 346]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pFahrgBxGJs8azNsKd1t' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 269, "user_id" = 346, "created_at" = '2013-07-17 14:18:27.839460', "updated_at" = '2013-07-17 14:18:27.839460', "auth_token" = 'pFahrgBxGJs8azNsKd1t' WHERE "public"."cadenero_members"."id" = 347  (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" = 346 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 346 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 346 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 346 Completed 201 Created in 116ms (Views: 5.8ms | 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/346" for 127.0.0.1 at 2013-07-17 09:18:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"346"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.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" = 269 AND "public"."cadenero_users"."id" = 346 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 346 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 346 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 346 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 346 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.9ms)  (4.9ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) 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 (6.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:36 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mEcIZ1uevwj77ESsPg2VJ.AaAdebtpjPpH.npUSD1LAp6g4SXqHX2"], ["updated_at", Wed, 17 Jul 2013 14:23:36 UTC +00:00]] 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", Wed, 17 Jul 2013 14:23:36 UTC +00:00], ["name", "Testy"], ["owner_id", 347], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:23:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'u5tDosVDzbzdn24eeyrt' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 347, "created_at" = '2013-07-17 14:23:36.684576', "updated_at" = '2013-07-17 14:23:36.684576', "authentication_token" = 'u5tDosVDzbzdn24eeyrt' WHERE "public"."cadenero_accounts"."id" = 270  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:23:36 -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.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 115ms (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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:23:36 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$hGfHF3dJrV86WYzWNXpNi.rq3JAIQ0z.BBNh0jvr.ma/F6zB1K6Fm"], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["name", "Testy"], ["owner_id", 348], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MbEqgzD7Y9pY4m5z1vD2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 348, "created_at" = '2013-07-17 14:23:37.012047', "updated_at" = '2013-07-17 14:23:37.012047', "authentication_token" = 'MbEqgzD7Y9pY4m5z1vD2' WHERE "public"."cadenero_accounts"."id" = 271  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 271], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["user_id", 348]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't3BmMWe7YsSNsadqvBuH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 271, "user_id" = 348, "created_at" = '2013-07-17 14:23:37.067550', "updated_at" = '2013-07-17 14:23:37.067550', "auth_token" = 't3BmMWe7YsSNsadqvBuH' WHERE "public"."cadenero_members"."id" = 348  (0.1ms) RELEASE SAVEPOINT active_record_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.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, "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")  (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.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')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 271) LIMIT 1 Completed 201 Created in 303ms (Views: 1.9ms | ActiveRecord: 46.5ms) 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  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$O9o/nWnJHzCGhYDvmjYiM.3xOIYW6ZrfdQGN7Ztoo8.BQIGdY3m3C"], ["updated_at", Wed, 17 Jul 2013 14:23: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" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 349], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2wCYg66HbmSEFhTomkwX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 349, "created_at" = '2013-07-17 14:23:37.331812', "updated_at" = '2013-07-17 14:23:37.331812', "authentication_token" = '2wCYg66HbmSEFhTomkwX' WHERE "public"."cadenero_accounts"."id" = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 272], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["user_id", 349]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bftnPBXAKa5qjdojLuzh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 272, "user_id" = 349, "created_at" = '2013-07-17 14:23:37.337517', "updated_at" = '2013-07-17 14:23:37.337517', "auth_token" = 'bftnPBXAKa5qjdojLuzh' WHERE "public"."cadenero_members"."id" = 349  (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)   (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.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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:23: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.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", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$XihZMG38fEEb7LsTjg4gI.gjF/0t.45.2.hQ3hd5LXp8fqFaCPXhO"], ["updated_at", Wed, 17 Jul 2013 14:23:37 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", 272], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["user_id", 350]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ii8y64GoVyxBeoZwYwux' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 272, "user_id" = 350, "created_at" = '2013-07-17 14:23:37.502231', "updated_at" = '2013-07-17 14:23:37.502231', "auth_token" = 'ii8y64GoVyxBeoZwYwux' WHERE "public"."cadenero_members"."id" = 350  (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" = 350 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 350 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" = 350 Completed 201 Created in 145ms (Views: 35.3ms | 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/350" for 127.0.0.1 at 2013-07-17 09:23:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"350"} 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" = 272 AND "public"."cadenero_users"."id" = 350 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 350 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 350 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 350], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DMYzzLbKpsE3fZcRzpMj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 350, "created_at" = '2013-07-17 14:23:37.568913', "updated_at" = '2013-07-17 14:23:37.568913', "authentication_token" = 'DMYzzLbKpsE3fZcRzpMj' WHERE "public"."cadenero_accounts"."id" = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 273], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["user_id", 350]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sUiQFxjq5wojJTm6Nqkn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 273, "user_id" = 350, "created_at" = '2013-07-17 14:23:37.580528', "updated_at" = '2013-07-17 14:23:37.580528', "auth_token" = 'sUiQFxjq5wojJTm6Nqkn' WHERE "public"."cadenero_members"."id" = 351  (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.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.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))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:23: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 (45.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", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$BjMj9vSGEHubiUWyilTKyuQ5GDQAQBoBN5vsVLhnYBOJCM0BV30yi"], ["updated_at", Wed, 17 Jul 2013 14:23: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", 273], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["user_id", 351]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BEAFjTnG1ByvLzhqPgvq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 273, "user_id" = 351, "created_at" = '2013-07-17 14:23:37.810398', "updated_at" = '2013-07-17 14:23:37.810398', "auth_token" = 'BEAFjTnG1ByvLzhqPgvq' WHERE "public"."cadenero_members"."id" = 352  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 Completed 201 Created in 161ms (Views: 5.7ms | ActiveRecord: 48.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/351" for 127.0.0.1 at 2013-07-17 09:23:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"351"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 273 AND "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Started GET "/v1/users/350" for 127.0.0.1 at 2013-07-17 09:23:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"350"} 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" = 272 AND "public"."cadenero_users"."id" = 350 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 350 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 350 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 09:23:37 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 272 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 350 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 349 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 349 Completed 200 OK in 17ms (Views: 12.1ms | ActiveRecord: 2.6ms)  (10.3ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$4r/CKkKrmALlOA/RU1ysNecnMiwwJ1fhoSsGTQE45RL1MnExBQg2W"], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 14:23:37 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 352], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 14:23:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Dva6Xx4SdR6HPtZCFAH6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 352, "created_at" = '2013-07-17 14:23:37.994854', "updated_at" = '2013-07-17 14:23:37.994854', "authentication_token" = 'Dva6Xx4SdR6HPtZCFAH6' WHERE "public"."cadenero_accounts"."id" = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 274], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:38 UTC +00:00], ["user_id", 352]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WvD993HDxEaU9m5CFnSu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 274, "user_id" = 352, "created_at" = '2013-07-17 14:23:38.000392', "updated_at" = '2013-07-17 14:23:38.000392', "auth_token" = 'WvD993HDxEaU9m5CFnSu' WHERE "public"."cadenero_members"."id" = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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")  (1.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:23: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 (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Z.urJiIBrTHAHDv7VI.t3OEZnuQ80evGGowsMb5hdFDR2iaZ0t47a"], ["updated_at", Wed, 17 Jul 2013 14:23:38 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", 274], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:38 UTC +00:00], ["user_id", 353]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VqZsQZMZbXQx9LQFBprZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 274, "user_id" = 353, "created_at" = '2013-07-17 14:23:38.156847', "updated_at" = '2013-07-17 14:23:38.156847', "auth_token" = 'VqZsQZMZbXQx9LQFBprZ' WHERE "public"."cadenero_members"."id" = 354  (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" = 353 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 353 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 353 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 353 Completed 201 Created in 114ms (Views: 6.2ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/353" for 127.0.0.1 at 2013-07-17 09:23:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"353"} 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" = 274 AND "public"."cadenero_users"."id" = 353 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 353 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 353 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 353 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 353 Completed 200 OK in 64ms (Views: 58.8ms | ActiveRecord: 2.1ms)  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$hrhuARFr0wiGT8o6Ragfw.XO3ikEbBzqaBbb9wVtQNvHG/RFPgvfG"], ["updated_at", Wed, 17 Jul 2013 14:23: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" = '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", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 354], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 14:23:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GDpph1gGV1pTDAYsEiJx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 354, "created_at" = '2013-07-17 14:23:41.710244', "updated_at" = '2013-07-17 14:23:41.710244', "authentication_token" = 'GDpph1gGV1pTDAYsEiJx' WHERE "public"."cadenero_accounts"."id" = 275  (0.4ms) 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", 275], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["user_id", 354]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qAqGJtesmhDvRNx3MmYo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 275, "user_id" = 354, "created_at" = '2013-07-17 14:23:41.718468', "updated_at" = '2013-07-17 14:23:41.718468', "auth_token" = 'qAqGJtesmhDvRNx3MmYo' WHERE "public"."cadenero_members"."id" = 355  (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", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$cPT9mSRiFCiTm8eUBMjkHu7y7gFhfi7IXSBfNC4JWwRj7tTDP7gyK"], ["updated_at", Wed, 17 Jul 2013 14:23: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", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$yZzbWE4K.OahAU2Wnlo6mu4tVpByzGg0qbN6cySwxpVIfKLE6K.Ui"], ["updated_at", Wed, 17 Jul 2013 14:23:41 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" = 'www' 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", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["name", "Root"], ["owner_id", 356], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 14: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" = 'SbkHFA8obVsx4drUBhNy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 356, "created_at" = '2013-07-17 14:23:41.933851', "updated_at" = '2013-07-17 14:23:41.933851', "authentication_token" = 'SbkHFA8obVsx4drUBhNy' WHERE "public"."cadenero_accounts"."id" = 276  (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", 276], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:41 UTC +00:00], ["user_id", 356]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8K7pCcsMXyQ6S8jHYqwD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 276, "user_id" = 356, "created_at" = '2013-07-17 14:23:41.944306', "updated_at" = '2013-07-17 14:23:41.944306', "auth_token" = '8K7pCcsMXyQ6S8jHYqwD' WHERE "public"."cadenero_members"."id" = 356  (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.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.3ms) 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")  (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)   (1.4ms) 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')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (15.6ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 13ms (Views: 11.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$dOlGgBafcWJqJMVw.gUlH.4q8SgvlHh4SSlbaOPOzIqABlq2Pbn9."], ["updated_at", Wed, 17 Jul 2013 14:23: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" = '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", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 357], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 14:23:47 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zG5ySeQecfV4HqwSsubA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 357, "created_at" = '2013-07-17 14:23:47.574298', "updated_at" = '2013-07-17 14:23:47.574298', "authentication_token" = 'zG5ySeQecfV4HqwSsubA' WHERE "public"."cadenero_accounts"."id" = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 277], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["user_id", 357]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x4xWyHyuY3sWTz3hEcNP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 277, "user_id" = 357, "created_at" = '2013-07-17 14:23:47.582383', "updated_at" = '2013-07-17 14:23:47.582383', "auth_token" = 'x4xWyHyuY3sWTz3hEcNP' WHERE "public"."cadenero_members"."id" = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.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")  (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.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")  (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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:23:47 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$xUsThk6IdlYbY0pylAKfyuv6TolFgZORZOnaAmrG0EfLvJ4CvN2BC"], ["updated_at", Wed, 17 Jul 2013 14:23:47 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", 277], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:47 UTC +00:00], ["user_id", 358]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BgfGzguULi8FgjLV3qs9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 277, "user_id" = 358, "created_at" = '2013-07-17 14:23:47.881669', "updated_at" = '2013-07-17 14:23:47.881669', "auth_token" = 'BgfGzguULi8FgjLV3qs9' WHERE "public"."cadenero_members"."id" = 358  (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" = 358 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 358 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 358 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 358 Completed 201 Created in 203ms (Views: 17.1ms | ActiveRecord: 5.6ms) 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/358" for 127.0.0.1 at 2013-07-17 09:23:47 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"358"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 277 AND "public"."cadenero_users"."id" = 358 LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 358 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 358 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 358 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" = 358 Completed 200 OK in 80ms (Views: 64.0ms | ActiveRecord: 3.9ms) 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-17 09:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 358 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 358 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 358 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 358 Completed 201 Created in 13ms (Views: 8.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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23:48 -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" = 358 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (18.9ms) 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", Wed, 17 Jul 2013 14:23:48 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$C8bnthzQgcY5yLL8x3UeKukmGBi0uWbFuCgeNVjdHOtYVyefUu/oi"], ["updated_at", Wed, 17 Jul 2013 14:23:48 UTC +00:00]]  (12.8ms) RELEASE SAVEPOINT active_record_1  (7.5ms) 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.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", Wed, 17 Jul 2013 14:23:48 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 359], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 14:23:48 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1zqRp9eq11hBCnysGbMR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 359, "created_at" = '2013-07-17 14:23:48.461694', "updated_at" = '2013-07-17 14:23:48.461694', "authentication_token" = '1zqRp9eq11hBCnysGbMR' WHERE "public"."cadenero_accounts"."id" = 278  (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", 278], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:48 UTC +00:00], ["user_id", 359]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'A1ZBRTmcgJ7kUogHQrWY' LIMIT 1  (9.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 278, "user_id" = 359, "created_at" = '2013-07-17 14:23:48.473268', "updated_at" = '2013-07-17 14:23:48.473268', "auth_token" = 'A1ZBRTmcgJ7kUogHQrWY' WHERE "public"."cadenero_members"."id" = 359  (10.1ms) RELEASE SAVEPOINT active_record_1  (23.8ms) 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)  (2.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.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.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")  (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.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23: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 (1.0ms) 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" = 278 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" = 359 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 359 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 359 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 359 Completed 201 Created in 191ms (Views: 7.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 278 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"359", "default"=>:json} Cadenero::User Load (3.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 359 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23: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.4ms | ActiveRecord: 0.0ms)  (9.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (22.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", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$pJm0JVZj73wPzUigfj4/GuOW97zSa9/U.hmRavdQxsBBox5yxOmei"], ["updated_at", Wed, 17 Jul 2013 14:23: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.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", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 360], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 14:23:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hy5G9yHNqVpoeU4v3qJz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 360, "created_at" = '2013-07-17 14:23:49.133309', "updated_at" = '2013-07-17 14:23:49.133309', "authentication_token" = 'hy5G9yHNqVpoeU4v3qJz' WHERE "public"."cadenero_accounts"."id" = 279  (0.5ms) 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", 279], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["user_id", 360]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LypBDnbML1tM76vrjDK7' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 279, "user_id" = 360, "created_at" = '2013-07-17 14:23:49.141819', "updated_at" = '2013-07-17 14:23:49.141819', "auth_token" = 'LypBDnbML1tM76vrjDK7' WHERE "public"."cadenero_members"."id" = 360  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (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")  (7.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))  (7.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")  (5.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23:49 -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.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 279 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" = 360 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 360 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 360 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 360 Completed 201 Created in 256ms (Views: 7.6ms | 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' LIMIT 1 Cadenero::Member Load (4.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 279 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"360", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 360 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23: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/users" for 127.0.0.1 at 2013-07-17 09:23:49 -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" = 'test7' 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", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$MYPTJr04Sd2U/II0HQJHeuHAAgj/euyQ7cA0KF7JTchB2bzDQMyWC"], ["updated_at", Wed, 17 Jul 2013 14:23:49 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", 279], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:49 UTC +00:00], ["user_id", 361]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7kQQP6z6rdoRxXyVWst1' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 279, "user_id" = 361, "created_at" = '2013-07-17 14:23:49.803057', "updated_at" = '2013-07-17 14:23:49.803057', "auth_token" = '7kQQP6z6rdoRxXyVWst1' WHERE "public"."cadenero_members"."id" = 361  (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" = 361 LIMIT 1 Cadenero::Member Load (12.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 361 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 361 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 361 Completed 201 Created in 272ms (Views: 11.6ms | ActiveRecord: 17.5ms) Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/361" for 127.0.0.1 at 2013-07-17 09:23:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"361"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.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" = 279 AND "public"."cadenero_users"."id" = 361 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 361 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 361 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 361 Cadenero::V1::Account Load (7.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" = 361 Completed 200 OK in 33ms (Views: 8.9ms | ActiveRecord: 10.3ms) Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23:49 -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" = 361 LIMIT 1 Cadenero::Member Load (5.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 361 Cadenero::V1::Account Load (16.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 361 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" = 361 Completed 201 Created in 58ms (Views: 16.4ms | ActiveRecord: 23.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  (22.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$DCa3AxdI2w8rdSZ0Eq5wk.ncQoNWaYTO/WlJSaKWJOsXzSmvOR06S"], ["updated_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (4.2ms) 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 362], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R6T1djC3ZMQx7Q9c5Jvd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 362, "created_at" = '2013-07-17 14:23:50.394580', "updated_at" = '2013-07-17 14:23:50.394580', "authentication_token" = 'R6T1djC3ZMQx7Q9c5Jvd' WHERE "public"."cadenero_accounts"."id" = 280  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.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", 280], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["user_id", 362]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MEazyUnfp1pts8twmEWx' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 280, "user_id" = 362, "created_at" = '2013-07-17 14:23:50.402660', "updated_at" = '2013-07-17 14:23:50.402660', "auth_token" = 'MEazyUnfp1pts8twmEWx' WHERE "public"."cadenero_members"."id" = 362  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test8"  (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")  (4.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, "auth_token" character varying(255))  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.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")  (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)  (4.2ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23: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.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@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 ('test8') LIMIT 1 Cadenero::User Load (6.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" = 280 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" = 362 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 362 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 362 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" = 362 Completed 201 Created in 159ms (Views: 10.2ms | ActiveRecord: 14.7ms) Cadenero::V1::Account Load (8.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 280 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23:50 -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" = 362 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (7.4ms) ROLLBACK  (1.2ms) BEGIN  (5.4ms) COMMIT  (0.7ms) 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", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$f05.bXeFCWl6y3M8XUm43uaGOlFkTjjrOj0IRkY7bPxwPhdQ6I0BW"], ["updated_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00]]  (9.5ms) RELEASE SAVEPOINT active_record_1  (3.3ms) 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 (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", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 363], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ggzsi9JRqwig5tgZDxvK' LIMIT 1  (2.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 363, "created_at" = '2013-07-17 14:23:50.942036', "updated_at" = '2013-07-17 14:23:50.942036', "authentication_token" = 'Ggzsi9JRqwig5tgZDxvK' WHERE "public"."cadenero_accounts"."id" = 281  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", 281], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:50 UTC +00:00], ["user_id", 363]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XUWVGESX5gaxd1io97f6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 281, "user_id" = 363, "created_at" = '2013-07-17 14:23:50.957014', "updated_at" = '2013-07-17 14:23:50.957014', "auth_token" = 'XUWVGESX5gaxd1io97f6' WHERE "public"."cadenero_members"."id" = 363  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test9"  (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.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, "auth_token" character varying(255))   (8.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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")  (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.4ms) 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"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:23: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (2.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" = 281 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 (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$5aMpLlGBhoOBUmeX25Ps6uqIb8z8GjiCVdiyPTinX/4/WefJzyqRa"], ["updated_at", Wed, 17 Jul 2013 14:23: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" = 'test10' 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", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 364], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00]] Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '42qujnCQZdW2k4zeyZ2W' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 364, "created_at" = '2013-07-17 14:23:51.220062', "updated_at" = '2013-07-17 14:23:51.220062', "authentication_token" = '42qujnCQZdW2k4zeyZ2W' WHERE "public"."cadenero_accounts"."id" = 282  (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", 282], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["user_id", 364]] Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ieXAmEx4q9b9Zw92zZ9y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 282, "user_id" = 364, "created_at" = '2013-07-17 14:23:51.238135', "updated_at" = '2013-07-17 14:23:51.238135', "auth_token" = 'ieXAmEx4q9b9Zw92zZ9y' WHERE "public"."cadenero_members"."id" = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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.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")  (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, "auth_token" character varying(255))  (20.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.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")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$1aw3yhKjV8ec7VxDsei/bOuLtgQdWVuB/bsBLmFkaX3XSsXMfdbfK"], ["updated_at", Wed, 17 Jul 2013 14:23: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" = '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", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 365], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gx8343z2r9HAW8WaAqPB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 365, "created_at" = '2013-07-17 14:23:51.518445', "updated_at" = '2013-07-17 14:23:51.518445', "authentication_token" = 'Gx8343z2r9HAW8WaAqPB' WHERE "public"."cadenero_accounts"."id" = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 283], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["user_id", 365]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KZQKnJq41qxF24YMjj5J' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 283, "user_id" = 365, "created_at" = '2013-07-17 14:23:51.524002', "updated_at" = '2013-07-17 14:23:51.524002', "auth_token" = 'KZQKnJq41qxF24YMjj5J' WHERE "public"."cadenero_members"."id" = 365  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23: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-17 09:23:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@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 ('test10') LIMIT 1 Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 282 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 7.3ms) Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.0ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.4ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$oaLmWnYPADlceZlV49PH4ebsq57R3GD0capzb5v5.yzd7DLgvT/8u"], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (10.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.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", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 366], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ccpKzscdQjWnrCo28EfT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 366, "created_at" = '2013-07-17 14:23:51.791103', "updated_at" = '2013-07-17 14:23:51.791103', "authentication_token" = 'ccpKzscdQjWnrCo28EfT' WHERE "public"."cadenero_accounts"."id" = 284  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (9.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", 284], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:51 UTC +00:00], ["user_id", 366]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DLZSgcxrY3VLbNzRLLGA' LIMIT 1  (2.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 284, "user_id" = 366, "created_at" = '2013-07-17 14:23:51.798165', "updated_at" = '2013-07-17 14:23:51.798165', "auth_token" = 'DLZSgcxrY3VLbNzRLLGA' WHERE "public"."cadenero_members"."id" = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (17.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.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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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')  (2.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/sessions" for 127.0.0.1 at 2013-07-17 09:23:51 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.2ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$bdlN/6UsGYMnhZdXzqg.XuwOAxbSoryNiVHQhVdasXlsG6JDkq7yW"], ["updated_at", Wed, 17 Jul 2013 14:23:52 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" = 'test13' 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", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 367], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xz1GJjt4Hq226EdgpiX4' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 367, "created_at" = '2013-07-17 14:23:52.022400', "updated_at" = '2013-07-17 14:23:52.022400', "authentication_token" = 'xz1GJjt4Hq226EdgpiX4' WHERE "public"."cadenero_accounts"."id" = 285  (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", 285], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["user_id", 367]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'd21qQ5Cq1Yk5pP1DbA5t' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 285, "user_id" = 367, "created_at" = '2013-07-17 14:23:52.029205', "updated_at" = '2013-07-17 14:23:52.029205', "auth_token" = 'd21qQ5Cq1Yk5pP1DbA5t' WHERE "public"."cadenero_members"."id" = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.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.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.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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:23: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-17 09:23:52 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') 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" = 285 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (15.5ms) ROLLBACK  (0.1ms) BEGIN  (1.4ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (2.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$HLD21mleJFnM6E8XQ1zeB.KISTFVYinYYdcuNTkXtKOJ/KAV9kqpi"], ["updated_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["name", "Test Account"], ["owner_id", 368], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2iZmpYwMJ5YmwUNfsFsi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 368, "created_at" = '2013-07-17 14:23:52.464268', "updated_at" = '2013-07-17 14:23:52.464268', "authentication_token" = '2iZmpYwMJ5YmwUNfsFsi' WHERE "public"."cadenero_accounts"."id" = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 286], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["user_id", 368]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gZBvSc5sLBzn5xAzpHhC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 286, "user_id" = 368, "created_at" = '2013-07-17 14:23:52.470174', "updated_at" = '2013-07-17 14:23:52.470174', "auth_token" = 'gZBvSc5sLBzn5xAzpHhC' WHERE "public"."cadenero_members"."id" = 368  (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)  (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 286 LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_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", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:23:52 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nRgvAmdjMbNLpCrmSyTL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 14:23:52.887546', "updated_at" = '2013-07-17 14:23:52.887546', "auth_token" = 'nRgvAmdjMbNLpCrmSyTL' WHERE "public"."cadenero_members"."id" = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (20.4ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 54ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:26:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$v3WVzGAybnoRRBKgnXa7gOngcanFJRX5Z/F2wsP3gyXubqQFxwkcu"], ["updated_at", Wed, 17 Jul 2013 14:26:53 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.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", Wed, 17 Jul 2013 14:26:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 369], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 14:26:53 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '52LB1DDSou1ShVfPMHHV' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 369, "created_at" = '2013-07-17 14:26:53.718664', "updated_at" = '2013-07-17 14:26:53.718664', "authentication_token" = '52LB1DDSou1ShVfPMHHV' WHERE "public"."cadenero_accounts"."id" = 287  (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", 287], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:53 UTC +00:00], ["user_id", 369]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LfwszaywQd3pgiTYHku6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 287, "user_id" = 369, "created_at" = '2013-07-17 14:26:53.821460', "updated_at" = '2013-07-17 14:26:53.821460', "auth_token" = 'LfwszaywQd3pgiTYHku6' WHERE "public"."cadenero_members"."id" = 370  (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)   (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.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.7ms) 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.6ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:26: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 (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", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DIcWnmJeePix2elU/RABve65pVMLpIdCAuRZrfjgdgLGiWPr1J9jG"], ["updated_at", Wed, 17 Jul 2013 14:26:54 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", 287], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["user_id", 370]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NdZ6MwjyzcyH2s25UpeX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 287, "user_id" = 370, "created_at" = '2013-07-17 14:26:54.057703', "updated_at" = '2013-07-17 14:26:54.057703', "auth_token" = 'NdZ6MwjyzcyH2s25UpeX' WHERE "public"."cadenero_members"."id" = 371  (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" = 370 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 370 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 370 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" = 370 Completed 201 Created in 160ms (Views: 38.2ms | 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/370" for 127.0.0.1 at 2013-07-17 09:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"370"} 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" = 287 AND "public"."cadenero_users"."id" = 370 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 370 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 370 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 370 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 370 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.7ms)  (7.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$zoiKTbMplzUyeNmOPYP2HeIKnM0oBJqobK1mcN25AtO21r3qERydm"], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 371], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MZxvmF39qzysMzMKzmsB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 371, "created_at" = '2013-07-17 14:26:54.254209', "updated_at" = '2013-07-17 14:26:54.254209', "authentication_token" = 'MZxvmF39qzysMzMKzmsB' WHERE "public"."cadenero_accounts"."id" = 288  (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", 288], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["user_id", 371]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gidDArf1DYfVuvzr8jeN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 288, "user_id" = 371, "created_at" = '2013-07-17 14:26:54.260393', "updated_at" = '2013-07-17 14:26:54.260393', "auth_token" = 'gidDArf1DYfVuvzr8jeN' WHERE "public"."cadenero_members"."id" = 372  (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)   (8.5ms) 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")  (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, "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")  (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)  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:26: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  (1.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", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$j7LkL/NgEqu8sDDpwOMB1uCnWe.wHdkUErLhILv9HCqGf5i/34Gca"], ["updated_at", Wed, 17 Jul 2013 14:26: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", 288], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["user_id", 372]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DDYDxpB8u8nSmu76iiiF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 288, "user_id" = 372, "created_at" = '2013-07-17 14:26:54.461382', "updated_at" = '2013-07-17 14:26:54.461382', "auth_token" = 'DDYDxpB8u8nSmu76iiiF' WHERE "public"."cadenero_members"."id" = 373  (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" = 372 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 372 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 372 Completed 201 Created in 123ms (Views: 7.1ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/372" for 127.0.0.1 at 2013-07-17 09:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"372"} 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" = 288 AND "public"."cadenero_users"."id" = 372 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 372 Cadenero::V1::Account Load (0.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" = 372 Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.7ms) 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", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 372], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Z2F6YaG1mCxyn3raHGUd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 372, "created_at" = '2013-07-17 14:26:54.494833', "updated_at" = '2013-07-17 14:26:54.494833', "authentication_token" = 'Z2F6YaG1mCxyn3raHGUd' WHERE "public"."cadenero_accounts"."id" = 289  (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", 289], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["user_id", 372]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YtYzpuZxwgATiJL9WRUp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 289, "user_id" = 372, "created_at" = '2013-07-17 14:26:54.500859', "updated_at" = '2013-07-17 14:26:54.500859', "auth_token" = 'YtYzpuZxwgATiJL9WRUp' WHERE "public"."cadenero_members"."id" = 374  (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)   (0.9ms) 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")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:26: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" = '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", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$G9n1MeWjEvIyJph.3w5Sm.0NMBTf7up9kCAyaUpkdxaou5bpzcgMe"], ["updated_at", Wed, 17 Jul 2013 14:26:54 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", 289], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["user_id", 373]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DzVXvpeYbkvJeCeeik8N' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 289, "user_id" = 373, "created_at" = '2013-07-17 14:26:54.671419', "updated_at" = '2013-07-17 14:26:54.671419', "auth_token" = 'DzVXvpeYbkvJeCeeik8N' WHERE "public"."cadenero_members"."id" = 375  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 373 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 373 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 373 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 373 Completed 201 Created in 121ms (Views: 6.4ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/373" for 127.0.0.1 at 2013-07-17 09:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"373"} 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" = 289 AND "public"."cadenero_users"."id" = 373 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 373 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 373 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 373 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 373 Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 1.8ms) Started GET "/v1/users/372" for 127.0.0.1 at 2013-07-17 09:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"372"} 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" = 288 AND "public"."cadenero_users"."id" = 372 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 372 Cadenero::V1::Account Load (0.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" = 372 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 09:26:54 -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.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 288 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 372 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 372 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 371 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 371 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" = 371 Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 2.6ms)  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:26:54 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" = 'ctY18aKnjzU6DxSW8qh3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 14:26:54.892837', "updated_at" = '2013-07-17 14:26:54.892837', "auth_token" = 'ctY18aKnjzU6DxSW8qh3' WHERE "public"."cadenero_members"."id" = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$G2wsDn5vgFq4J2vv64dAvey3Xqu5PaZbiTTrwiuHFJ5Uv/AhUvweO"], ["updated_at", Wed, 17 Jul 2013 14:27: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" = '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", Wed, 17 Jul 2013 14:27:02 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 374], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 14:27:02 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'exsjSb8GVWkJsdJSwsV1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 374, "created_at" = '2013-07-17 14:27:02.976073', "updated_at" = '2013-07-17 14:27:02.976073', "authentication_token" = 'exsjSb8GVWkJsdJSwsV1' WHERE "public"."cadenero_accounts"."id" = 290  (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", 290], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:02 UTC +00:00], ["user_id", 374]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NsAsjCgpBGfJeMZuCEq8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 290, "user_id" = 374, "created_at" = '2013-07-17 14:27:02.982895', "updated_at" = '2013-07-17 14:27:02.982895', "auth_token" = 'NsAsjCgpBGfJeMZuCEq8' WHERE "public"."cadenero_members"."id" = 377  (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", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$UyotWP5xI40YsAop8TYrue6faRFGjrAAZfqJWZKZA2fAOqsvKtQze"], ["updated_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$4VR2fHsi7y6VD5KsGDj4se01UjsNnHc.HfPSMnss4wT76ZKrzlxai"], ["updated_at", Wed, 17 Jul 2013 14:27:03 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["name", "Root"], ["owner_id", 376], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g7BUMywxxQperCpbZpGs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 376, "created_at" = '2013-07-17 14:27:03.192240', "updated_at" = '2013-07-17 14:27:03.192240', "authentication_token" = 'g7BUMywxxQperCpbZpGs' WHERE "public"."cadenero_accounts"."id" = 291  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 291], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["user_id", 376]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BKnxUnvnF8sp3wknK8v1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 291, "user_id" = 376, "created_at" = '2013-07-17 14:27:03.197560', "updated_at" = '2013-07-17 14:27:03.197560', "auth_token" = 'BKnxUnvnF8sp3wknK8v1' WHERE "public"."cadenero_members"."id" = 378  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) 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.7ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Os8Mb46S2dJ4ePtTMND9r.S1fhJ37HVltNK.018jueUT6gnHgzq1u"], ["updated_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (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", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 377], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yDxMyBxcaQyBKhd6XyxE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 377, "created_at" = '2013-07-17 14:27:03.827760', "updated_at" = '2013-07-17 14:27:03.827760', "authentication_token" = 'yDxMyBxcaQyBKhd6XyxE' WHERE "public"."cadenero_accounts"."id" = 292  (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", 292], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:03 UTC +00:00], ["user_id", 377]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YzpUEoEy2Hq993GMrWP2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 292, "user_id" = 377, "created_at" = '2013-07-17 14:27:03.833915', "updated_at" = '2013-07-17 14:27:03.833915', "auth_token" = 'YzpUEoEy2Hq993GMrWP2' WHERE "public"."cadenero_members"."id" = 379  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (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)  (1.0ms) 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')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27: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 ('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" = 292 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" = 377 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 377 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 377 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 377 Completed 201 Created in 109ms (Views: 5.5ms | 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" = 292 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27:04 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"377", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 377 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 09:27:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$AAgwZ9EXgMRk/eiwRDLKW.e9eJe62dtchjR.cx8htCjSI7Tw5BcCS"], ["updated_at", Wed, 17 Jul 2013 14:27:04 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", 292], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["user_id", 378]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2ixoyupsGjoXE1JZeRHz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 292, "user_id" = 378, "created_at" = '2013-07-17 14:27:04.129737', "updated_at" = '2013-07-17 14:27:04.129737', "auth_token" = '2ixoyupsGjoXE1JZeRHz' WHERE "public"."cadenero_members"."id" = 380  (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" = 378 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 378 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 378 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 378 Completed 201 Created in 116ms (Views: 5.7ms | 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/378" for 127.0.0.1 at 2013-07-17 09:27:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"378"} 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.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" = 292 AND "public"."cadenero_users"."id" = 378 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 378 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 378 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 378 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 378 Completed 200 OK in 15ms (Views: 6.7ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27: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" = 378 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 378 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 378 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 378 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$0XTHir5e4yJ9xUgA4KdevOz3Ymvyt4apbuhVJnMUzJhbxG5cVJdUW"], ["updated_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 379], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ne9ogxdRRVJmxnkVzbYV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 379, "created_at" = '2013-07-17 14:27:04.292601', "updated_at" = '2013-07-17 14:27:04.292601', "authentication_token" = 'Ne9ogxdRRVJmxnkVzbYV' WHERE "public"."cadenero_accounts"."id" = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 293], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["user_id", 379]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wswrufuqTaNhPzYzqV9p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 293, "user_id" = 379, "created_at" = '2013-07-17 14:27:04.299272', "updated_at" = '2013-07-17 14:27:04.299272', "auth_token" = 'wswrufuqTaNhPzYzqV9p' WHERE "public"."cadenero_members"."id" = 381  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27: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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 293 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" = 379 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 379 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 379 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 379 Completed 201 Created in 221ms (Views: 5.5ms | ActiveRecord: 2.0ms) Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 293 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27:04 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"379", "default"=>:json} Cadenero::User Load (12.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 379 LIMIT 1 Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 12.9ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27: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)  (29.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (9.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", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$fawr/L5pcEpz81UnM8MbsO.4V7Ah3Ufk.aZ7rUg1m8IOEez80wxSa"], ["updated_at", Wed, 17 Jul 2013 14:27:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (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", Wed, 17 Jul 2013 14:27:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 380], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 14: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" = 'N3JTFNUGaVpsCcYnzvZC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 380, "created_at" = '2013-07-17 14:27:04.967256', "updated_at" = '2013-07-17 14:27:04.967256', "authentication_token" = 'N3JTFNUGaVpsCcYnzvZC' WHERE "public"."cadenero_accounts"."id" = 294  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 294], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["user_id", 380]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tHUFUPqeuq8d5rkspcNf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 294, "user_id" = 380, "created_at" = '2013-07-17 14:27:05.003111', "updated_at" = '2013-07-17 14:27:05.003111', "auth_token" = 'tHUFUPqeuq8d5rkspcNf' WHERE "public"."cadenero_members"."id" = 382  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test7"  (22.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.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")  (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")  (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")  (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)   (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 380 LIMIT 1 Cadenero::Member Load (5.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 380 Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 380 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" = 380 Completed 201 Created in 296ms (Views: 17.1ms | ActiveRecord: 12.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 294 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27:05 -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" = 380 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (17.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$K5270Bsq4sOT2wMuA0GJMO6u1g6xFsd7Giwmb34.vQXaMY1/QYo3e"], ["updated_at", Wed, 17 Jul 2013 14:27: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" = '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", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 381], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aYpyT8qsGvjyhhiQwpdQ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 381, "created_at" = '2013-07-17 14:27:05.627842', "updated_at" = '2013-07-17 14:27:05.627842', "authentication_token" = 'aYpyT8qsGvjyhhiQwpdQ' WHERE "public"."cadenero_accounts"."id" = 295  (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", 295], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["user_id", 381]] Cadenero::Member Load (5.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rzx9poU4MzS3QNLRTRWZ' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 295, "user_id" = 381, "created_at" = '2013-07-17 14:27:05.637748', "updated_at" = '2013-07-17 14:27:05.637748', "auth_token" = 'rzx9poU4MzS3QNLRTRWZ' WHERE "public"."cadenero_members"."id" = 383  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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.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")  (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))   (4.0ms) 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.9ms) 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)   (5.1ms) 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 ('20130715174857')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.5ms) 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-17 09:27: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-17 09:27: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 (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (2.1ms) 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", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Sbqpk6keZBxRmE7zaO.nk.1U7BfiYRKDfAV569pkCA5BPwUfUthNi"], ["updated_at", Wed, 17 Jul 2013 14:27:05 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", 295], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:05 UTC +00:00], ["user_id", 382]] Cadenero::Member Load (6.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JH3jxCoWF2WgSaby3yqL' LIMIT 1  (2.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 295, "user_id" = 382, "created_at" = '2013-07-17 14:27:05.910885', "updated_at" = '2013-07-17 14:27:05.910885', "auth_token" = 'JH3jxCoWF2WgSaby3yqL' WHERE "public"."cadenero_members"."id" = 384  (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" = 382 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 382 Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 382 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" = 382 Completed 201 Created in 176ms (Views: 6.1ms | ActiveRecord: 24.9ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/382" for 127.0.0.1 at 2013-07-17 09:27:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"382"} 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" = 295 AND "public"."cadenero_users"."id" = 382 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 382 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 382 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 382 Cadenero::V1::Account Load (6.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 382 Completed 200 OK in 20ms (Views: 9.3ms | ActiveRecord: 7.7ms) Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27: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.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 382 LIMIT 1 Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 382 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 382 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" = 382 Completed 201 Created in 14ms (Views: 5.2ms | 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" for 127.0.0.1 at 2013-07-17 09:27:05 -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" = 382 LIMIT 1 Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.4ms)  (10.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$LzyDHd2O5/ZhUeeJOpL3QuQ9PggLAlfedidjquJqdjnrI9Xf10kam"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]]  (1.2ms) 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" = 'test9' 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", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 383], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ETYszLkZyoYksMZoW4Me' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 383, "created_at" = '2013-07-17 14:27:06.224232', "updated_at" = '2013-07-17 14:27:06.224232', "authentication_token" = 'ETYszLkZyoYksMZoW4Me' WHERE "public"."cadenero_accounts"."id" = 296  (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", 296], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["user_id", 383]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qqVA73omQEsJbNPSk3JY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 296, "user_id" = 383, "created_at" = '2013-07-17 14:27:06.237063', "updated_at" = '2013-07-17 14:27:06.237063', "auth_token" = 'qqVA73omQEsJbNPSk3JY' WHERE "public"."cadenero_members"."id" = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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)   (5.4ms) 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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.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")  (2.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)  (2.1ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 09:27:06 -0500 Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.8ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$omSr7/ryH6SUEV9I.jatJO5kBFMziNO7gqcbZuZ0cYEinAzKYjQ86"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]]  (2.5ms) 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" = '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", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 384], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CD5fpcp69b1kkueKLxv7' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 384, "created_at" = '2013-07-17 14:27:06.542783', "updated_at" = '2013-07-17 14:27:06.542783', "authentication_token" = 'CD5fpcp69b1kkueKLxv7' WHERE "public"."cadenero_accounts"."id" = 297  (1.9ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 SQL (3.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", 297], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["user_id", 384]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vzwbz59uWkWkGNwe17Rz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 297, "user_id" = 384, "created_at" = '2013-07-17 14:27:06.558142', "updated_at" = '2013-07-17 14:27:06.558142', "auth_token" = 'vzwbz59uWkWkGNwe17Rz' WHERE "public"."cadenero_members"."id" = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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)  (4.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")  (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, "auth_token" character varying(255))   (1.6ms) 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")  (4.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)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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')  (4.4ms) 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", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$JktMKp7JT7Ct2sWAgb9DluL81dYZNfThsR8gKIOuSf8I/eFhMPNEq"], ["updated_at", Wed, 17 Jul 2013 14:27: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.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", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 385], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]] Cadenero::V1::Account Load (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CyQ6SP1oVynbMz2vsb9U' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 385, "created_at" = '2013-07-17 14:27:06.800245', "updated_at" = '2013-07-17 14:27:06.800245', "authentication_token" = 'CyQ6SP1oVynbMz2vsb9U' WHERE "public"."cadenero_accounts"."id" = 298  (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", 298], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["user_id", 385]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sNbqmPYADzyggxxmdnPb' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 298, "user_id" = 385, "created_at" = '2013-07-17 14:27:06.814339', "updated_at" = '2013-07-17 14:27:06.814339', "auth_token" = 'sNbqmPYADzyggxxmdnPb' WHERE "public"."cadenero_members"."id" = 387  (2.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27: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-17 09:27:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 297 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$SppNJ/g9qtVBbNxOxt1oR.PfWivMWjqCyGEOZhPigFMdFyiQ.RQcG"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 386], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bZukbwxXfRsc2RnWQoeJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 386, "created_at" = '2013-07-17 14:27:06.966861', "updated_at" = '2013-07-17 14:27:06.966861', "authentication_token" = 'bZukbwxXfRsc2RnWQoeJ' WHERE "public"."cadenero_accounts"."id" = 299  (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", 299], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:06 UTC +00:00], ["user_id", 386]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5rxHaMb4oCoyTvNqzQta' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 299, "user_id" = 386, "created_at" = '2013-07-17 14:27:06.972315', "updated_at" = '2013-07-17 14:27:06.972315', "auth_token" = '5rxHaMb4oCoyTvNqzQta' WHERE "public"."cadenero_members"."id" = 388  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (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")  (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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.9ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27: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-17 09:27: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 299 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$VHRP1EjuDRElepoKh.6FTegz6BclR4uaDPpHid2l0l9v0/Xs3kPei"], ["updated_at", Wed, 17 Jul 2013 14:27:07 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" = '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", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 387], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PQiPfisPyguVrydyqCWp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 387, "created_at" = '2013-07-17 14:27:07.196466', "updated_at" = '2013-07-17 14:27:07.196466', "authentication_token" = 'PQiPfisPyguVrydyqCWp' WHERE "public"."cadenero_accounts"."id" = 300  (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", 300], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["user_id", 387]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vxqmVfXAC3oKDFZQ4Jyu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 300, "user_id" = 387, "created_at" = '2013-07-17 14:27:07.204314', "updated_at" = '2013-07-17 14:27:07.204314', "auth_token" = 'vxqmVfXAC3oKDFZQ4Jyu' WHERE "public"."cadenero_members"."id" = 389  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (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)  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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.3ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 09:27: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-17 09:27: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 (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 300 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 5.1ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:27:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$XcLnSnsa8T2P4dB/TZn.MODYxxECtsgR8cG9Ti8EJEapjJXvwaqD6"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["name", "Testy"], ["owner_id", 388], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BAtb8Pm1MbsDyZQM1MSN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 388, "created_at" = '2013-07-17 14:27:07.490120', "updated_at" = '2013-07-17 14:27:07.490120', "authentication_token" = 'BAtb8Pm1MbsDyZQM1MSN' WHERE "public"."cadenero_accounts"."id" = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 301], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["user_id", 388]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rNnskDsbxjmSis5LbsoS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 301, "user_id" = 388, "created_at" = '2013-07-17 14:27:07.496054', "updated_at" = '2013-07-17 14:27:07.496054', "auth_token" = 'rNnskDsbxjmSis5LbsoS' WHERE "public"."cadenero_members"."id" = 390  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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")  (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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" != 301) LIMIT 1 Completed 201 Created in 190ms (Views: 2.0ms | ActiveRecord: 52.5ms) Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3SvlDLUzMW72umex/TYSc.fWa9.ttD4jIOw6bdcCl6rdgNrYJGQNG"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["name", "Testy"], ["owner_id", 389], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZBFdPu83fLcMTiDeu9D5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 389, "created_at" = '2013-07-17 14:27:07.724766', "updated_at" = '2013-07-17 14:27:07.724766', "authentication_token" = 'ZBFdPu83fLcMTiDeu9D5' WHERE "public"."cadenero_accounts"."id" = 302  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 09:27:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (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 112ms (Views: 0.4ms | 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$rLaNEFXeGS0JkD6LegMyw.g6YWbZW6XGuyNCZ7APtFhZHtE31vrcq"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["name", "Test Account"], ["owner_id", 390], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '91k9zvvWqCazUo6Qmum6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 390, "created_at" = '2013-07-17 14:27:07.950650', "updated_at" = '2013-07-17 14:27:07.950650', "authentication_token" = '91k9zvvWqCazUo6Qmum6' WHERE "public"."cadenero_accounts"."id" = 303  (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", 303], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 14:27:07 UTC +00:00], ["user_id", 390]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zdyB6VKGXWsXoU16vpLh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 303, "user_id" = 390, "created_at" = '2013-07-17 14:27:07.962020', "updated_at" = '2013-07-17 14:27:07.962020', "auth_token" = 'zdyB6VKGXWsXoU16vpLh' WHERE "public"."cadenero_members"."id" = 391  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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")  (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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.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.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" = 303 LIMIT 1  (7.3ms) ROLLBACK  (1.8ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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 Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (15.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XM0NBMbSDloU9IvuBfHDO.mbBC2e2d8GYbyHg3Xfn.NZq2Q0kywO2"], ["updated_at", Wed, 17 Jul 2013 18:58:28 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 (3.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", Wed, 17 Jul 2013 18:58:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 391], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 18:58:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8R37F5oYnKp7wQpyRJwC' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 391, "created_at" = '2013-07-17 18:58:28.566034', "updated_at" = '2013-07-17 18:58:28.566034', "authentication_token" = '8R37F5oYnKp7wQpyRJwC' WHERE "public"."cadenero_accounts"."id" = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.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", 304], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:28 UTC +00:00], ["user_id", 391]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iyyfPxzEkjyshfpqPfwT' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 304, "user_id" = 391, "created_at" = '2013-07-17 18:58:28.684925', "updated_at" = '2013-07-17 18:58:28.684925', "auth_token" = 'iyyfPxzEkjyshfpqPfwT' WHERE "public"."cadenero_members"."id" = 392  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) CREATE SCHEMA "test1"  (24.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")  (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))  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:28 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 304 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" = 391 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 391 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 391 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" = 391 Completed 201 Created in 140ms (Views: 29.2ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 304 Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58:29 -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" = 391 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$42vEbg5aGNe/S0O7tE8d4e8an9nFBTM3UVVaItCVeW5gYScyMFb1i"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 392], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2bvrxf42fcb6siyXtLzG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 392, "created_at" = '2013-07-17 18:58:29.138358', "updated_at" = '2013-07-17 18:58:29.138358', "authentication_token" = '2bvrxf42fcb6siyXtLzG' WHERE "public"."cadenero_accounts"."id" = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 305], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["user_id", 392]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZBJeP7HvhfdvqrNbXJJP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 305, "user_id" = 392, "created_at" = '2013-07-17 18:58:29.143981', "updated_at" = '2013-07-17 18:58:29.143981', "auth_token" = 'ZBJeP7HvhfdvqrNbXJJP' WHERE "public"."cadenero_members"."id" = 393  (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)  (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, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 305 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" = 392 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 392 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 392 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 392 Completed 201 Created in 107ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 305 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"392", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 392 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58: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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$M8Tv9aHj1XgDx8wiIV8NCe8hW2xgt534.MvQeryyGNqSlAX4H.hBG"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 393], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wp8YZFQUpHaszGFZfewM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 393, "created_at" = '2013-07-17 18:58:29.427774', "updated_at" = '2013-07-17 18:58:29.427774', "authentication_token" = 'Wp8YZFQUpHaszGFZfewM' WHERE "public"."cadenero_accounts"."id" = 306  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 306], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["user_id", 393]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AEALods2g4bs6D4UAUf4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 306, "user_id" = 393, "created_at" = '2013-07-17 18:58:29.433313', "updated_at" = '2013-07-17 18:58:29.433313', "auth_token" = 'AEALods2g4bs6D4UAUf4' WHERE "public"."cadenero_members"."id" = 394  (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")  (3.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.9ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58: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.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$7sNpLyEPEMXuOUCLMAR9D.D4GDcJ.wvrevlNptNLelKwjgSOqtL2u"], ["updated_at", Wed, 17 Jul 2013 18:58:29 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", 306], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["user_id", 394]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rZpTa3VVYZbQf8zLeeim' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 306, "user_id" = 394, "created_at" = '2013-07-17 18:58:29.592075', "updated_at" = '2013-07-17 18:58:29.592075', "auth_token" = 'rZpTa3VVYZbQf8zLeeim' WHERE "public"."cadenero_members"."id" = 395  (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" = 394 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 394 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 394 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 394 Completed 201 Created in 116ms (Views: 6.1ms | 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/394" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"394"} 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" = 306 AND "public"."cadenero_users"."id" = 394 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 394 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 394 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 394 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 394 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:29 -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" = 394 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 394 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 394 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 394 Completed 201 Created in 8ms (Views: 4.9ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58:29 -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" = 394 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$kHLAquapyYU2X4C/n5ispeJ1GX2aUfiQ5nYH.V1FQBJAfhfxuASMa"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 395], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'o1RDX7eepAGmTsHQqjCa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 395, "created_at" = '2013-07-17 18:58:29.751774', "updated_at" = '2013-07-17 18:58:29.751774', "authentication_token" = 'o1RDX7eepAGmTsHQqjCa' WHERE "public"."cadenero_accounts"."id" = 307  (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", 307], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:29 UTC +00:00], ["user_id", 395]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xfwn2i4NFjZyprpyLLsW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 307, "user_id" = 395, "created_at" = '2013-07-17 18:58:29.757376', "updated_at" = '2013-07-17 18:58:29.757376', "auth_token" = 'xfwn2i4NFjZyprpyLLsW' WHERE "public"."cadenero_members"."id" = 396  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.9ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 307 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 395 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 395 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 395 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 395 Completed 201 Created in 107ms (Views: 5.7ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 307 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"395", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 395 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:58:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$a/BTvKVwKOVU2jvbwZ8pd.YOtGkzKjwm37zWzfu5B9eFbDPHj19Le"], ["updated_at", Wed, 17 Jul 2013 18:58:30 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", 307], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["user_id", 396]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8DS7cJFPaYEu4PU6xTbW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 307, "user_id" = 396, "created_at" = '2013-07-17 18:58:30.033982', "updated_at" = '2013-07-17 18:58:30.033982', "auth_token" = '8DS7cJFPaYEu4PU6xTbW' WHERE "public"."cadenero_members"."id" = 397  (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" = 396 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 396 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 396 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" = 396 Completed 201 Created in 164ms (Views: 54.6ms | 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/396" for 127.0.0.1 at 2013-07-17 13:58:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"396"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (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" = 307 AND "public"."cadenero_users"."id" = 396 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 396 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 396 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 396 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" = 396 Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 3.1ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 396 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 396 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 396 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 396 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  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$j7H14oKSwXfwnxr5vOWuCOknF6UfN7RX6G0olUwc..62dEygJ0yza"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 397], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kMkWn1sYri6XPsXneFyx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 397, "created_at" = '2013-07-17 18:58:30.238834', "updated_at" = '2013-07-17 18:58:30.238834', "authentication_token" = 'kMkWn1sYri6XPsXneFyx' WHERE "public"."cadenero_accounts"."id" = 308  (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", 308], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["user_id", 397]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EJzeY69paquHBEbGoUQL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 308, "user_id" = 397, "created_at" = '2013-07-17 18:58:30.244673', "updated_at" = '2013-07-17 18:58:30.244673', "auth_token" = 'EJzeY69paquHBEbGoUQL' WHERE "public"."cadenero_members"."id" = 398  (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")  (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.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.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58: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.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" = 308 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  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$MBlNLhL.i/tbm04TbfBA0Ovi3qfmGpNMtts.Bu1v5fuJyY.kJEPOe"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 398], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CqbCaW1hH8wQ6cKcbQ7T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 398, "created_at" = '2013-07-17 18:58:30.416969', "updated_at" = '2013-07-17 18:58:30.416969', "authentication_token" = 'CqbCaW1hH8wQ6cKcbQ7T' WHERE "public"."cadenero_accounts"."id" = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 309], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["user_id", 398]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'v3M72nyi3MQzxpLTFCzA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 309, "user_id" = 398, "created_at" = '2013-07-17 18:58:30.422460', "updated_at" = '2013-07-17 18:58:30.422460', "auth_token" = 'v3M72nyi3MQzxpLTFCzA' WHERE "public"."cadenero_members"."id" = 399  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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)   (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, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$au1fmTvEqoZ55BTfHo//Le2X7o24osCdYvacpWAXCsWEXd.tstssa"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 399], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LJtfPfe9xGTsyuvyViMq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 399, "created_at" = '2013-07-17 18:58:30.573336', "updated_at" = '2013-07-17 18:58:30.573336', "authentication_token" = 'LJtfPfe9xGTsyuvyViMq' WHERE "public"."cadenero_accounts"."id" = 310  (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", 310], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["user_id", 399]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gpXv6YbUKyzYJE9P47pA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 310, "user_id" = 399, "created_at" = '2013-07-17 18:58:30.582406', "updated_at" = '2013-07-17 18:58:30.582406', "auth_token" = 'gpXv6YbUKyzYJE9P47pA' WHERE "public"."cadenero_members"."id" = 400  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (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  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$BQaevkybyCEqBlv9YBKQkeaM6LpcYeHZ.l.TR9hVueGjIv84yRybq"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 400], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FpyMjcZ2xwaUb5sQk2Jf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 400, "created_at" = '2013-07-17 18:58:30.714944', "updated_at" = '2013-07-17 18:58:30.714944', "authentication_token" = 'FpyMjcZ2xwaUb5sQk2Jf' WHERE "public"."cadenero_accounts"."id" = 311  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 311], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["user_id", 400]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pz1ojhXjh57Vo7qCqDHR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 311, "user_id" = 400, "created_at" = '2013-07-17 18:58:30.720447', "updated_at" = '2013-07-17 18:58:30.720447', "auth_token" = 'pz1ojhXjh57Vo7qCqDHR' WHERE "public"."cadenero_members"."id" = 401  (0.1ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:58: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58: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 ('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" = 311 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$LWmp1tyvP8YY2gwPzam7/eo9T0xu8lx/D0D7G9D0FZ2LqEuvK4Yai"], ["updated_at", Wed, 17 Jul 2013 18:58:30 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", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 401], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uYmh1RZtd4pHuaxUsKzo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 401, "created_at" = '2013-07-17 18:58:30.888762', "updated_at" = '2013-07-17 18:58:30.888762', "authentication_token" = 'uYmh1RZtd4pHuaxUsKzo' WHERE "public"."cadenero_accounts"."id" = 312  (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", 312], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:30 UTC +00:00], ["user_id", 401]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Km631BqpTyz4KC8zpQye' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 312, "user_id" = 401, "created_at" = '2013-07-17 18:58:30.894526', "updated_at" = '2013-07-17 18:58:30.894526', "auth_token" = 'Km631BqpTyz4KC8zpQye' WHERE "public"."cadenero_members"."id" = 402  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:58:30 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$lV/n8V/bV9gPHPlzeq8vR.EJRfmRx4RfIFXzU7ayQVLLXGXWw19pu"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = '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", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 402], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wcTajPkSirkbvMh2s4yK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 402, "created_at" = '2013-07-17 18:58:31.496700', "updated_at" = '2013-07-17 18:58:31.496700', "authentication_token" = 'wcTajPkSirkbvMh2s4yK' WHERE "public"."cadenero_accounts"."id" = 313  (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", 313], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["user_id", 402]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'o18pXjCYLCGw7sPksRME' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 313, "user_id" = 402, "created_at" = '2013-07-17 18:58:31.502155', "updated_at" = '2013-07-17 18:58:31.502155', "auth_token" = 'o18pXjCYLCGw7sPksRME' WHERE "public"."cadenero_members"."id" = 403  (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.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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:58: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" = '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", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$351GX3mQhBmig3.TfLQOdetYjz.7DRUUdg3XHsjnNaqYZkbyAaXvu"], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 313], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["user_id", 403]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CAYuRutzDcj5bfbry5fz' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 313, "user_id" = 403, "created_at" = '2013-07-17 18:58:31.652193', "updated_at" = '2013-07-17 18:58:31.652193', "auth_token" = 'CAYuRutzDcj5bfbry5fz' WHERE "public"."cadenero_members"."id" = 404  (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" = 403 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 403 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 403 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 403 Completed 201 Created in 144ms (Views: 6.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/403" for 127.0.0.1 at 2013-07-17 13:58:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"403"} 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" = 313 AND "public"."cadenero_users"."id" = 403 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 403 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 403 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 403 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 403 Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 1.8ms)  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$mtMXzZ/2gnoJOLLeXkvFceyiZkos4JWgYvSaQt0k2JdIMARBKJ3y."], ["updated_at", Wed, 17 Jul 2013 18:58: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" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 404], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Xipf2tszF2CdQa2nxpt8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 404, "created_at" = '2013-07-17 18:58:31.822254', "updated_at" = '2013-07-17 18:58:31.822254', "authentication_token" = 'Xipf2tszF2CdQa2nxpt8' WHERE "public"."cadenero_accounts"."id" = 314  (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", 314], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["user_id", 404]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CsqT5VbHhveM9fLTqN5g' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 314, "user_id" = 404, "created_at" = '2013-07-17 18:58:31.828651', "updated_at" = '2013-07-17 18:58:31.828651', "auth_token" = 'CsqT5VbHhveM9fLTqN5g' WHERE "public"."cadenero_members"."id" = 405  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:58: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" = '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", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$z2syyLJN.Z4LXdqoVe4Be.GKTg5fGQDzDr9GO0LOqm0WLXaH23fAy"], ["updated_at", Wed, 17 Jul 2013 18:58: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", 314], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:31 UTC +00:00], ["user_id", 405]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cs7oJ68yZ5nzVqq5ryWx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 314, "user_id" = 405, "created_at" = '2013-07-17 18:58:31.979757', "updated_at" = '2013-07-17 18:58:31.979757', "auth_token" = 'cs7oJ68yZ5nzVqq5ryWx' WHERE "public"."cadenero_members"."id" = 406  (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" = 405 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 405 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 405 Completed 201 Created in 116ms (Views: 7.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/405" for 127.0.0.1 at 2013-07-17 13:58:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"405"} 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" = 314 AND "public"."cadenero_users"."id" = 405 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 405 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 405 Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 1.9ms) 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", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 405], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jk4QR7rXyTW68McfVZJ8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 405, "created_at" = '2013-07-17 18:58:32.016327', "updated_at" = '2013-07-17 18:58:32.016327', "authentication_token" = 'jk4QR7rXyTW68McfVZJ8' WHERE "public"."cadenero_accounts"."id" = 315  (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", 315], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["user_id", 405]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NTzi7jQzbqM1S7btxGyk' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 315, "user_id" = 405, "created_at" = '2013-07-17 18:58:32.022620', "updated_at" = '2013-07-17 18:58:32.022620', "auth_token" = 'NTzi7jQzbqM1S7btxGyk' WHERE "public"."cadenero_members"."id" = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (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")  (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, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (1.0ms) 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:58: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.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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tr5/Tfr5i6.cBvAEmjxOW.7.yl43vQuwZNrhtuNp0gggfOjxXhc12"], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00]] 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", 315], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["user_id", 406]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xiFicsh61gQ3Auseweza' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 315, "user_id" = 406, "created_at" = '2013-07-17 18:58:32.230562', "updated_at" = '2013-07-17 18:58:32.230562', "auth_token" = 'xiFicsh61gQ3Auseweza' WHERE "public"."cadenero_members"."id" = 408  (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" = 406 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 406 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 406 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" = 406 Completed 201 Created in 115ms (Views: 6.1ms | 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/406" for 127.0.0.1 at 2013-07-17 13:58:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"406"} 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" = 315 AND "public"."cadenero_users"."id" = 406 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 406 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 406 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 406 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 406 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) Started GET "/v1/users/405" for 127.0.0.1 at 2013-07-17 13:58:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"405"} 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" = 314 AND "public"."cadenero_users"."id" = 405 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 405 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 405 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.9ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 13:58: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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HfneAdK7idBr8Mpagl1wCOcyMkJAhNsDCuKM6UuB1IFliAUT.gHYu"], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["name", "Testy"], ["owner_id", 407], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9mEkoAKNPiBxPUS8Cqoh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 407, "created_at" = '2013-07-17 18:58:32.393964', "updated_at" = '2013-07-17 18:58:32.393964', "authentication_token" = '9mEkoAKNPiBxPUS8Cqoh' WHERE "public"."cadenero_accounts"."id" = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 316], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["user_id", 407]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ofyzyrZ2vF9RT4tU8QAA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 316, "user_id" = 407, "created_at" = '2013-07-17 18:58:32.399677', "updated_at" = '2013-07-17 18:58:32.399677', "auth_token" = 'ofyzyrZ2vF9RT4tU8QAA' WHERE "public"."cadenero_members"."id" = 409  (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")  (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))   (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.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" != 316) LIMIT 1 Completed 201 Created in 159ms (Views: 3.0ms | ActiveRecord: 34.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$pY4pu.YPkaPdI8.nogzcBemGtkA4UjExffNoy7r92eMBAMJsjU5/O"], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["name", "Testy"], ["owner_id", 408], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yawYs5RMqbQmLzNPoqNt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 408, "created_at" = '2013-07-17 18:58:32.562659', "updated_at" = '2013-07-17 18:58:32.562659', "authentication_token" = 'yawYs5RMqbQmLzNPoqNt' WHERE "public"."cadenero_accounts"."id" = 317  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 13:58: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.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 111ms (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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:32 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SjJkDJCvGQNgydbs6dyS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 18:58:32.791517', "updated_at" = '2013-07-17 18:58:32.791517', "auth_token" = 'SjJkDJCvGQNgydbs6dyS' WHERE "public"."cadenero_members"."id" = 410  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:58:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$97dzfwcqWlopR7loQzxkDeMmzgTnLnj0m5VXpyW8w4KuF.QTMfVRO"], ["updated_at", Wed, 17 Jul 2013 18:58:33 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:33 UTC +00:00], ["name", "Test Account"], ["owner_id", 409], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 18:58:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aW8kBxZz1ZrMT7wcSoGh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 409, "created_at" = '2013-07-17 18:58:33.109928', "updated_at" = '2013-07-17 18:58:33.109928', "authentication_token" = 'aW8kBxZz1ZrMT7wcSoGh' WHERE "public"."cadenero_accounts"."id" = 318  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 318], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:33 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:33 UTC +00:00], ["user_id", 409]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SRN5jFpDyvoLvAgyVsFm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 318, "user_id" = 409, "created_at" = '2013-07-17 18:58:33.115337', "updated_at" = '2013-07-17 18:58:33.115337', "auth_token" = 'SRN5jFpDyvoLvAgyVsFm' WHERE "public"."cadenero_members"."id" = 411  (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.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.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.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.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 ('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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 318 LIMIT 1  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.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", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$cCR2QQLDkUcDL/gIxdWxMuvLI34zSiznh.VDZn483Eby5OGG2IYRy"], ["updated_at", Wed, 17 Jul 2013 18:58: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" = 'test13' 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", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 410], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 18:58:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'T1pznxdFQKaxWAmnyXKx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 410, "created_at" = '2013-07-17 18:58:36.595659', "updated_at" = '2013-07-17 18:58:36.595659', "authentication_token" = 'T1pznxdFQKaxWAmnyXKx' WHERE "public"."cadenero_accounts"."id" = 319  (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", 319], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["user_id", 410]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5zFwCsRkss7sc3XduvYa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 319, "user_id" = 410, "created_at" = '2013-07-17 18:58:36.601911', "updated_at" = '2013-07-17 18:58:36.601911', "auth_token" = '5zFwCsRkss7sc3XduvYa' WHERE "public"."cadenero_members"."id" = 412  (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", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$BW3h2Ai0iNWJ2aF4cjwbr.Fl8vdzocS2QnVeSd63SblSEldtIk2IG"], ["updated_at", Wed, 17 Jul 2013 18:58:36 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", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$NOMXtm1ZJxRtzHmwJ8p9i.G/dSwcHXOBRbbrE.fEQRilzyE6y5FhS"], ["updated_at", Wed, 17 Jul 2013 18:58: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", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["name", "Root"], ["owner_id", 412], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 18:58:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EfKUen5gUDzNEnpmXkqR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 412, "created_at" = '2013-07-17 18:58:36.803311', "updated_at" = '2013-07-17 18:58:36.803311', "authentication_token" = 'EfKUen5gUDzNEnpmXkqR' WHERE "public"."cadenero_accounts"."id" = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 320], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:58:36 UTC +00:00], ["user_id", 412]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ingQNssWRC7Pym6XsXkv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 320, "user_id" = 412, "created_at" = '2013-07-17 18:58:36.808646', "updated_at" = '2013-07-17 18:58:36.808646', "auth_token" = 'ingQNssWRC7Pym6XsXkv' WHERE "public"."cadenero_members"."id" = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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.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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.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.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (2.0ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$QM70ABRarpxSnbXGV1uYqueKcbKLARiOSahqg7.jGh7WNg28CDmcG"], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 413], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sXsbtxxJNrsu7mjcRVdp' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 413, "created_at" = '2013-07-17 18:59:28.107192', "updated_at" = '2013-07-17 18:59:28.107192', "authentication_token" = 'sXsbtxxJNrsu7mjcRVdp' WHERE "public"."cadenero_accounts"."id" = 321  (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", 321], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["user_id", 413]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qYoFDbspPsiC8iFP2FBG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 321, "user_id" = 413, "created_at" = '2013-07-17 18:59:28.213412', "updated_at" = '2013-07-17 18:59:28.213412', "auth_token" = 'qYoFDbspPsiC8iFP2FBG' WHERE "public"."cadenero_members"."id" = 414  (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)   (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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")  (1.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:59: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 (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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5NVlo3wu/y8jwFGvKFyzdOlB21ZIQq6y/Qj5aQiVWCb2TMmQnw5zK"], ["updated_at", Wed, 17 Jul 2013 18:59:28 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", 321], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["user_id", 414]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bh9NGShfGP9dgYpuNeNW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 321, "user_id" = 414, "created_at" = '2013-07-17 18:59:28.411896', "updated_at" = '2013-07-17 18:59:28.411896', "auth_token" = 'bh9NGShfGP9dgYpuNeNW' WHERE "public"."cadenero_members"."id" = 415  (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" = 414 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 414 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 414 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" = 414 Completed 201 Created in 204ms (Views: 84.8ms | 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/414" for 127.0.0.1 at 2013-07-17 13:59:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"414"} 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" = 321 AND "public"."cadenero_users"."id" = 414 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 414 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 414 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 414 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" = 414 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.8ms)  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$5TmAmwN4YwNu6AWLQAqrWe/OuFxNmExUJaZiPweJakHXSiAp4Pz7u"], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 415], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nh1zE53zjvJ31CkDWdTr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 415, "created_at" = '2013-07-17 18:59:28.657954', "updated_at" = '2013-07-17 18:59:28.657954', "authentication_token" = 'nh1zE53zjvJ31CkDWdTr' WHERE "public"."cadenero_accounts"."id" = 322  (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", 322], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["user_id", 415]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6eR7LWx2YpnXisxe9Ypf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 322, "user_id" = 415, "created_at" = '2013-07-17 18:59:28.664082', "updated_at" = '2013-07-17 18:59:28.664082', "auth_token" = '6eR7LWx2YpnXisxe9Ypf' WHERE "public"."cadenero_members"."id" = 416  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:59: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 (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", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$msING.h/P6Nm9zr0UvXS7eEot4/ABGQ5ZIuNRp4mOqeajsaNO80fS"], ["updated_at", Wed, 17 Jul 2013 18:59:28 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", 322], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["user_id", 416]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Uui1ZzSY1hpizvzS3NNt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 322, "user_id" = 416, "created_at" = '2013-07-17 18:59:28.817577', "updated_at" = '2013-07-17 18:59:28.817577', "auth_token" = 'Uui1ZzSY1hpizvzS3NNt' WHERE "public"."cadenero_members"."id" = 417  (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" = 416 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 416 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 416 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 416 Completed 201 Created in 116ms (Views: 6.1ms | 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/416" for 127.0.0.1 at 2013-07-17 13:59:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"416"} 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" = 322 AND "public"."cadenero_users"."id" = 416 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 416 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 416 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 416 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" = 416 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 416], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qviT24BAqzBiuysfQDpe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 416, "created_at" = '2013-07-17 18:59:28.849225', "updated_at" = '2013-07-17 18:59:28.849225', "authentication_token" = 'qviT24BAqzBiuysfQDpe' WHERE "public"."cadenero_accounts"."id" = 323  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 323], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:28 UTC +00:00], ["user_id", 416]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NK4qFs73AZrzin5fcRks' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 323, "user_id" = 416, "created_at" = '2013-07-17 18:59:28.854979', "updated_at" = '2013-07-17 18:59:28.854979', "auth_token" = 'NK4qFs73AZrzin5fcRks' WHERE "public"."cadenero_members"."id" = 418  (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.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.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")  (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.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)   (0.8ms) 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.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-17 13:59: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 (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", Wed, 17 Jul 2013 18:59:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IoFgDwJOekdNtYSAgFzp7eqZJnw0OGcMyE/F8BYMPfEEhcEOhF9le"], ["updated_at", Wed, 17 Jul 2013 18:59:29 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", 323], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:29 UTC +00:00], ["user_id", 417]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j9kbQVarxc67VKgV7TYT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 323, "user_id" = 417, "created_at" = '2013-07-17 18:59:29.003334', "updated_at" = '2013-07-17 18:59:29.003334', "auth_token" = 'j9kbQVarxc67VKgV7TYT' WHERE "public"."cadenero_members"."id" = 419  (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" = 417 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 417 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 417 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 417 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/417" for 127.0.0.1 at 2013-07-17 13:59:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"417"} 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" = 323 AND "public"."cadenero_users"."id" = 417 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 417 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 417 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 417 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 417 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.7ms) Started GET "/v1/users/416" for 127.0.0.1 at 2013-07-17 13:59:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"416"} 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" = 322 AND "public"."cadenero_users"."id" = 416 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 416 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 416 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 416 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 416 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 13:59: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" = 322 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 416 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 415 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 415 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 415 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 416 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 416 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" = 416 Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 2.7ms)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$SGPz7wG7ge7fZGwTs3GqM.VDh8wKxYVwkvn/fso8xDIlZyrVH8.hq"], ["updated_at", Wed, 17 Jul 2013 18:59: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" = '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", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 418], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yU7rrcx7FqzRfq34XrS6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 418, "created_at" = '2013-07-17 18:59:32.477249', "updated_at" = '2013-07-17 18:59:32.477249', "authentication_token" = 'yU7rrcx7FqzRfq34XrS6' WHERE "public"."cadenero_accounts"."id" = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 324], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["user_id", 418]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '83KPp2DURKU37859kK1C' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 324, "user_id" = 418, "created_at" = '2013-07-17 18:59:32.484312', "updated_at" = '2013-07-17 18:59:32.484312', "auth_token" = '83KPp2DURKU37859kK1C' WHERE "public"."cadenero_members"."id" = 420  (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", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$AjG5g2sx4R49jRJfN2KmxuvfEfhx1R/hIgWGUJJzCnK/u9COuwJXq"], ["updated_at", Wed, 17 Jul 2013 18:59:32 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", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Kx/EHB7CCpHj6aVQBPsq7.B65j.lAjDsxLFC9XyuB5uRPmjgz.mXq"], ["updated_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["name", "Root"], ["owner_id", 420], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eu58DUYRQzP63WgoTzyg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 420, "created_at" = '2013-07-17 18:59:32.686230', "updated_at" = '2013-07-17 18:59:32.686230', "authentication_token" = 'eu58DUYRQzP63WgoTzyg' WHERE "public"."cadenero_accounts"."id" = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 325], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:32 UTC +00:00], ["user_id", 420]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P2j4aNswiKQcHUw9RsE9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 325, "user_id" = 420, "created_at" = '2013-07-17 18:59:32.691940', "updated_at" = '2013-07-17 18:59:32.691940', "auth_token" = 'P2j4aNswiKQcHUw9RsE9' WHERE "public"."cadenero_members"."id" = 421  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.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")  (11.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('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.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:36 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$KL2K2qMOJ/zCH9MLSnE0tO3iSmaC5B1Nw862zlLW7r1td27H2HsmW"], ["updated_at", Wed, 17 Jul 2013 18:59: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" = '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", Wed, 17 Jul 2013 18:59:36 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 421], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 18:59:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'N4rpEwLhyomoxz7ePoqR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 421, "created_at" = '2013-07-17 18:59:36.990560', "updated_at" = '2013-07-17 18:59:36.990560', "authentication_token" = 'N4rpEwLhyomoxz7ePoqR' WHERE "public"."cadenero_accounts"."id" = 326  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 326], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:36 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:36 UTC +00:00], ["user_id", 421]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ydGrnTKX3AwjAZ2AQUSG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 326, "user_id" = 421, "created_at" = '2013-07-17 18:59:36.996961', "updated_at" = '2013-07-17 18:59:36.996961', "auth_token" = 'ydGrnTKX3AwjAZ2AQUSG' WHERE "public"."cadenero_members"."id" = 422  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:59:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 326 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" = 421 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 421 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 421 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 421 Completed 201 Created in 113ms (Views: 6.2ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 326 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:59:37 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"421", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 421 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59: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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (8.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$5xaiv4JmbZH.p0RP7INYFegkKp5frgSV8ED6KA6n5I0RdP41CTVCC"], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 422], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Es5sphRJgTzjYvyoGpDy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 422, "created_at" = '2013-07-17 18:59:37.330456', "updated_at" = '2013-07-17 18:59:37.330456', "authentication_token" = 'Es5sphRJgTzjYvyoGpDy' WHERE "public"."cadenero_accounts"."id" = 327  (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", 327], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["user_id", 422]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TjfV4kxz4cJ1RHFnz5g8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 327, "user_id" = 422, "created_at" = '2013-07-17 18:59:37.336377', "updated_at" = '2013-07-17 18:59:37.336377', "auth_token" = 'TjfV4kxz4cJ1RHFnz5g8' WHERE "public"."cadenero_members"."id" = 423  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59: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-17 13:59:37 -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" = 327 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" = 422 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 422 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 422 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 422 Completed 201 Created in 109ms (Views: 5.7ms | 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" = 327 Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59:37 -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" = 422 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$zV7PmkcCi4Xb9TR.zmylHO2ErftCRXDxJyqh.DfZOjctQir2uS3rS"], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 423], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ehc4z67Bh9Pm2ZfBwsyV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 423, "created_at" = '2013-07-17 18:59:37.628788', "updated_at" = '2013-07-17 18:59:37.628788', "authentication_token" = 'Ehc4z67Bh9Pm2ZfBwsyV' WHERE "public"."cadenero_accounts"."id" = 328  (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", 328], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["user_id", 423]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9QTmFwwTQoaCyaLyr1mL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 328, "user_id" = 423, "created_at" = '2013-07-17 18:59:37.634594', "updated_at" = '2013-07-17 18:59:37.634594', "auth_token" = '9QTmFwwTQoaCyaLyr1mL' WHERE "public"."cadenero_members"."id" = 424  (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)   (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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59: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/users" for 127.0.0.1 at 2013-07-17 13:59:37 -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" = 'test7' 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", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Bq3.9R10p9bAIsQui3bz5uPZq6Y3fSBQVqkRrdIGKA2AcWDdmNWKa"], ["updated_at", Wed, 17 Jul 2013 18:59: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", 328], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["user_id", 424]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2ZpcAykcNKsDfCfmq6Qi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 328, "user_id" = 424, "created_at" = '2013-07-17 18:59:37.794261', "updated_at" = '2013-07-17 18:59:37.794261', "auth_token" = '2ZpcAykcNKsDfCfmq6Qi' WHERE "public"."cadenero_members"."id" = 425  (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" = 424 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 424 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 424 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 424 Completed 201 Created in 116ms (Views: 6.0ms | 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/424" for 127.0.0.1 at 2013-07-17 13:59:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"424"} 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" = 328 AND "public"."cadenero_users"."id" = 424 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 424 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 424 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 424 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 424 Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 2.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:59:37 -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" = 424 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 424 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 424 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 424 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59:37 -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" = 424 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:37 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$8Ukl6651OatJ40cXbRWTSuDwDMETgg6jA/bZO9YqUeZ4m8AtVUki6"], ["updated_at", Wed, 17 Jul 2013 18:59: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 (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", Wed, 17 Jul 2013 18:59:38 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 425], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nN6UVFmE1PnvrkzhwHCK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 425, "created_at" = '2013-07-17 18:59:38.001376', "updated_at" = '2013-07-17 18:59:38.001376', "authentication_token" = 'nN6UVFmE1PnvrkzhwHCK' WHERE "public"."cadenero_accounts"."id" = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 329], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00], ["user_id", 425]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eacK6svSKmJSKmmk4zJp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 329, "user_id" = 425, "created_at" = '2013-07-17 18:59:38.007709', "updated_at" = '2013-07-17 18:59:38.007709', "auth_token" = 'eacK6svSKmJSKmmk4zJp' WHERE "public"."cadenero_members"."id" = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (36.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)  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (49.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (19.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))   (10.7ms) 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")  (3.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:59:38 -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" = 329 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 425 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 425 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 425 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 425 Completed 201 Created in 168ms (Views: 6.9ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 329 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:59:38 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"425", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 425 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 13:59:38 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (4.1ms) SAVEPOINT active_record_1 SQL (14.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$kyg0ppv.nzF.XjNHPgkVyOTqwfqZfHL25mGMtxtBixdBn1lbGN9y6"], ["updated_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00]] SQL (3.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", 329], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:38 UTC +00:00], ["user_id", 426]] Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4KGcKH4yGSPCVyQsShzZ' LIMIT 1  (12.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 329, "user_id" = 426, "created_at" = '2013-07-17 18:59:38.750788', "updated_at" = '2013-07-17 18:59:38.750788', "auth_token" = '4KGcKH4yGSPCVyQsShzZ' WHERE "public"."cadenero_members"."id" = 427  (8.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 426 LIMIT 1 Cadenero::Member Load (6.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 426 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 426 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" = 426 Completed 201 Created in 273ms (Views: 7.5ms | ActiveRecord: 70.9ms) Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/426" for 127.0.0.1 at 2013-07-17 13:59:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"426"} 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" = 329 AND "public"."cadenero_users"."id" = 426 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 426 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 426 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 426 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 426 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.7ms) 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-17 13:59:38 -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" = 426 LIMIT 1 Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 426 Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 426 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" = 426 Completed 201 Created in 26ms (Views: 10.1ms | ActiveRecord: 14.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.1ms) ROLLBACK  (1.8ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (20.3ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$IME6pOHTTQefnOBT7ouN..zpAE5o83o/J6whfHt.DYzuROCzjVJ0C"], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00]]  (10.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 427], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '93xJmJpx8KpctZu2TZvN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 427, "created_at" = '2013-07-17 18:59:39.079725', "updated_at" = '2013-07-17 18:59:39.079725', "authentication_token" = '93xJmJpx8KpctZu2TZvN' WHERE "public"."cadenero_accounts"."id" = 330  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.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", 330], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["user_id", 427]] Cadenero::Member Load (6.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qwi83aqsWqPavtZfWDSC' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 330, "user_id" = 427, "created_at" = '2013-07-17 18:59:39.222460', "updated_at" = '2013-07-17 18:59:39.222460', "auth_token" = 'qwi83aqsWqPavtZfWDSC' WHERE "public"."cadenero_members"."id" = 428  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.4ms) 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.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")  (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))   (5.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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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')  (20.2ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$zTeuadeoU05HDxS5lIkhBOBocFT1MOlTZ1viqjPUgauSzmaacchQS"], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00]]  (2.9ms) RELEASE SAVEPOINT active_record_1  (8.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (12.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 428], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EaiqsNuVKFys8Svf8T1N' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 428, "created_at" = '2013-07-17 18:59:39.481887', "updated_at" = '2013-07-17 18:59:39.481887', "authentication_token" = 'EaiqsNuVKFys8Svf8T1N' WHERE "public"."cadenero_accounts"."id" = 331  (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", 331], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["user_id", 428]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KUVzerS5x3LXZEJ8o3zm' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 331, "user_id" = 428, "created_at" = '2013-07-17 18:59:39.487823', "updated_at" = '2013-07-17 18:59:39.487823', "auth_token" = 'KUVzerS5x3LXZEJ8o3zm' WHERE "public"."cadenero_members"."id" = 429  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59: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-17 13:59:39 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 330 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.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.7ms) ROLLBACK  (0.6ms) BEGIN  (7.7ms) COMMIT  (2.3ms) BEGIN  (6.8ms) 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", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$S.mc/SoQz0e5vJlNSuyyI.hPval2IOOe0DQzcYyW2Cy5i7rEcj7/q"], ["updated_at", Wed, 17 Jul 2013 18:59:39 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" = 'test11' LIMIT 1 SQL (10.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", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 429], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's17UfqBJfXJxnpxC2pGf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 429, "created_at" = '2013-07-17 18:59:39.716761', "updated_at" = '2013-07-17 18:59:39.716761', "authentication_token" = 's17UfqBJfXJxnpxC2pGf' WHERE "public"."cadenero_accounts"."id" = 332  (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", 332], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:39 UTC +00:00], ["user_id", 429]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '56mEqdZpyKs1s2YBoX6p' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 332, "user_id" = 429, "created_at" = '2013-07-17 18:59:39.737272', "updated_at" = '2013-07-17 18:59:39.737272', "auth_token" = '56mEqdZpyKs1s2YBoX6p' WHERE "public"."cadenero_members"."id" = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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)   (5.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (11.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))  (6.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (17.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (10.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59: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-17 13:59:39 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 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" = 332 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 20ms (Views: 0.4ms | 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  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$VqC2ybYAkMMpxgF.Se8ZgezqPs0SqlmQ424AL3mQbSLgE4GMRVKeG"], ["updated_at", Wed, 17 Jul 2013 18:59: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" = '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", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 430], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tzvkLdqG2efsH2XHWbg5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 430, "created_at" = '2013-07-17 18:59:40.077283', "updated_at" = '2013-07-17 18:59:40.077283', "authentication_token" = 'tzvkLdqG2efsH2XHWbg5' WHERE "public"."cadenero_accounts"."id" = 333  (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", 333], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["user_id", 430]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's1RBzPy89hpzk5zxAG6y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 333, "user_id" = 430, "created_at" = '2013-07-17 18:59:40.083848', "updated_at" = '2013-07-17 18:59:40.083848', "auth_token" = 's1RBzPy89hpzk5zxAG6y' WHERE "public"."cadenero_members"."id" = 431  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (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)  (8.3ms) 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")  (7.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (10.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)  (12.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')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 13:59: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-17 13:59: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 (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 333 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 (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.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", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$L1fTtDXxhhke1Org.ypVLOgAKOgcciLXNJIJKh2mtLs21XnwxQCp."], ["updated_at", Wed, 17 Jul 2013 18:59: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 431], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PMJQDDdRiPTACvmACRoj' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 431, "created_at" = '2013-07-17 18:59:40.411894', "updated_at" = '2013-07-17 18:59:40.411894', "authentication_token" = 'PMJQDDdRiPTACvmACRoj' WHERE "public"."cadenero_accounts"."id" = 334  (10.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 334], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:40 UTC +00:00], ["user_id", 431]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PzA2tjfCunK9Rf3hhsfb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 334, "user_id" = 431, "created_at" = '2013-07-17 18:59:40.431322', "updated_at" = '2013-07-17 18:59:40.431322', "auth_token" = 'PzA2tjfCunK9Rf3hhsfb' WHERE "public"."cadenero_members"."id" = 432  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (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)   (5.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (14.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")  (8.0ms) 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")  (27.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)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 13:59:40 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 4.1ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (5.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 16ms (Views: 7.5ms | ActiveRecord: 7.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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 (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$x1W6GUXf5tMklB8JuD.JdeaxACsq3OkEQp2EDWn4xqdYv8hONQmpi"], ["updated_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["name", "Test Account"], ["owner_id", 432], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R2d6UEktbEZ4Zb5VpzYg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 432, "created_at" = '2013-07-17 18:59:41.548740', "updated_at" = '2013-07-17 18:59:41.548740', "authentication_token" = 'R2d6UEktbEZ4Zb5VpzYg' WHERE "public"."cadenero_accounts"."id" = 335  (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", 335], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["user_id", 432]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PT9iyMpC2gMcrJNxhmUV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 335, "user_id" = 432, "created_at" = '2013-07-17 18:59:41.554330', "updated_at" = '2013-07-17 18:59:41.554330', "auth_token" = 'PT9iyMpC2gMcrJNxhmUV' WHERE "public"."cadenero_members"."id" = 433  (0.1ms) RELEASE SAVEPOINT active_record_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)   (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.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.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.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.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') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 335 LIMIT 1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 13:59:41 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$w7MOT54bP6THsdMzasaEo.s1.imKkDUXXYSEisYDhn5kbfW44t8xS"], ["updated_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["name", "Testy"], ["owner_id", 433], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SD6ceqPrh1g6r1CJbyvx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 433, "created_at" = '2013-07-17 18:59:41.835685', "updated_at" = '2013-07-17 18:59:41.835685', "authentication_token" = 'SD6ceqPrh1g6r1CJbyvx' WHERE "public"."cadenero_accounts"."id" = 336  (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", 336], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:41 UTC +00:00], ["user_id", 433]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'puxYPVL9aLNWJLxLaSjS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 336, "user_id" = 433, "created_at" = '2013-07-17 18:59:41.841780', "updated_at" = '2013-07-17 18:59:41.841780', "auth_token" = 'puxYPVL9aLNWJLxLaSjS' WHERE "public"."cadenero_members"."id" = 434  (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")  (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")  (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)  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 336) LIMIT 1 Completed 201 Created in 209ms (Views: 2.0ms | ActiveRecord: 34.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 18:59:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3K7Dilc4uYsWaTSi3eMh5uJ/ns44rHvDWlx5xYZRGD/DinzJwFcpi"], ["updated_at", Wed, 17 Jul 2013 18:59:42 UTC +00:00]] 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", Wed, 17 Jul 2013 18:59:42 UTC +00:00], ["name", "Testy"], ["owner_id", 434], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 18:59:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'z9q4ATxBVY7xKdqyz7yc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 434, "created_at" = '2013-07-17 18:59:42.039904', "updated_at" = '2013-07-17 18:59:42.039904', "authentication_token" = 'z9q4ATxBVY7xKdqyz7yc' WHERE "public"."cadenero_accounts"."id" = 337  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 13:59: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.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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 70ms (Views: 69.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_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", Wed, 17 Jul 2013 18:59:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 18:59:42 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KwQobpJseCXTnC5XHprz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 18:59:42.387119', "updated_at" = '2013-07-17 18:59:42.387119', "auth_token" = 'KwQobpJseCXTnC5XHprz' WHERE "public"."cadenero_members"."id" = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (2.7ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.9ms) 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", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Z8HsosmXLuaX1rxhwCBgMOVeY8cbQ17JMXZT.usad9DXk8p7Yp6se"], ["updated_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00]]  (5.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (12.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", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 435], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00]] Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dUEnHzTrd9bsp9PxhK6s' LIMIT 1  (6.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 435, "created_at" = '2013-07-17 19:15:29.437056', "updated_at" = '2013-07-17 19:15:29.437056', "authentication_token" = 'dUEnHzTrd9bsp9PxhK6s' WHERE "public"."cadenero_accounts"."id" = 338  (1.8ms) RELEASE SAVEPOINT active_record_1  (4.0ms) SAVEPOINT active_record_1 SQL (10.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", 338], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["user_id", 435]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PFaYozfs7F7Nn8xnZ81x' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 338, "user_id" = 435, "created_at" = '2013-07-17 19:15:29.567746', "updated_at" = '2013-07-17 19:15:29.567746', "auth_token" = 'PFaYozfs7F7Nn8xnZ81x' WHERE "public"."cadenero_members"."id" = 436  (2.5ms) RELEASE SAVEPOINT active_record_1  (3.4ms) 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)   (0.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")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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-17 14:15: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 6ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$vxHSrpGM1bsOiV9s8gtvfeNCdX5VNZp77TUpcpsutTRDJRak6Lucm"], ["updated_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 436], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'feWGmbD8P8zn3YiqWupK' LIMIT 1  (2.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 436, "created_at" = '2013-07-17 19:15:29.876336', "updated_at" = '2013-07-17 19:15:29.876336', "authentication_token" = 'feWGmbD8P8zn3YiqWupK' WHERE "public"."cadenero_accounts"."id" = 339  (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", 339], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:29 UTC +00:00], ["user_id", 436]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xw8H4R2ojKZHdUYgAsGg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 339, "user_id" = 436, "created_at" = '2013-07-17 19:15:29.885269', "updated_at" = '2013-07-17 19:15:29.885269', "auth_token" = 'xw8H4R2ojKZHdUYgAsGg' WHERE "public"."cadenero_members"."id" = 437  (0.1ms) 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)   (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")  (1.1ms) 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")  (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"  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15: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-17 14:15:29 -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" = 339 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" = 436 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 436 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 436 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" = 436 Completed 201 Created in 143ms (Views: 29.5ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 339 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15:30 -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" = 436 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$d9Uk4U4t0CXTl5LQU4VTrOlh3TXeX4yiPbU0N7jXKX1CWFtwob1y."], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 437], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'taCMvEUF2ypQXbNhtsq2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 437, "created_at" = '2013-07-17 19:15:30.259118', "updated_at" = '2013-07-17 19:15:30.259118', "authentication_token" = 'taCMvEUF2ypQXbNhtsq2' WHERE "public"."cadenero_accounts"."id" = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 340], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["user_id", 437]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q5YzH3sfcycwyf6sEWeY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 340, "user_id" = 437, "created_at" = '2013-07-17 19:15:30.264455', "updated_at" = '2013-07-17 19:15:30.264455', "auth_token" = 'q5YzH3sfcycwyf6sEWeY' WHERE "public"."cadenero_members"."id" = 438  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) 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")  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15:30 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 340 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 437 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 437 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 437 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 437 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 340 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-17 14:15:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"437", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 437 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15: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.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:15: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 (1.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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$w6tIrVS8uPk2auGqkoQR7ONa2rrwD3HQEJNZudhubgjjRCmyWEkBK"], ["updated_at", Wed, 17 Jul 2013 19:15:30 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", 340], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["user_id", 438]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'w1ER2uqjgFWpvMYjteT5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 340, "user_id" = 438, "created_at" = '2013-07-17 19:15:30.556432', "updated_at" = '2013-07-17 19:15:30.556432', "auth_token" = 'w1ER2uqjgFWpvMYjteT5' WHERE "public"."cadenero_members"."id" = 439  (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" = 438 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 438 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 438 Completed 201 Created in 118ms (Views: 6.2ms | 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 Started GET "/v1/users/438" for 127.0.0.1 at 2013-07-17 14:15:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"438"} 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" = 340 AND "public"."cadenero_users"."id" = 438 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 438 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 438 Cadenero::V1::Account Load (0.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" = 438 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 438 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 438 Cadenero::V1::Account Load (0.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" = 438 Completed 201 Created in 8ms (Views: 5.0ms | 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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$MAiJqA2MRtnCQpfKxdIVOuyEEuz6rtg.wpvkGfFreNgYsIBIiB4CW"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 439], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'p5pSzT3jvzrLhVXKi6au' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 439, "created_at" = '2013-07-17 19:15:30.718667', "updated_at" = '2013-07-17 19:15:30.718667', "authentication_token" = 'p5pSzT3jvzrLhVXKi6au' WHERE "public"."cadenero_accounts"."id" = 341  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 341], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["user_id", 439]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qsXpbFpjB7EfUV5KijNp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 341, "user_id" = 439, "created_at" = '2013-07-17 19:15:30.724094', "updated_at" = '2013-07-17 19:15:30.724094', "auth_token" = 'qsXpbFpjB7EfUV5KijNp' WHERE "public"."cadenero_members"."id" = 440  (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)  (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.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15: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/users" for 127.0.0.1 at 2013-07-17 14:15: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" = '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", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$J/sZSjwCLufl0RlAUq2xauLYJeagB2eNACUUEZvvc7tVXchsATrM6"], ["updated_at", Wed, 17 Jul 2013 19:15:30 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", 341], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:30 UTC +00:00], ["user_id", 440]] Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TYaiwJsqvq3cXnqrxUis' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 341, "user_id" = 440, "created_at" = '2013-07-17 19:15:30.878986', "updated_at" = '2013-07-17 19:15:30.878986', "auth_token" = 'TYaiwJsqvq3cXnqrxUis' WHERE "public"."cadenero_members"."id" = 441  (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" = 440 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 Cadenero::V1::Account Load (0.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" = 440 Completed 201 Created in 113ms (Views: 5.8ms | ActiveRecord: 5.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/440" for 127.0.0.1 at 2013-07-17 14:15:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"440"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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" = 341 AND "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.6ms) Cadenero::User Load (1.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-17 14:15:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 Completed 201 Created in 10ms (Views: 7.2ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$IqzrXFPMq3cc8Jz81Tc.FuV7RzUhF33FHSDZgITiEsq1ZGQWln/wK"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 441], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zspRxQB6q5kjmYRRsXAS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 441, "created_at" = '2013-07-17 19:15:31.051237', "updated_at" = '2013-07-17 19:15:31.051237', "authentication_token" = 'zspRxQB6q5kjmYRRsXAS' WHERE "public"."cadenero_accounts"."id" = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 342], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["user_id", 441]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wsf7bMsFQpBPTgXRxtp4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 342, "user_id" = 441, "created_at" = '2013-07-17 19:15:31.057215', "updated_at" = '2013-07-17 19:15:31.057215', "auth_token" = 'Wsf7bMsFQpBPTgXRxtp4' WHERE "public"."cadenero_members"."id" = 442  (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")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15: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 ('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" = 342 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" = 441 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 441 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 441 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 441 Completed 201 Created in 109ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 342 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15:31 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"441", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 441 LIMIT 1 Completed 200 OK in 59ms (Views: 0.4ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3GOEkWbA5ONfvziQfv4uA.dJjvnSWvDYGRckilUEnG.d32L08dq1K"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 442], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZLwxgQHcN8xgSZGDsy6S' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 442, "created_at" = '2013-07-17 19:15:31.441314', "updated_at" = '2013-07-17 19:15:31.441314', "authentication_token" = 'ZLwxgQHcN8xgSZGDsy6S' WHERE "public"."cadenero_accounts"."id" = 343  (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", 343], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["user_id", 442]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aSsTFN95G1cJzFRCTSGH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 343, "user_id" = 442, "created_at" = '2013-07-17 19:15:31.446944', "updated_at" = '2013-07-17 19:15:31.446944', "auth_token" = 'aSsTFN95G1cJzFRCTSGH' WHERE "public"."cadenero_members"."id" = 443  (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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 343 AND "public"."cadenero_users"."email" = 'user@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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$LuNElT9jCgBb8gBO9WGlUeGG4RPdo6VvqsR5HowCsiRpkldjgDWAW"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 443], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KuuNnTz6pXYyi1JWaew7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 443, "created_at" = '2013-07-17 19:15:31.614762', "updated_at" = '2013-07-17 19:15:31.614762', "authentication_token" = 'KuuNnTz6pXYyi1JWaew7' WHERE "public"."cadenero_accounts"."id" = 344  (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", 344], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["user_id", 443]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3ziA8petkbshcQf9m9oi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 344, "user_id" = 443, "created_at" = '2013-07-17 19:15:31.620269', "updated_at" = '2013-07-17 19:15:31.620269', "auth_token" = '3ziA8petkbshcQf9m9oi' WHERE "public"."cadenero_members"."id" = 444  (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")  (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.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15:31 -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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$u9QNmOQTWYV1zhKhXN9B7Ok8s7Ea/mbMNZmDkZaElgdOTWYwbVXNG"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 444], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gWpq9wTn4cZArQGKhD9q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 444, "created_at" = '2013-07-17 19:15:31.774902', "updated_at" = '2013-07-17 19:15:31.774902', "authentication_token" = 'gWpq9wTn4cZArQGKhD9q' WHERE "public"."cadenero_accounts"."id" = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 345], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["user_id", 444]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's7xkzQiTbP4akWK4zxaR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 345, "user_id" = 444, "created_at" = '2013-07-17 19:15:31.780267', "updated_at" = '2013-07-17 19:15:31.780267', "auth_token" = 's7xkzQiTbP4akWK4zxaR' WHERE "public"."cadenero_members"."id" = 445  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:15: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 ('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" = 345 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$bF25vNu.e8MvvJ2Gd1kV8eNcPWKojdvBxU.EOi67GsNAV4vNAK8lq"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 445], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bG6vFpAsKaS74Zvt3E1s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 445, "created_at" = '2013-07-17 19:15:31.946834', "updated_at" = '2013-07-17 19:15:31.946834', "authentication_token" = 'bG6vFpAsKaS74Zvt3E1s' WHERE "public"."cadenero_accounts"."id" = 346  (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", 346], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:31 UTC +00:00], ["user_id", 445]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PQwGtx6njGkWtFu9p8Y3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 346, "user_id" = 445, "created_at" = '2013-07-17 19:15:31.952267', "updated_at" = '2013-07-17 19:15:31.952267', "auth_token" = 'PQwGtx6njGkWtFu9p8Y3' WHERE "public"."cadenero_members"."id" = 446  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('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.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", Wed, 17 Jul 2013 19:15:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$eEq8RCs06zIaAZYVhWh42Om2P8OXjaOv5IfnyI7mwzNkmrPkynN1C"], ["updated_at", Wed, 17 Jul 2013 19:15: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" = '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", Wed, 17 Jul 2013 19:15:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 446], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 19:15:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iUyqH3jxzLxEWtzdeVi5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 446, "created_at" = '2013-07-17 19:15:32.094488', "updated_at" = '2013-07-17 19:15:32.094488', "authentication_token" = 'iUyqH3jxzLxEWtzdeVi5' WHERE "public"."cadenero_accounts"."id" = 347  (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", 347], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:15:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:15:32 UTC +00:00], ["user_id", 446]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZqJe87n9NKW3dtXmdnBq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 347, "user_id" = 446, "created_at" = '2013-07-17 19:15:32.099620', "updated_at" = '2013-07-17 19:15:32.099620', "auth_token" = 'ZqJe87n9NKW3dtXmdnBq' WHERE "public"."cadenero_members"."id" = 447  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:15: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-17 14:15:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 346 AND "public"."cadenero_users"."email" = 'user10@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  (2.8ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (1.7ms) 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", Wed, 17 Jul 2013 19:33:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$baxjMHdVGleo7ho68/QJse0FFIuzNNau2TtzR8pgeB2vmODduzeTe"], ["updated_at", Wed, 17 Jul 2013 19:33:06 UTC +00:00]]  (0.1ms) 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 (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", Wed, 17 Jul 2013 19:33:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 447], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 19:33:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TWCXEik3MsCNxftdocJB' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 447, "created_at" = '2013-07-17 19:33:06.475124', "updated_at" = '2013-07-17 19:33:06.475124', "authentication_token" = 'TWCXEik3MsCNxftdocJB' WHERE "public"."cadenero_accounts"."id" = 348  (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", 348], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:06 UTC +00:00], ["user_id", 447]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uaziVuJKG2CpmjEryyzE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 348, "user_id" = 447, "created_at" = '2013-07-17 19:33:06.602603', "updated_at" = '2013-07-17 19:33:06.602603', "auth_token" = 'uaziVuJKG2CpmjEryyzE' WHERE "public"."cadenero_members"."id" = 448  (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)   (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, "auth_token" character varying(255))  (0.8ms) 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")  (2.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33: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 8ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 348 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (6.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 447 LIMIT 1 Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 447 Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 447 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" = 447 Completed 201 Created in 264ms (Views: 35.8ms | ActiveRecord: 22.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 348 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:07 -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" = 447 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$S8HKRid3Z0v88XS9PvZDTOjwR0pBuJzP5VxA.Ux6970kLr0owriQ2"], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 448], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nBSZbxBvXpzAPVGgFxcX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 448, "created_at" = '2013-07-17 19:33:07.198601', "updated_at" = '2013-07-17 19:33:07.198601', "authentication_token" = 'nBSZbxBvXpzAPVGgFxcX' WHERE "public"."cadenero_accounts"."id" = 349  (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", 349], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["user_id", 448]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FEpqjBFLZxf26iSEKixb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 349, "user_id" = 448, "created_at" = '2013-07-17 19:33:07.204030', "updated_at" = '2013-07-17 19:33:07.204030', "auth_token" = 'FEpqjBFLZxf26iSEKixb' WHERE "public"."cadenero_members"."id" = 449  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (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, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.5ms) 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/sessions" for 127.0.0.1 at 2013-07-17 14:33: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.4ms) 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" = 349 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" = 448 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 448 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 448 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 448 Completed 201 Created in 111ms (Views: 5.5ms | ActiveRecord: 5.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" = 349 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:07 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"448", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 448 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33: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)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$J2iZJWoIMzZPz.ZrBhZ0FehwXq6ctH4tPJiau5ccK84758ypw4ULe"], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 449], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gHFpY13oA5FqzDxxWwv2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 449, "created_at" = '2013-07-17 19:33:07.512086', "updated_at" = '2013-07-17 19:33:07.512086', "authentication_token" = 'gHFpY13oA5FqzDxxWwv2' WHERE "public"."cadenero_accounts"."id" = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 350], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["user_id", 449]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '79FeJXkavVzzrenZwzUv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 350, "user_id" = 449, "created_at" = '2013-07-17 19:33:07.517807', "updated_at" = '2013-07-17 19:33:07.517807', "auth_token" = '79FeJXkavVzzrenZwzUv' WHERE "public"."cadenero_members"."id" = 450  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.7ms) 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")  (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.5ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:33:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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 (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$dOFGTx9LZ/dTVHMLIHTAMeDZ2zH9I8KI5.Db30R3ZK7ODH5KhoJAG"], ["updated_at", Wed, 17 Jul 2013 19:33: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", 350], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["user_id", 450]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cHSkbYPipM1ryksWHy6D' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 350, "user_id" = 450, "created_at" = '2013-07-17 19:33:07.687569', "updated_at" = '2013-07-17 19:33:07.687569', "auth_token" = 'cHSkbYPipM1ryksWHy6D' WHERE "public"."cadenero_members"."id" = 451  (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" = 450 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 450 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 450 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 450 Completed 201 Created in 121ms (Views: 7.6ms | ActiveRecord: 5.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/450" for 127.0.0.1 at 2013-07-17 14:33:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"450"} 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" = 350 AND "public"."cadenero_users"."id" = 450 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 450 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 450 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 450 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" = 450 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:07 -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" = 450 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 450 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 450 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 450 Completed 201 Created in 7ms (Views: 5.1ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:07 -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" = 450 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$0Qam51316Jbdtl8SM8um3uTDySa4l3DsW9s3xRyScrhKTWpu1ZYMC"], ["updated_at", Wed, 17 Jul 2013 19:33: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" = 'test4' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 451], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RpGWDU2x57Y4DbjFWkgZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 451, "created_at" = '2013-07-17 19:33:07.862774', "updated_at" = '2013-07-17 19:33:07.862774', "authentication_token" = 'RpGWDU2x57Y4DbjFWkgZ' WHERE "public"."cadenero_accounts"."id" = 351  (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", 351], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:07 UTC +00:00], ["user_id", 451]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B8mZjLss6DBZoGRj9xgW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 351, "user_id" = 451, "created_at" = '2013-07-17 19:33:07.868634', "updated_at" = '2013-07-17 19:33:07.868634', "auth_token" = 'B8mZjLss6DBZoGRj9xgW' WHERE "public"."cadenero_members"."id" = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.5ms) 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))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.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)   (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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:07 -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" = 351 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" = 451 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 451 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 451 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 451 Completed 201 Created in 115ms (Views: 5.7ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 351 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"451", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$SUSM6WTj5eyI3.3fBvXgRe24bu3u.7uvZ/1RhFh5KXJDdD6ACK/5W"], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00]] 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", 351], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["user_id", 452]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tad7FWDD5s3HpiT6RACV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 351, "user_id" = 452, "created_at" = '2013-07-17 19:33:08.163638', "updated_at" = '2013-07-17 19:33:08.163638', "auth_token" = 'tad7FWDD5s3HpiT6RACV' WHERE "public"."cadenero_members"."id" = 453  (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" = 452 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 452 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 452 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 452 Completed 201 Created in 118ms (Views: 5.6ms | ActiveRecord: 5.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/452" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"452"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 351 AND "public"."cadenero_users"."id" = 452 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 452 LIMIT 1 Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 452 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 452 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 452 Completed 200 OK in 14ms (Views: 6.6ms | ActiveRecord: 3.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 452 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 452 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 452 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 452 Completed 201 Created in 8ms (Views: 5.0ms | 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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$p6R60X97SLgU4UYJZHn0hOY7qgscDC.s.E0pD1RpWqd49FFea7q8a"], ["updated_at", Wed, 17 Jul 2013 19:33: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" = '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", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 453], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YBz5zx3A9pxBxk4pvtJd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 453, "created_at" = '2013-07-17 19:33:08.325677', "updated_at" = '2013-07-17 19:33:08.325677', "authentication_token" = 'YBz5zx3A9pxBxk4pvtJd' WHERE "public"."cadenero_accounts"."id" = 352  (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", 352], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["user_id", 453]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PzNCr5iArungisPPyRyy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 352, "user_id" = 453, "created_at" = '2013-07-17 19:33:08.331164', "updated_at" = '2013-07-17 19:33:08.331164', "auth_token" = 'PzNCr5iArungisPPyRyy' WHERE "public"."cadenero_members"."id" = 454  (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")  (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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33: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 (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" = 352 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (10.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$TU5WF1WU9/AyzclNFNDqUuD7DaCiaSXv/pLvSbdq2liNJidTTGy5y"], ["updated_at", Wed, 17 Jul 2013 19:33: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" = '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", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 454], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xvoPZsXeLZrVwYzFfXpc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 454, "created_at" = '2013-07-17 19:33:08.601277', "updated_at" = '2013-07-17 19:33:08.601277', "authentication_token" = 'xvoPZsXeLZrVwYzFfXpc' WHERE "public"."cadenero_accounts"."id" = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 353], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["user_id", 454]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'A9z1tEz1apDzJK9Xjntc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 353, "user_id" = 454, "created_at" = '2013-07-17 19:33:08.606847', "updated_at" = '2013-07-17 19:33:08.606847', "auth_token" = 'A9z1tEz1apDzJK9Xjntc' WHERE "public"."cadenero_members"."id" = 455  (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.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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$DL812x5sc1/yD/rvjw9JwOUJUKWcP47B9iv4zAmFk2UXzxnK34R3y"], ["updated_at", Wed, 17 Jul 2013 19:33:08 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 455], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QSRmY7PzcJYvnmspo2Qa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 455, "created_at" = '2013-07-17 19:33:08.753123', "updated_at" = '2013-07-17 19:33:08.753123', "authentication_token" = 'QSRmY7PzcJYvnmspo2Qa' WHERE "public"."cadenero_accounts"."id" = 354  (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", 354], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["user_id", 455]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's9ypPw1PVksLNJLXnBFg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 354, "user_id" = 455, "created_at" = '2013-07-17 19:33:08.758346', "updated_at" = '2013-07-17 19:33:08.758346', "auth_token" = 's9ypPw1PVksLNJLXnBFg' WHERE "public"."cadenero_members"."id" = 456  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:08 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$VcmOA9032jWDQc9pLps6s.nmJZR8J/UnX97ERkTTj6h2f0uaPahka"], ["updated_at", Wed, 17 Jul 2013 19:33: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" = 'test8' 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", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 456], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EHmt2zHrjyjFE8evsfaf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 456, "created_at" = '2013-07-17 19:33:08.886364', "updated_at" = '2013-07-17 19:33:08.886364', "authentication_token" = 'EHmt2zHrjyjFE8evsfaf' WHERE "public"."cadenero_accounts"."id" = 355  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 355], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:08 UTC +00:00], ["user_id", 456]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xsoFTrg3zHKTKS1VDdmg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 355, "user_id" = 456, "created_at" = '2013-07-17 19:33:08.892299', "updated_at" = '2013-07-17 19:33:08.892299', "auth_token" = 'xsoFTrg3zHKTKS1VDdmg' WHERE "public"."cadenero_members"."id" = 457  (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")  (3.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, "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")  (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"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:08 -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" = 355 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$sDs6aYFpQ46d2Wl2crkzme9mHsx/QMR/XcAPD4CNl7L/nWXZ3IkRq"], ["updated_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 457], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6ZdEGPjLKpnpqKiDaJzs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 457, "created_at" = '2013-07-17 19:33:09.063387', "updated_at" = '2013-07-17 19:33:09.063387', "authentication_token" = '6ZdEGPjLKpnpqKiDaJzs' WHERE "public"."cadenero_accounts"."id" = 356  (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", 356], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["user_id", 457]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GKmZvjMofB9uRgrBGSZu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 356, "user_id" = 457, "created_at" = '2013-07-17 19:33:09.068847', "updated_at" = '2013-07-17 19:33:09.068847', "auth_token" = 'GKmZvjMofB9uRgrBGSZu' WHERE "public"."cadenero_members"."id" = 458  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:33:09 -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.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$QLiqjPmxFBLoK/YGYyU9LepbRXpHdarpXs6God095d1DhR4hTPOQy"], ["updated_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 458], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Mf8YAyExK9nSzxioXdtp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 458, "created_at" = '2013-07-17 19:33:09.229762', "updated_at" = '2013-07-17 19:33:09.229762', "authentication_token" = 'Mf8YAyExK9nSzxioXdtp' WHERE "public"."cadenero_accounts"."id" = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 357], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:33:09 UTC +00:00], ["user_id", 458]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RUE3pegsJsFzhfp1wm2B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 357, "user_id" = 458, "created_at" = '2013-07-17 19:33:09.235284', "updated_at" = '2013-07-17 19:33:09.235284', "auth_token" = 'RUE3pegsJsFzhfp1wm2B' WHERE "public"."cadenero_members"."id" = 459  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:33:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.7ms) ROLLBACK Connecting to database specified by database.yml  (6.5ms) BEGIN  (0.2ms) COMMIT  (3.8ms) BEGIN  (10.6ms) SAVEPOINT active_record_1 SQL (13.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:29 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$4D9qWkdpbeiBnzDRjQNu5OrJYjtjBybcKEo9ccmwuJm5Q7GU2pDNu"], ["updated_at", Wed, 17 Jul 2013 19:35:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 19:35:29 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 459], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 19:35:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WF67j1qk7vYWUJrCQpgj' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 459, "created_at" = '2013-07-17 19:35:29.749528', "updated_at" = '2013-07-17 19:35:29.749528', "authentication_token" = 'WF67j1qk7vYWUJrCQpgj' WHERE "public"."cadenero_accounts"."id" = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 358], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:29 UTC +00:00], ["user_id", 459]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gYyXraaUv1dSjSkrD6n5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 358, "user_id" = 459, "created_at" = '2013-07-17 19:35:29.871686', "updated_at" = '2013-07-17 19:35:29.871686', "auth_token" = 'gYyXraaUv1dSjSkrD6n5' WHERE "public"."cadenero_members"."id" = 460  (0.1ms) 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.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.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")  (0.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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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 5ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (9.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (14.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$1mmNZ2hhEwW0JIx1z0Z8Huj7p4gPjka972ZJfHJgCQ5qPYhD8Ni32"], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (5.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 460], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sur9jEqrrmUkD7WzVaYJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 460, "created_at" = '2013-07-17 19:35:30.248102', "updated_at" = '2013-07-17 19:35:30.248102', "authentication_token" = 'sur9jEqrrmUkD7WzVaYJ' WHERE "public"."cadenero_accounts"."id" = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 359], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["user_id", 460]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ffy3f3KzE1nRtps4qRX7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 359, "user_id" = 460, "created_at" = '2013-07-17 19:35:30.255838', "updated_at" = '2013-07-17 19:35:30.255838', "auth_token" = 'Ffy3f3KzE1nRtps4qRX7' WHERE "public"."cadenero_members"."id" = 461  (2.8ms) 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)   (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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35: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 (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" = 359 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" = 460 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 Completed 201 Created in 145ms (Views: 30.1ms | 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::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 359 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"460", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:35: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.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.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$G.FZsxLP20R.3lWtdeIl5ONA7zCauIJ7Kjr1S7FDng8Nk.HlENVTq"], ["updated_at", Wed, 17 Jul 2013 19:35:30 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", 359], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["user_id", 461]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dzCmDnMGVLHhPX6dQ4uB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 359, "user_id" = 461, "created_at" = '2013-07-17 19:35:30.647584', "updated_at" = '2013-07-17 19:35:30.647584', "auth_token" = 'dzCmDnMGVLHhPX6dQ4uB' WHERE "public"."cadenero_members"."id" = 462  (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" = 461 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 Completed 201 Created in 116ms (Views: 5.8ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/461" for 127.0.0.1 at 2013-07-17 14:35:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"461"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 359 AND "public"."cadenero_users"."id" = 461 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 461 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 461 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 Completed 201 Created in 7ms (Views: 4.9ms | 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.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$HRReUzAqYdwdzhJJZCw.IO9gKnDjPZ9kCQ/Z.iyO07QQsRJD0lG56"], ["updated_at", Wed, 17 Jul 2013 19:35: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" = '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", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 462], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tLMPiTy5bV4CysTnz7YW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 462, "created_at" = '2013-07-17 19:35:30.812634', "updated_at" = '2013-07-17 19:35:30.812634', "authentication_token" = 'tLMPiTy5bV4CysTnz7YW' WHERE "public"."cadenero_accounts"."id" = 360  (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", 360], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["user_id", 462]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'G8qBAxyhVsAP1Dn3af3F' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 360, "user_id" = 462, "created_at" = '2013-07-17 19:35:30.818318', "updated_at" = '2013-07-17 19:35:30.818318', "auth_token" = 'G8qBAxyhVsAP1Dn3af3F' WHERE "public"."cadenero_members"."id" = 463  (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)   (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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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/users" for 127.0.0.1 at 2013-07-17 14:35: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.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", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$A9mr721VvHtMswMj9wvbGe/VHUwzMRxvUZsSk0yRNCA47/Zl.fsXu"], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00]] 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", 360], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:30 UTC +00:00], ["user_id", 463]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qebqZd6TyWzCXajDjZDK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 360, "user_id" = 463, "created_at" = '2013-07-17 19:35:30.987972', "updated_at" = '2013-07-17 19:35:30.987972', "auth_token" = 'qebqZd6TyWzCXajDjZDK' WHERE "public"."cadenero_members"."id" = 464  (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" = 463 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 463 Completed 201 Created in 126ms (Views: 5.7ms | ActiveRecord: 6.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/463" for 127.0.0.1 at 2013-07-17 14:35:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"463"} Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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" = 360 AND "public"."cadenero_users"."id" = 463 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 463 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 Cadenero::V1::Account Load (0.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" = 463 Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 5.2ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 463 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 463 Completed 201 Created in 8ms (Views: 5.6ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35:31 -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" = 463 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$B4D7uit3Ewphk16lGla81efsrv2Yduqb8A.s7VdQ13crcM5tCVYzW"], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 464], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gNeK7qGE7GvxVWy8jBmf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 464, "created_at" = '2013-07-17 19:35:31.161323', "updated_at" = '2013-07-17 19:35:31.161323', "authentication_token" = 'gNeK7qGE7GvxVWy8jBmf' WHERE "public"."cadenero_accounts"."id" = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 361], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["user_id", 464]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SSynsjfWhnZPJmnvBbW9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 361, "user_id" = 464, "created_at" = '2013-07-17 19:35:31.166727', "updated_at" = '2013-07-17 19:35:31.166727', "auth_token" = 'SSynsjfWhnZPJmnvBbW9' WHERE "public"."cadenero_members"."id" = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) 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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35: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 ('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" = 361 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" = 464 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 464 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 464 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 464 Completed 201 Created in 114ms (Views: 5.5ms | 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" = 361 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35:31 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"464", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 464 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$.vbspZke1bzhT2oVN3PaUOy7OvF4iYzhnbFtw8LE2gJrF4mL97ZNa"], ["updated_at", Wed, 17 Jul 2013 19:35: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" = '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", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 465], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '48XmK36DyTWGp6KvrJ7E' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 465, "created_at" = '2013-07-17 19:35:31.487015', "updated_at" = '2013-07-17 19:35:31.487015', "authentication_token" = '48XmK36DyTWGp6KvrJ7E' WHERE "public"."cadenero_accounts"."id" = 362  (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", 362], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["user_id", 465]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tsMeTpQGxsMeVLXhaHF6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 362, "user_id" = 465, "created_at" = '2013-07-17 19:35:31.495154', "updated_at" = '2013-07-17 19:35:31.495154', "auth_token" = 'tsMeTpQGxsMeVLXhaHF6' WHERE "public"."cadenero_members"."id" = 466  (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.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.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.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)  (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.9ms) 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-17 14:35:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35: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 ('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" = 362 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" = 465 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 465 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 465 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 465 Completed 201 Created in 108ms (Views: 5.5ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.5ms) 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" = 362 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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" = 465 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$qqgc5yHABsqJZDSqPCGPuufFixAK7sEpfy3zDqfYkh6XpDspijvDC"], ["updated_at", Wed, 17 Jul 2013 19:35: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" = '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", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 466], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Nwpyc4L46v7jRQJMwuSF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 466, "created_at" = '2013-07-17 19:35:31.866232', "updated_at" = '2013-07-17 19:35:31.866232', "authentication_token" = 'Nwpyc4L46v7jRQJMwuSF' WHERE "public"."cadenero_accounts"."id" = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 363], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:31 UTC +00:00], ["user_id", 466]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3nrHwaWkCy3Y3oszsaNy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 363, "user_id" = 466, "created_at" = '2013-07-17 19:35:31.872545', "updated_at" = '2013-07-17 19:35:31.872545', "auth_token" = '3nrHwaWkCy3Y3oszsaNy' WHERE "public"."cadenero_members"."id" = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.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, "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")  (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.3ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35:31 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$AglQxfUl0PF29xmFT5Xqu.HFO46DzwTsy3Y8D4Hbn8Yil1bWmTqWm"], ["updated_at", Wed, 17 Jul 2013 19:35: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" = '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", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 467], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wzcphjmUSGmtzxBcewq2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 467, "created_at" = '2013-07-17 19:35:32.033541', "updated_at" = '2013-07-17 19:35:32.033541', "authentication_token" = 'wzcphjmUSGmtzxBcewq2' WHERE "public"."cadenero_accounts"."id" = 364  (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", 364], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["user_id", 467]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kNjLFrdQxxJt26Cugx7W' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 364, "user_id" = 467, "created_at" = '2013-07-17 19:35:32.039102', "updated_at" = '2013-07-17 19:35:32.039102', "auth_token" = 'kNjLFrdQxxJt26Cugx7W' WHERE "public"."cadenero_members"."id" = 468  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:35: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.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" = 364 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$zOXyW57pXo/RgInZnJAgReHXClDGzmWSGKTNvxTu2PE7RnaDCXDbu"], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 468], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6DaFVSyheYQ5BA5v97Bc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 468, "created_at" = '2013-07-17 19:35:32.212249', "updated_at" = '2013-07-17 19:35:32.212249', "authentication_token" = '6DaFVSyheYQ5BA5v97Bc' WHERE "public"."cadenero_accounts"."id" = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 365], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["user_id", 468]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xxz1epopLDbiVLyzwsUS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 365, "user_id" = 468, "created_at" = '2013-07-17 19:35:32.218313', "updated_at" = '2013-07-17 19:35:32.218313', "auth_token" = 'xxz1epopLDbiVLyzwsUS' WHERE "public"."cadenero_members"."id" = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (3.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$2Kbvv.VJpdGG4E42wCgQ8uhWvJ7rnoSirkMv7c3ackQfPGyQJxOVS"], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 469], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SBKSvqzxP9HMpoJoDm9f' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 469, "created_at" = '2013-07-17 19:35:32.375273', "updated_at" = '2013-07-17 19:35:32.375273', "authentication_token" = 'SBKSvqzxP9HMpoJoDm9f' WHERE "public"."cadenero_accounts"."id" = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 366], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["user_id", 469]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xJkrNeZeNstYPFJbPxBg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 366, "user_id" = 469, "created_at" = '2013-07-17 19:35:32.380517', "updated_at" = '2013-07-17 19:35:32.380517', "auth_token" = 'xJkrNeZeNstYPFJbPxBg' WHERE "public"."cadenero_members"."id" = 470  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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-17 14:35: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 365 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (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  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Dbg5My66Ffhhl4TABQMlQuvj9y.I2gl4EZ2PTEsyXE1S9BKjFJxE2"], ["updated_at", Wed, 17 Jul 2013 19:35: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" = '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", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 470], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vVBsN6GjwjU7vKULRd66' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 470, "created_at" = '2013-07-17 19:35:32.506373', "updated_at" = '2013-07-17 19:35:32.506373', "authentication_token" = 'vVBsN6GjwjU7vKULRd66' WHERE "public"."cadenero_accounts"."id" = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 367], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:35:32 UTC +00:00], ["user_id", 470]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xA1xqMgMAz3UQ1Ag14DZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 367, "user_id" = 470, "created_at" = '2013-07-17 19:35:32.511872', "updated_at" = '2013-07-17 19:35:32.511872', "auth_token" = 'xA1xqMgMAz3UQ1Ag14DZ' WHERE "public"."cadenero_members"."id" = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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")  (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.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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:35: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-17 14:35: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 ('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" = 367 AND "public"."cadenero_users"."email" = 'user@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  (3.4ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (6.8ms) SAVEPOINT active_record_1 SQL (20.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:20 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Fd4k0x5NkyGqSL.UfI4JfuadXLeOraHq0tOsYMCSMWk10zMLq1EUS"], ["updated_at", Wed, 17 Jul 2013 19:37:20 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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 (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", Wed, 17 Jul 2013 19:37:20 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 471], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 19:37:20 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6uvj5xQ9U1SxcncmbrUX' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 471, "created_at" = '2013-07-17 19:37:20.677157', "updated_at" = '2013-07-17 19:37:20.677157', "authentication_token" = '6uvj5xQ9U1SxcncmbrUX' WHERE "public"."cadenero_accounts"."id" = 368  (5.9ms) RELEASE SAVEPOINT active_record_1  (3.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", 368], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:20 UTC +00:00], ["user_id", 471]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yd9YGknKSwAEsQ8hpfsp' LIMIT 1  (3.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 368, "user_id" = 471, "created_at" = '2013-07-17 19:37:20.843639', "updated_at" = '2013-07-17 19:37:20.843639', "auth_token" = 'Yd9YGknKSwAEsQ8hpfsp' WHERE "public"."cadenero_members"."id" = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (3.7ms) 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")  (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))  (15.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.0ms) 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")  (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)  (6.4ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (10.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (22.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", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$xz5DeyG4kYP9Y42FA6TIFucoPBTvrUYC9vyv6REyoDC9xH94Eg1z6"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 472], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pb1T5w4d2Rnt1SG5w1Zy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 472, "created_at" = '2013-07-17 19:37:21.193639', "updated_at" = '2013-07-17 19:37:21.193639', "authentication_token" = 'pb1T5w4d2Rnt1SG5w1Zy' WHERE "public"."cadenero_accounts"."id" = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 369], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["user_id", 472]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'C9fAR6Z4TFFVhPoMq6xK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 369, "user_id" = 472, "created_at" = '2013-07-17 19:37:21.200096', "updated_at" = '2013-07-17 19:37:21.200096', "auth_token" = 'C9fAR6Z4TFFVhPoMq6xK' WHERE "public"."cadenero_members"."id" = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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")  (1.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, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)   (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@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 ('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" = 369 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" = 472 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 Completed 201 Created in 145ms (Views: 30.1ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 369 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"472", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8vNg220w4sgrKFCRYEkyruQUZHstqAOu.nKiL1UWtt57pMphzSMoi"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 473], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KVMyVXJBEpvWx4yAxLd6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 473, "created_at" = '2013-07-17 19:37:21.581649', "updated_at" = '2013-07-17 19:37:21.581649', "authentication_token" = 'KVMyVXJBEpvWx4yAxLd6' WHERE "public"."cadenero_accounts"."id" = 370  (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", 370], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["user_id", 473]] Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EyBkAVwEUtxbhhHjs3xq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 370, "user_id" = 473, "created_at" = '2013-07-17 19:37:21.587001', "updated_at" = '2013-07-17 19:37:21.587001', "auth_token" = 'EyBkAVwEUtxbhhHjs3xq' WHERE "public"."cadenero_members"."id" = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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/users" for 127.0.0.1 at 2013-07-17 14:37:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (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", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$/CL1rPOeeT4wnWCSeRtDbu0IZ4rRW41aZCMKLm9Ip3IREiNYLb6Du"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 370], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["user_id", 474]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZbVRoL7CQ8zaEbNA6WdM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 370, "user_id" = 474, "created_at" = '2013-07-17 19:37:21.745593', "updated_at" = '2013-07-17 19:37:21.745593', "auth_token" = 'ZbVRoL7CQ8zaEbNA6WdM' WHERE "public"."cadenero_members"."id" = 475  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 Completed 201 Created in 119ms (Views: 5.7ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/474" for 127.0.0.1 at 2013-07-17 14:37:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"474"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 370 AND "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.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-17 14:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:21 -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" = 474 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (2.6ms) BEGIN  (1.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", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$0STKIoHAEotP7RZqBTJSv.x0Tr8ZnuNCwZtxUe5asBkLD62KSyzyC"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 475], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wss4L5msZhTLJekNYGsX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 475, "created_at" = '2013-07-17 19:37:21.927881', "updated_at" = '2013-07-17 19:37:21.927881', "authentication_token" = 'Wss4L5msZhTLJekNYGsX' WHERE "public"."cadenero_accounts"."id" = 371  (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", 371], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:21 UTC +00:00], ["user_id", 475]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HUdBLBwm71hPsZLKcBUv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 371, "user_id" = 475, "created_at" = '2013-07-17 19:37:21.933304', "updated_at" = '2013-07-17 19:37:21.933304', "auth_token" = 'HUdBLBwm71hPsZLKcBUv' WHERE "public"."cadenero_members"."id" = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.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, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:21 -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.3ms) 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" = 371 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" = 475 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 475 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 475 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 475 Completed 201 Created in 107ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 371 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"475", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 475 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:37: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.2ms) 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", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$jgMT9PzTHncjgkmdT6xr1.QHYn6GBCK/.Uj47UQ0aAEnFqitOYZMS"], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 371], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["user_id", 476]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SQAzsz7vXds2wYzFayHe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 371, "user_id" = 476, "created_at" = '2013-07-17 19:37:22.225893', "updated_at" = '2013-07-17 19:37:22.225893', "auth_token" = 'SQAzsz7vXds2wYzFayHe' WHERE "public"."cadenero_members"."id" = 477  (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" = 476 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 476 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 476 Completed 201 Created in 130ms (Views: 5.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/476" for 127.0.0.1 at 2013-07-17 14:37:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"476"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.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" = 371 AND "public"."cadenero_users"."id" = 476 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 476 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 476 Cadenero::V1::Account Load (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" = 476 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.4ms) Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37: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" = 476 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 476 Cadenero::V1::Account Load (0.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" = 476 Completed 201 Created in 7ms (Views: 4.9ms | 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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$9fS4BPeUnrvmp2KKnGsr6OnDbB9M3snHxR/GNkxEneIM3iRW9IUze"], ["updated_at", Wed, 17 Jul 2013 19:37: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" = '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", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 477], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jSq85iLSyTZpSpmsbFqs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 477, "created_at" = '2013-07-17 19:37:22.385509', "updated_at" = '2013-07-17 19:37:22.385509', "authentication_token" = 'jSq85iLSyTZpSpmsbFqs' WHERE "public"."cadenero_accounts"."id" = 372  (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", 372], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["user_id", 477]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XSQxnEj5cApWjW3VuMBC' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 372, "user_id" = 477, "created_at" = '2013-07-17 19:37:22.391149', "updated_at" = '2013-07-17 19:37:22.391149', "auth_token" = 'XSQxnEj5cApWjW3VuMBC' WHERE "public"."cadenero_members"."id" = 478  (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.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, "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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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-17 14:37: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 372 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" = 477 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 477 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 477 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 477 Completed 201 Created in 108ms (Views: 5.5ms | 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" = 372 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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" = 477 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$WiuVBOdvGUI4mVtbuXkG6uG8thHarZAqoKRdYMvywe8/TkK0D/.zO"], ["updated_at", Wed, 17 Jul 2013 19:37: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.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", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 478], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ppTiaAxrz6tjeHozQuUb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 478, "created_at" = '2013-07-17 19:37:22.765409', "updated_at" = '2013-07-17 19:37:22.765409', "authentication_token" = 'ppTiaAxrz6tjeHozQuUb' WHERE "public"."cadenero_accounts"."id" = 373  (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", 373], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["user_id", 478]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4FE6HMkVr9pDHyY2aswJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 373, "user_id" = 478, "created_at" = '2013-07-17 19:37:22.771072', "updated_at" = '2013-07-17 19:37:22.771072', "auth_token" = '4FE6HMkVr9pDHyY2aswJ' WHERE "public"."cadenero_members"."id" = 479  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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")  (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.0ms) 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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$vmGXbx4Kz/gkN/Z0rPvc1..dRulgJ.EknCp0pcDpuOr.WTBNWQJAm"], ["updated_at", Wed, 17 Jul 2013 19:37: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" = '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", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 479], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HnnwqGqmyPyN7yYgu6YY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 479, "created_at" = '2013-07-17 19:37:22.919198', "updated_at" = '2013-07-17 19:37:22.919198', "authentication_token" = 'HnnwqGqmyPyN7yYgu6YY' WHERE "public"."cadenero_accounts"."id" = 374  (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", 374], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:22 UTC +00:00], ["user_id", 479]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jWspU9z7WHzrp68y8bTc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 374, "user_id" = 479, "created_at" = '2013-07-17 19:37:22.924546', "updated_at" = '2013-07-17 19:37:22.924546', "auth_token" = 'jWspU9z7WHzrp68y8bTc' WHERE "public"."cadenero_members"."id" = 480  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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-17 14:37:22 -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.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$3aeQFoOW6UFNT8SUy1ZQnOEXes77zjqJq0JXYW27xL0h7gWWkSf5q"], ["updated_at", Wed, 17 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.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 480], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XTSWyzUZvWsqi9Ty7GFq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 480, "created_at" = '2013-07-17 19:37:23.076076', "updated_at" = '2013-07-17 19:37:23.076076', "authentication_token" = 'XTSWyzUZvWsqi9Ty7GFq' WHERE "public"."cadenero_accounts"."id" = 375  (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", 375], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["user_id", 480]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JzuZxBe6fE4r9dZ5KZEN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 375, "user_id" = 480, "created_at" = '2013-07-17 19:37:23.095340', "updated_at" = '2013-07-17 19:37:23.095340', "auth_token" = 'JzuZxBe6fE4r9dZ5KZEN' WHERE "public"."cadenero_members"."id" = 481  (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)   (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.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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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-17 14:37: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 375 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$CfeWL6mgjfBXu3z9y7XXg.PlLU2OXIk/gxFewKu7o8GGJeoqOUtPe"], ["updated_at", Wed, 17 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" = '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", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 481], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oTxVkP76gDNPD2Jfs8BU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 481, "created_at" = '2013-07-17 19:37:23.268746', "updated_at" = '2013-07-17 19:37:23.268746', "authentication_token" = 'oTxVkP76gDNPD2Jfs8BU' WHERE "public"."cadenero_accounts"."id" = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 376], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["user_id", 481]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2LKcEepsdCpuLLGwxZyr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 376, "user_id" = 481, "created_at" = '2013-07-17 19:37:23.274138', "updated_at" = '2013-07-17 19:37:23.274138', "auth_token" = '2LKcEepsdCpuLLGwxZyr' WHERE "public"."cadenero_members"."id" = 482  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:23 -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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$xRyf0iNCLfKlUHpv9VBOI.nTEeN6mXJZlp0d9hjuLFazPZu4M29Ly"], ["updated_at", Wed, 17 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" = '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", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 482], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Qbg5Y5zzV5z9zKw7CupG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 482, "created_at" = '2013-07-17 19:37:23.432579', "updated_at" = '2013-07-17 19:37:23.432579', "authentication_token" = 'Qbg5Y5zzV5z9zKw7CupG' WHERE "public"."cadenero_accounts"."id" = 377  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 377], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:23 UTC +00:00], ["user_id", 482]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yp5P6ppVqGRA2B8mevPD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 377, "user_id" = 482, "created_at" = '2013-07-17 19:37:23.437947', "updated_at" = '2013-07-17 19:37:23.437947', "auth_token" = 'yp5P6ppVqGRA2B8mevPD' WHERE "public"."cadenero_members"."id" = 483  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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")  (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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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-17 14:37: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 ('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" = 377 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK Connecting to database specified by database.yml  (20.1ms) BEGIN  (0.3ms) COMMIT  (4.7ms) BEGIN  (8.8ms) SAVEPOINT active_record_1 SQL (38.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ZHZhCGLtqXgfiCTjyscQB.Norcs4Rhg5x8E9KdsnQDdczKgsrmLgm"], ["updated_at", Wed, 17 Jul 2013 19:37:54 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (5.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 (20.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", Wed, 17 Jul 2013 19:37:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 483], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 19:37:54 UTC +00:00]] Cadenero::V1::Account Load (5.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yUtEWLJM6GcGGVAwVfeY' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 483, "created_at" = '2013-07-17 19:37:54.815902', "updated_at" = '2013-07-17 19:37:54.815902', "authentication_token" = 'yUtEWLJM6GcGGVAwVfeY' WHERE "public"."cadenero_accounts"."id" = 378  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.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", 378], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:54 UTC +00:00], ["user_id", 483]] Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HM1oGrXyGUhzDKTDAYb6' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 378, "user_id" = 483, "created_at" = '2013-07-17 19:37:54.975351', "updated_at" = '2013-07-17 19:37:54.975351', "auth_token" = 'HM1oGrXyGUhzDKTDAYb6' WHERE "public"."cadenero_members"."id" = 484  (10.0ms) RELEASE SAVEPOINT active_record_1  (10.0ms) 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)   (3.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, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.8ms) 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.8ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:55 -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 (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" = 378 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" = 483 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 483 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 483 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" = 483 Completed 201 Created in 187ms (Views: 68.2ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 378 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-17 14:37:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"483", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 483 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$dtK8qOn9pUhu0FcBEuCMme7HSRFCwPQM6Cb3IlTF8RBYHuL7tM8yK"], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 378], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["user_id", 484]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pxz89qdLvkvgHLmDxZZq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 378, "user_id" = 484, "created_at" = '2013-07-17 19:37:55.495331', "updated_at" = '2013-07-17 19:37:55.495331', "auth_token" = 'pxz89qdLvkvgHLmDxZZq' WHERE "public"."cadenero_members"."id" = 485  (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" = 484 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 484 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 484 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" = 484 Completed 201 Created in 118ms (Views: 6.1ms | 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/484" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"484"} 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" = 378 AND "public"."cadenero_users"."id" = 484 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 484 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 484 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 484 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 484 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 484 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 484 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 484 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" = 484 Completed 201 Created in 8ms (Views: 5.6ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$HSBVCQB1veELAGLI9ALKEOWeX0q16mk017Y4Np8KdUC3Kb3dagtR2"], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 485], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'en7MHVTrkh7k5RJLqK6H' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 485, "created_at" = '2013-07-17 19:37:55.659344', "updated_at" = '2013-07-17 19:37:55.659344', "authentication_token" = 'en7MHVTrkh7k5RJLqK6H' WHERE "public"."cadenero_accounts"."id" = 379  (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", 379], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["user_id", 485]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WirWT2vqiQLvp4GhrH8s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 379, "user_id" = 485, "created_at" = '2013-07-17 19:37:55.664647', "updated_at" = '2013-07-17 19:37:55.664647', "auth_token" = 'WirWT2vqiQLvp4GhrH8s' WHERE "public"."cadenero_members"."id" = 486  (0.1ms) 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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.9ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$mlY9culj4DuoZHZiuQmY9uQwPk1D0bs./WxVqpU/igMMC18vq9Myi"], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00]] SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 379], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["user_id", 486]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mfjNiqLBzF5h8nSogZid' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 379, "user_id" = 486, "created_at" = '2013-07-17 19:37:55.822453', "updated_at" = '2013-07-17 19:37:55.822453', "auth_token" = 'mfjNiqLBzF5h8nSogZid' WHERE "public"."cadenero_members"."id" = 487  (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" = 486 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 486 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 486 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 486 Completed 201 Created in 116ms (Views: 6.0ms | 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/486" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"486"} 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" = 379 AND "public"."cadenero_users"."id" = 486 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 486 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 486 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 486 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" = 486 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 486 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 486 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 486 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" = 486 Completed 201 Created in 9ms (Views: 5.0ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:55 -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" = 486 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$TZkwX8w/7UaLNi9aplYEheEj.rfiqHeU75W78XlubxA2DYTatqB4C"], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 487], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 19:37:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hAMcx19WLsc8gFXaqQ6y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 487, "created_at" = '2013-07-17 19:37:55.999396', "updated_at" = '2013-07-17 19:37:55.999396', "authentication_token" = 'hAMcx19WLsc8gFXaqQ6y' WHERE "public"."cadenero_accounts"."id" = 380  (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", 380], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["user_id", 487]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kwbnzutNUz8KsWpuHF2f' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 380, "user_id" = 487, "created_at" = '2013-07-17 19:37:56.004745', "updated_at" = '2013-07-17 19:37:56.004745', "auth_token" = 'kwbnzutNUz8KsWpuHF2f' WHERE "public"."cadenero_members"."id" = 488  (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)  (2.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")  (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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37: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" = 380 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 487 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 487 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 487 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 487 Completed 201 Created in 113ms (Views: 5.7ms | 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.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 380 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37: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" = 487 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$BuEip904wx7yo60M3GeHaecY9l2aeS.tO9spzjJYJlI7Y1grhRHoa"], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 488], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1uXsMW31mQ7dUhK4FTn7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 488, "created_at" = '2013-07-17 19:37:56.315377', "updated_at" = '2013-07-17 19:37:56.315377', "authentication_token" = '1uXsMW31mQ7dUhK4FTn7' WHERE "public"."cadenero_accounts"."id" = 381  (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", 381], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["user_id", 488]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6zw5HYY6aSjdRugG7MH9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 381, "user_id" = 488, "created_at" = '2013-07-17 19:37:56.320793', "updated_at" = '2013-07-17 19:37:56.320793', "auth_token" = '6zw5HYY6aSjdRugG7MH9' WHERE "public"."cadenero_members"."id" = 489  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37: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 (2.6ms) 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" = 381 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" = 488 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 488 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 488 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 488 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 4.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" = 381 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"488", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 488 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$1i1UbqQ6ag6MTYMJgs0CWeknADhRmsI4ZoMxR5bNZLd3ssPT36WyS"], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 489], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oAdpYsxZhF4D8Js5hoQx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 489, "created_at" = '2013-07-17 19:37:56.611678', "updated_at" = '2013-07-17 19:37:56.611678', "authentication_token" = 'oAdpYsxZhF4D8Js5hoQx' WHERE "public"."cadenero_accounts"."id" = 382  (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", 382], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["user_id", 489]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bGNzBVv7c9AxihsWA2Ty' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 382, "user_id" = 489, "created_at" = '2013-07-17 19:37:56.617271', "updated_at" = '2013-07-17 19:37:56.617271', "auth_token" = 'bGNzBVv7c9AxihsWA2Ty' WHERE "public"."cadenero_members"."id" = 490  (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.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.0ms) 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")  (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.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-17 14:37:56 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$gttvO2aHt.oA.lZ5yrasremZBF.Mjq.P36jDi/NuElm7W6eD3kyym"], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 490], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Vgjr4vZ3MCJosmnyB1io' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 490, "created_at" = '2013-07-17 19:37:56.876879', "updated_at" = '2013-07-17 19:37:56.876879', "authentication_token" = 'Vgjr4vZ3MCJosmnyB1io' WHERE "public"."cadenero_accounts"."id" = 383  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 383], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:56 UTC +00:00], ["user_id", 490]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3RWNEDj6ryUtL9EMQY1S' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 383, "user_id" = 490, "created_at" = '2013-07-17 19:37:56.882603', "updated_at" = '2013-07-17 19:37:56.882603', "auth_token" = '3RWNEDj6ryUtL9EMQY1S' WHERE "public"."cadenero_members"."id" = 491  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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, "auth_token" character varying(255))  (1.0ms) 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")  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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" = 383 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$JTRRNTkZGqLKhfrdWjqO5.VLC5P7wH6iuZ5kEmjwLmD7RCRNWnRDa"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 491], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sZczVJzLqKxqCMyVoqdY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 491, "created_at" = '2013-07-17 19:37:57.056873', "updated_at" = '2013-07-17 19:37:57.056873', "authentication_token" = 'sZczVJzLqKxqCMyVoqdY' WHERE "public"."cadenero_accounts"."id" = 384  (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", 384], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["user_id", 491]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'axAZw4xkUTDF1ci3xxif' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 384, "user_id" = 491, "created_at" = '2013-07-17 19:37:57.062967', "updated_at" = '2013-07-17 19:37:57.062967', "auth_token" = 'axAZw4xkUTDF1ci3xxif' WHERE "public"."cadenero_members"."id" = 492  (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.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.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37: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 ('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" = 384 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$XQakIe4cxyfBSv62X0aIT.D5Oyh1Fmgfo/R0QRr0uo/ytMLDO3Coy"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 492], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bL56pizHq9xytFNZoBJH' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 492, "created_at" = '2013-07-17 19:37:57.234130', "updated_at" = '2013-07-17 19:37:57.234130', "authentication_token" = 'bL56pizHq9xytFNZoBJH' WHERE "public"."cadenero_accounts"."id" = 385  (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", 385], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["user_id", 492]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2Pc89p3MMxbszPM8Yb8d' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 385, "user_id" = 492, "created_at" = '2013-07-17 19:37:57.239948', "updated_at" = '2013-07-17 19:37:57.239948', "auth_token" = '2Pc89p3MMxbszPM8Yb8d' WHERE "public"."cadenero_members"."id" = 493  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$yj0T8TXD/lg.Rpf5Qc5VQOgILkTPBDwbFsE8KgoQrcEhK9rsPqoh."], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 493], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eAGgQuMp8h3YJUxncvmB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 493, "created_at" = '2013-07-17 19:37:57.385225', "updated_at" = '2013-07-17 19:37:57.385225', "authentication_token" = 'eAGgQuMp8h3YJUxncvmB' WHERE "public"."cadenero_accounts"."id" = 386  (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", 386], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["user_id", 493]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rdrwpApzJUNpB2zBp2Up' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 386, "user_id" = 493, "created_at" = '2013-07-17 19:37:57.390324', "updated_at" = '2013-07-17 19:37:57.390324', "auth_token" = 'rdrwpApzJUNpB2zBp2Up' WHERE "public"."cadenero_members"."id" = 494  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 14:37:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 385 AND "public"."cadenero_users"."email" = '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  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$ZfxEYRMEcZ/dIFj6zf0nj.3y7FAu1q3AmMPeD97u5NfhtvFBDqiRK"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 494], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SfbyPsMVSB5M1uXTKsDn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 494, "created_at" = '2013-07-17 19:37:57.516537', "updated_at" = '2013-07-17 19:37:57.516537', "authentication_token" = 'SfbyPsMVSB5M1uXTKsDn' WHERE "public"."cadenero_accounts"."id" = 387  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 387], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 19:37:57 UTC +00:00], ["user_id", 494]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '74syE9DMq2A6R9VuA4Cp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 387, "user_id" = 494, "created_at" = '2013-07-17 19:37:57.522044', "updated_at" = '2013-07-17 19:37:57.522044', "auth_token" = '74syE9DMq2A6R9VuA4Cp' WHERE "public"."cadenero_members"."id" = 495  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 14:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.7ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (2.0ms) BEGIN  (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", Wed, 17 Jul 2013 20:11:48 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$dkbBfiXt7sZb8pAmEnH5HeSEAz3TupnSfE5tFDqghg..nYcC4XtoK"], ["updated_at", Wed, 17 Jul 2013 20:11:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.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 (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", Wed, 17 Jul 2013 20:11:48 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 495], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:11:48 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1cT8VXsqTNjVaDbuRuou' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 495, "created_at" = '2013-07-17 20:11:48.958366', "updated_at" = '2013-07-17 20:11:48.958366', "authentication_token" = '1cT8VXsqTNjVaDbuRuou' WHERE "public"."cadenero_accounts"."id" = 388  (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", 388], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["user_id", 495]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Joy95s2L75RtFgYpqVyp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 388, "user_id" = 495, "created_at" = '2013-07-17 20:11:49.065378', "updated_at" = '2013-07-17 20:11:49.065378', "auth_token" = 'Joy95s2L75RtFgYpqVyp' WHERE "public"."cadenero_members"."id" = 496  (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)   (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (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.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11: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 (1.1ms) 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" = 388 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" = 495 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 495 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 495 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" = 495 Completed 201 Created in 194ms (Views: 71.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 388 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-17 15:11:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"495", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 495 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11: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/users" for 127.0.0.1 at 2013-07-17 15:11:49 -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", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Ajrt.quRlpPjDLVNMW4qZOyRRNhoIACyGRhgzuj64dfX3Ox0xboNy"], ["updated_at", Wed, 17 Jul 2013 20:11:49 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", 388], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["user_id", 496]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fRcQkr21poNWYgTGBvaB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 388, "user_id" = 496, "created_at" = '2013-07-17 20:11:49.490372', "updated_at" = '2013-07-17 20:11:49.490372', "auth_token" = 'fRcQkr21poNWYgTGBvaB' WHERE "public"."cadenero_members"."id" = 497  (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" = 496 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 496 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 496 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 496 Completed 201 Created in 113ms (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/496" for 127.0.0.1 at 2013-07-17 15:11:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"496"} 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" = 388 AND "public"."cadenero_users"."id" = 496 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 496 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 496 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 496 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" = 496 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 1.7ms) 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-17 15:11:49 -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" = 496 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 496 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 496 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 496 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$l65NOBDx5nVIUuEXGVCjUu7JQNGaaiSMu3cfiWG.mYQDmYDPxXbpe"], ["updated_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 497], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tfhDuTsS8tteDpuGaLrR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 497, "created_at" = '2013-07-17 20:11:49.653800', "updated_at" = '2013-07-17 20:11:49.653800', "authentication_token" = 'tfhDuTsS8tteDpuGaLrR' WHERE "public"."cadenero_accounts"."id" = 389  (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", 389], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:49 UTC +00:00], ["user_id", 497]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CvaxuQzvEhfDoFcpjq6y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 389, "user_id" = 497, "created_at" = '2013-07-17 20:11:49.659254', "updated_at" = '2013-07-17 20:11:49.659254', "auth_token" = 'CvaxuQzvEhfDoFcpjq6y' WHERE "public"."cadenero_members"."id" = 498  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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")  (0.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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11: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-17 15:11: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 389 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 497 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 497 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 497 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" = 497 Completed 201 Created in 142ms (Views: 6.1ms | 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' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 389 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11:49 -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" = 497 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (26.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$7C.DX0JDTsZacPbXXScQCu40Y4PsDeP4oYBBGntD22yAtOv.uqv3y"], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 498], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QxKAQ2eqJiAHqFoBZdZ5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 498, "created_at" = '2013-07-17 20:11:50.016771', "updated_at" = '2013-07-17 20:11:50.016771', "authentication_token" = 'QxKAQ2eqJiAHqFoBZdZ5' WHERE "public"."cadenero_accounts"."id" = 390  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 390], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["user_id", 498]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'exaaq4NQz6itHp9dCqdU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 390, "user_id" = 498, "created_at" = '2013-07-17 20:11:50.022168', "updated_at" = '2013-07-17 20:11:50.022168', "auth_token" = 'exaaq4NQz6itHp9dCqdU' WHERE "public"."cadenero_members"."id" = 499  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) 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.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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (12.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (13.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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11: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/users" for 127.0.0.1 at 2013-07-17 15:11:50 -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 (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$iQJnvehNS337Yi/YBLwS5uF4QpFsBhPuPm0jzGp2JL6ZPIVFWpeU."], ["updated_at", Wed, 17 Jul 2013 20:11:50 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", 390], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["user_id", 499]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mjACyj5sMtWZinyP7cwm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 390, "user_id" = 499, "created_at" = '2013-07-17 20:11:50.217754', "updated_at" = '2013-07-17 20:11:50.217754', "auth_token" = 'mjACyj5sMtWZinyP7cwm' WHERE "public"."cadenero_members"."id" = 500  (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" = 499 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 499 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 499 Completed 201 Created in 116ms (Views: 6.0ms | 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/499" for 127.0.0.1 at 2013-07-17 15:11:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"499"} 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" = 390 AND "public"."cadenero_users"."id" = 499 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 499 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 499 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 499 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11:50 -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" = 499 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 499 Cadenero::V1::Account Load (0.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" = 499 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.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" for 127.0.0.1 at 2013-07-17 15:11:50 -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" = 499 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Qs3EFGhmOrBeTaNP2BO7He6D7r5EpZSByC9oisnrueyrDFbssjBha"], ["updated_at", Wed, 17 Jul 2013 20:11: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" = '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", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 500], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VjRps78Qy2pzH8GBbMQc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 500, "created_at" = '2013-07-17 20:11:50.394985', "updated_at" = '2013-07-17 20:11:50.394985', "authentication_token" = 'VjRps78Qy2pzH8GBbMQc' WHERE "public"."cadenero_accounts"."id" = 391  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 391], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["user_id", 500]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sjX5332UMt9yWZq5LNLk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 391, "user_id" = 500, "created_at" = '2013-07-17 20:11:50.400450', "updated_at" = '2013-07-17 20:11:50.400450', "auth_token" = 'sjX5332UMt9yWZq5LNLk' WHERE "public"."cadenero_members"."id" = 501  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11: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.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" = 391 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" = 500 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 Completed 201 Created in 110ms (Views: 7.0ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 391 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"500", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11: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.2ms | ActiveRecord: 0.0ms)  (6.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$1Fsh.Ly3BETtJf4/Jx9W/ejwIuLpMJhAEaR4xoQNuwX9m3YwXFFRm"], ["updated_at", Wed, 17 Jul 2013 20:11: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" = '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", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 501], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PywfzsR9PNEb9ZiwjoJ7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 501, "created_at" = '2013-07-17 20:11:50.718507', "updated_at" = '2013-07-17 20:11:50.718507', "authentication_token" = 'PywfzsR9PNEb9ZiwjoJ7' WHERE "public"."cadenero_accounts"."id" = 392  (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", 392], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["user_id", 501]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's9PNiv34L42AcBvQU9B8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 392, "user_id" = 501, "created_at" = '2013-07-17 20:11:50.724393', "updated_at" = '2013-07-17 20:11:50.724393', "auth_token" = 's9PNiv34L42AcBvQU9B8' WHERE "public"."cadenero_members"."id" = 502  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (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.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.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-17 15:11:50 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$/FsTWdTzcaxFYkqbmE7PdeOa5.67EdUTFmieoftLohmcLc1ixPqa6"], ["updated_at", Wed, 17 Jul 2013 20:11: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.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", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 502], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QULF2MmtUGRjhSbuCh4k' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 502, "created_at" = '2013-07-17 20:11:50.935439', "updated_at" = '2013-07-17 20:11:50.935439', "authentication_token" = 'QULF2MmtUGRjhSbuCh4k' WHERE "public"."cadenero_accounts"."id" = 393  (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", 393], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:50 UTC +00:00], ["user_id", 502]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PD7rAqxoaxkyTwty7y3i' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 393, "user_id" = 502, "created_at" = '2013-07-17 20:11:50.940975', "updated_at" = '2013-07-17 20:11:50.940975', "auth_token" = 'PD7rAqxoaxkyTwty7y3i' WHERE "public"."cadenero_members"."id" = 503  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11: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 ('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" = 393 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$5N4wcpGtcWq1IF3kRE4pYuG7CsVT86vQtLOCmzxDq2a0lr1dgB4xe"], ["updated_at", Wed, 17 Jul 2013 20:11: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", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 503], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ff2s78xMG1f16tCTH4tN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 503, "created_at" = '2013-07-17 20:11:51.106483', "updated_at" = '2013-07-17 20:11:51.106483', "authentication_token" = 'ff2s78xMG1f16tCTH4tN' WHERE "public"."cadenero_accounts"."id" = 394  (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", 394], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["user_id", 503]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'k15LQZ7jPrT9J9Cx8JjQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 394, "user_id" = 503, "created_at" = '2013-07-17 20:11:51.112293', "updated_at" = '2013-07-17 20:11:51.112293', "auth_token" = 'k15LQZ7jPrT9J9Cx8JjQ' WHERE "public"."cadenero_members"."id" = 504  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 394 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$heZLQoV9X5ZIhDi0GwMkC.YomeI/J3J5l7hmMiCzlJd72d94j0rTK"], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) 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", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 504], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'idPy1xvzsP6Qpo5VLAyf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 504, "created_at" = '2013-07-17 20:11:51.284575', "updated_at" = '2013-07-17 20:11:51.284575', "authentication_token" = 'idPy1xvzsP6Qpo5VLAyf' WHERE "public"."cadenero_accounts"."id" = 395  (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", 395], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["user_id", 504]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FFrjDkmxxtPpC9wywocn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 395, "user_id" = 504, "created_at" = '2013-07-17 20:11:51.290099', "updated_at" = '2013-07-17 20:11:51.290099', "auth_token" = 'FFrjDkmxxtPpC9wywocn' WHERE "public"."cadenero_members"."id" = 505  (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.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.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.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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$R6f0qAnE18s7TX6dCbSbPOtcqSiKHQVsWS5a9EXVZcS8FuZa/QUey"], ["updated_at", Wed, 17 Jul 2013 20:11: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" = '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", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 505], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VPc9Qx1CVYprGFftqLah' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 505, "created_at" = '2013-07-17 20:11:51.437114', "updated_at" = '2013-07-17 20:11:51.437114', "authentication_token" = 'VPc9Qx1CVYprGFftqLah' WHERE "public"."cadenero_accounts"."id" = 396  (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", 396], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["user_id", 505]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kta98XMHn2pvRLfUdFYJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 396, "user_id" = 505, "created_at" = '2013-07-17 20:11:51.442759', "updated_at" = '2013-07-17 20:11:51.442759', "auth_token" = 'kta98XMHn2pvRLfUdFYJ' WHERE "public"."cadenero_members"."id" = 506  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:11: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') 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" = 395 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | 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  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$lu3Q.iz58l8ABWei/QY3QesaU2C.H9me/ODY1lsZZCYpUCHPz8g.."], ["updated_at", Wed, 17 Jul 2013 20:11: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" = '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", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 506], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RRYYuTh2MGyqA2ScLjp1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 506, "created_at" = '2013-07-17 20:11:51.575827', "updated_at" = '2013-07-17 20:11:51.575827', "authentication_token" = 'RRYYuTh2MGyqA2ScLjp1' WHERE "public"."cadenero_accounts"."id" = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 397], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:11:51 UTC +00:00], ["user_id", 506]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PpkYCpypxaQkRYX9qQRT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 397, "user_id" = 506, "created_at" = '2013-07-17 20:11:51.581509', "updated_at" = '2013-07-17 20:11:51.581509', "auth_token" = 'PpkYCpypxaQkRYX9qQRT' WHERE "public"."cadenero_members"."id" = 507  (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.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, "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.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)  (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:11:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1?auth_token=dasdarre3434" for 127.0.0.1 at 2013-07-17 15:11:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>"dasdarre3434", "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (2.7ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$lM/X7NpPmRQ/rGTwClX8fuucWmVs5uI4tFRvI.8mVaYl.5kWIidL6"], ["updated_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.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 (12.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", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 507], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00]] Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sfxsf7DKeYuswKWhWnVH' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 507, "created_at" = '2013-07-17 20:13:22.198271', "updated_at" = '2013-07-17 20:13:22.198271', "authentication_token" = 'sfxsf7DKeYuswKWhWnVH' WHERE "public"."cadenero_accounts"."id" = 398  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 SQL (13.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 398], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["user_id", 507]] Cadenero::Member Load (3.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VrFyXTqLa1VaYKD3goVq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 398, "user_id" = 507, "created_at" = '2013-07-17 20:13:22.332938', "updated_at" = '2013-07-17 20:13:22.332938', "auth_token" = 'VrFyXTqLa1VaYKD3goVq' WHERE "public"."cadenero_members"."id" = 508  (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")  (1.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, "auth_token" character varying(255))  (0.8ms) 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")  (0.7ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:13: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" = 398 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" = 507 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 507 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 507 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" = 507 Completed 201 Created in 205ms (Views: 77.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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 398 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:13:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"507", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 507 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$MKQvpWQhMlG3LUMxmrd4O.0KbmpsWvFkhvlUbHmvCOEG7bMb372EC"], ["updated_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 508], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C6t7EwkzCMMars7ysoUK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 508, "created_at" = '2013-07-17 20:13:22.835104', "updated_at" = '2013-07-17 20:13:22.835104', "authentication_token" = 'C6t7EwkzCMMars7ysoUK' WHERE "public"."cadenero_accounts"."id" = 399  (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", 399], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:22 UTC +00:00], ["user_id", 508]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PpWezUriyYxRJYqpHNB8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 399, "user_id" = 508, "created_at" = '2013-07-17 20:13:22.840666', "updated_at" = '2013-07-17 20:13:22.840666', "auth_token" = 'PpWezUriyYxRJYqpHNB8' WHERE "public"."cadenero_members"."id" = 509  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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-17 15:13: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.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" = 399 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 508 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 508 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 508 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" = 508 Completed 201 Created in 113ms (Views: 10.1ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 399 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13:23 -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" = 508 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$GOSV/iAbeEUAyKwmk2pxZOgk9pNPRIIugqz7dOPwnYSvY0AgHNdxC"], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 509], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ojmRUvxWMPHMN67GbCNs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 509, "created_at" = '2013-07-17 20:13:23.144900', "updated_at" = '2013-07-17 20:13:23.144900', "authentication_token" = 'ojmRUvxWMPHMN67GbCNs' WHERE "public"."cadenero_accounts"."id" = 400  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 400], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["user_id", 509]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '51jW3CHRe4pUNrdw4WKi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 400, "user_id" = 509, "created_at" = '2013-07-17 20:13:23.150328', "updated_at" = '2013-07-17 20:13:23.150328', "auth_token" = '51jW3CHRe4pUNrdw4WKi' WHERE "public"."cadenero_members"."id" = 510  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (0.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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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-17 15:13: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 (2.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", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$x13Cc8IKccd4Riw6Qnb8Y.HepY26ZIsLDVfSv7g/p5ScLs9MosPOa"], ["updated_at", Wed, 17 Jul 2013 20:13:23 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", 400], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["user_id", 510]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BYX2LZxQzgdsPJeRp9Z6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 400, "user_id" = 510, "created_at" = '2013-07-17 20:13:23.313971', "updated_at" = '2013-07-17 20:13:23.313971', "auth_token" = 'BYX2LZxQzgdsPJeRp9Z6' WHERE "public"."cadenero_members"."id" = 511  (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" = 510 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 510 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 510 Completed 201 Created in 119ms (Views: 6.0ms | 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/510" for 127.0.0.1 at 2013-07-17 15:13:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"510"} 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" = 400 AND "public"."cadenero_users"."id" = 510 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 510 Cadenero::V1::Account Load (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" = 510 Completed 200 OK in 12ms (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-17 15:13: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 510 Cadenero::V1::Account Load (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" = 510 Completed 201 Created in 9ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13:23 -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" = 510 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$dn5L2rdtyHfzIWrtrgO8MeIniGKpBDpPUTn5UTBGwE4iCdY4BJbpa"], ["updated_at", Wed, 17 Jul 2013 20:13: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" = '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", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 511], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B7VyHQHuxLSUpqm5Hpp4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 511, "created_at" = '2013-07-17 20:13:23.488327', "updated_at" = '2013-07-17 20:13:23.488327', "authentication_token" = 'B7VyHQHuxLSUpqm5Hpp4' WHERE "public"."cadenero_accounts"."id" = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 401], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["user_id", 511]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cnXXwxLJtz7Q2gwPQd9K' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 401, "user_id" = 511, "created_at" = '2013-07-17 20:13:23.493769', "updated_at" = '2013-07-17 20:13:23.493769', "auth_token" = 'cnXXwxLJtz7Q2gwPQd9K' WHERE "public"."cadenero_members"."id" = 512  (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.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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:13: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.3ms) 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" = 401 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" = 511 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 511 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 511 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 511 Completed 201 Created in 113ms (Views: 5.8ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 401 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:13:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"511", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 511 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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/users" for 127.0.0.1 at 2013-07-17 15:13: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" = '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", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$SpM3kbvDLkgxvAjWRGyazuIhA7a0gfX5ycwv0jVkwVBsOxKu.oYs2"], ["updated_at", Wed, 17 Jul 2013 20:13:23 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", 401], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["user_id", 512]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's7pw5kwVChqvgQyZewUh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 401, "user_id" = 512, "created_at" = '2013-07-17 20:13:23.780353', "updated_at" = '2013-07-17 20:13:23.780353', "auth_token" = 's7pw5kwVChqvgQyZewUh' WHERE "public"."cadenero_members"."id" = 513  (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" = 512 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 512 Completed 201 Created in 116ms (Views: 5.6ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/512" for 127.0.0.1 at 2013-07-17 15:13:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"512"} 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" = 401 AND "public"."cadenero_users"."id" = 512 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 Cadenero::V1::Account Load (0.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" = 512 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:13: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 (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 512 Completed 201 Created in 9ms (Views: 5.1ms | 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  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yaaRhTpXiUlAInyic4g.eej.qwnK45.FnhSwiKvTjgMwd4SSlCLpS"], ["updated_at", Wed, 17 Jul 2013 20:13: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" = '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", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 513], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2si3zxtU7Y3ypTW8zdq2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 513, "created_at" = '2013-07-17 20:13:23.935955', "updated_at" = '2013-07-17 20:13:23.935955', "authentication_token" = '2si3zxtU7Y3ypTW8zdq2' WHERE "public"."cadenero_accounts"."id" = 402  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 402], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:23 UTC +00:00], ["user_id", 513]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SZppVQ6MctvAGrddfwKc' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 402, "user_id" = 513, "created_at" = '2013-07-17 20:13:23.941503', "updated_at" = '2013-07-17 20:13:23.941503', "auth_token" = 'SZppVQ6MctvAGrddfwKc' WHERE "public"."cadenero_members"."id" = 514  (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)  (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.0ms) 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")  (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 ('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.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", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$x1yhiTl1j8j7oxgOfrDBeObpnWOLtTC.ufF69HsI0DLqx93vtWGn6"], ["updated_at", Wed, 17 Jul 2013 20:13: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" = '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", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 514], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rihtgRywMhpRtfAqoNnu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 514, "created_at" = '2013-07-17 20:13:24.161764', "updated_at" = '2013-07-17 20:13:24.161764', "authentication_token" = 'rihtgRywMhpRtfAqoNnu' WHERE "public"."cadenero_accounts"."id" = 403  (0.3ms) 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", 403], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["user_id", 514]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HAMfLzsmbfvx2b7gybs1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 403, "user_id" = 514, "created_at" = '2013-07-17 20:13:24.168132', "updated_at" = '2013-07-17 20:13:24.168132', "auth_token" = 'HAMfLzsmbfvx2b7gybs1' WHERE "public"."cadenero_members"."id" = 515  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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-17 15:13: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.4ms) 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" = 402 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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  (8.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Dr/74Xcb.aE0jKWvbxoPI.OoYnA8rLBUMLkC4tyUOck7zEt/4M6nS"], ["updated_at", Wed, 17 Jul 2013 20:13: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.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", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 515], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hwc4sU6gdx1XwemsKJqg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 515, "created_at" = '2013-07-17 20:13:24.304583', "updated_at" = '2013-07-17 20:13:24.304583', "authentication_token" = 'hwc4sU6gdx1XwemsKJqg' WHERE "public"."cadenero_accounts"."id" = 404  (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", 404], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["user_id", 515]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hfR14sozFHeULEeFbRip' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 404, "user_id" = 515, "created_at" = '2013-07-17 20:13:24.310918', "updated_at" = '2013-07-17 20:13:24.310918', "auth_token" = 'hfR14sozFHeULEeFbRip' WHERE "public"."cadenero_members"."id" = 516  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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-17 15:13: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 404 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$w/hdzt8ic73OV9WkswKh.OOnCioDvjYvZ3ulrF53eIKy5FcyfBG8e"], ["updated_at", Wed, 17 Jul 2013 20:13: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" = '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", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 516], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qnvXwbHnyzqFL2kDq4iS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 516, "created_at" = '2013-07-17 20:13:24.480863', "updated_at" = '2013-07-17 20:13:24.480863', "authentication_token" = 'qnvXwbHnyzqFL2kDq4iS' WHERE "public"."cadenero_accounts"."id" = 405  (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", 405], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["user_id", 516]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'a1AxGPDz1xJy8jPGY96k' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 405, "user_id" = 516, "created_at" = '2013-07-17 20:13:24.486543', "updated_at" = '2013-07-17 20:13:24.486543', "auth_token" = 'a1AxGPDz1xJy8jPGY96k' WHERE "public"."cadenero_members"."id" = 517  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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, "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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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-17 15:13: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 405 AND "public"."cadenero_users"."email" = 'foo@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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Xz8CoUFmg4iY6DIw7jnRGOHAnVZcWKyBMfujOzKFTqgbaqRd1Kq32"], ["updated_at", Wed, 17 Jul 2013 20:13:24 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", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 517], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'y1Se2C5YzVExghq128A5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 517, "created_at" = '2013-07-17 20:13:24.658523', "updated_at" = '2013-07-17 20:13:24.658523', "authentication_token" = 'y1Se2C5YzVExghq128A5' WHERE "public"."cadenero_accounts"."id" = 406  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 406], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["user_id", 517]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4PsbXr9fyop2scGqy85s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 406, "user_id" = 517, "created_at" = '2013-07-17 20:13:24.664105', "updated_at" = '2013-07-17 20:13:24.664105', "auth_token" = '4PsbXr9fyop2scGqy85s' WHERE "public"."cadenero_members"."id" = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (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.0ms) 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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:13:24 -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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$hLlDov4f2RzJnM2QVJY6LOeyGLaIpFfZDOYzGhnUQ3okVC1GMcpvu"], ["updated_at", Wed, 17 Jul 2013 20:13: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 518], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CQVPsBkHyKyUrDiCybqt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 518, "created_at" = '2013-07-17 20:13:24.824216', "updated_at" = '2013-07-17 20:13:24.824216', "authentication_token" = 'CQVPsBkHyKyUrDiCybqt' WHERE "public"."cadenero_accounts"."id" = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 407], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:13:24 UTC +00:00], ["user_id", 518]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JZok4c3uwum6WtNkQVVi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 407, "user_id" = 518, "created_at" = '2013-07-17 20:13:24.829793', "updated_at" = '2013-07-17 20:13:24.829793', "auth_token" = 'JZok4c3uwum6WtNkQVVi' WHERE "public"."cadenero_members"."id" = 519  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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)  (0.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:13: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 518 Started GET "/v1?auth_token[]=JZok4c3uwum6WtNkQVVi" for 127.0.0.1 at 2013-07-17 15:13:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["JZok4c3uwum6WtNkQVVi"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) BEGIN  (0.3ms) COMMIT  (7.9ms) BEGIN  (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", Wed, 17 Jul 2013 20:20:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$QHuVv9.79UqgTFVWmfS4legj14T4l/cW8ny1bK1N.X16twtkbmQLe"], ["updated_at", Wed, 17 Jul 2013 20:20:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 519], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dxD6Myc7xFVHzcJxPqCk' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 519, "created_at" = '2013-07-17 20:20:54.019636', "updated_at" = '2013-07-17 20:20:54.019636', "authentication_token" = 'dxD6Myc7xFVHzcJxPqCk' WHERE "public"."cadenero_accounts"."id" = 408  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.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", 408], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["user_id", 519]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZBzYKpNjgqsLpybcs54r' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 408, "user_id" = 519, "created_at" = '2013-07-17 20:20:54.140612', "updated_at" = '2013-07-17 20:20:54.140612', "auth_token" = 'ZBzYKpNjgqsLpybcs54r' WHERE "public"."cadenero_members"."id" = 520  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (27.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.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, "auth_token" character varying(255))  (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:54 -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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 408 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 519 LIMIT 1 Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 519 Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 519 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" = 519 Completed 201 Created in 243ms (Views: 30.8ms | ActiveRecord: 16.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 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 408 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 519 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$pvumjqt.QLYdpqjkgC/qi.RAdsYka1RtPA0a0tOyiG6ZkEtYmhQ4C"], ["updated_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 520], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uyvxVSESkvFqubAQpQKD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 520, "created_at" = '2013-07-17 20:20:54.761306', "updated_at" = '2013-07-17 20:20:54.761306', "authentication_token" = 'uyvxVSESkvFqubAQpQKD' WHERE "public"."cadenero_accounts"."id" = 409  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 409], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:54 UTC +00:00], ["user_id", 520]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gyse4YgKLitjUSDZRiN6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 409, "user_id" = 520, "created_at" = '2013-07-17 20:20:54.768777', "updated_at" = '2013-07-17 20:20:54.768777', "auth_token" = 'gyse4YgKLitjUSDZRiN6' WHERE "public"."cadenero_members"."id" = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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")  (0.7ms) 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")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 409 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 520 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 520 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 520 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" = 520 Completed 201 Created in 113ms (Views: 9.7ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 409 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"520", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 520 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$kxOI8WlnCVlTjE14KlIxi.vcZvY/vTgmATa.WDbamTXiccxD9JXpS"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 521], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bhazm1yzdfzsGaVEM6qB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 521, "created_at" = '2013-07-17 20:20:55.062428', "updated_at" = '2013-07-17 20:20:55.062428', "authentication_token" = 'bhazm1yzdfzsGaVEM6qB' WHERE "public"."cadenero_accounts"."id" = 410  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 410], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["user_id", 521]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JACYRMB2pFiPdv1cFvEk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 410, "user_id" = 521, "created_at" = '2013-07-17 20:20:55.068392', "updated_at" = '2013-07-17 20:20:55.068392', "auth_token" = 'JACYRMB2pFiPdv1cFvEk' WHERE "public"."cadenero_members"."id" = 522  (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")  (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))  (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")  (0.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.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" = 410 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" = 521 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 Completed 201 Created in 117ms (Views: 5.8ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 410 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-17 15:20:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"521", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (1.2ms) 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", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$GEd02e5hSDZdz67bGO9osuWF3V17phRMSq7m2Iefr3MQs1zN2NOFW"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 410], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["user_id", 522]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D8Lha4nMCq3E7n12KAF2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 410, "user_id" = 522, "created_at" = '2013-07-17 20:20:55.359473', "updated_at" = '2013-07-17 20:20:55.359473', "auth_token" = 'D8Lha4nMCq3E7n12KAF2' WHERE "public"."cadenero_members"."id" = 523  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 522 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 522 Completed 201 Created in 120ms (Views: 5.8ms | 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' LIMIT 1 Started GET "/v1/users/522" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"522"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 410 AND "public"."cadenero_users"."id" = 522 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 522 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 Cadenero::V1::Account Load (0.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" = 522 Completed 200 OK in 14ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20: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" = 522 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 522 Completed 201 Created in 7ms (Views: 4.8ms | 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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$s.6g909scnJogbqbFDO.tuuweIMxLAV4GUXis5WGeX5LydHHzhvDC"], ["updated_at", Wed, 17 Jul 2013 20:20: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" = '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", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 523], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RBY2q57c4kd1s2TUyvcX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 523, "created_at" = '2013-07-17 20:20:55.542000', "updated_at" = '2013-07-17 20:20:55.542000', "authentication_token" = 'RBY2q57c4kd1s2TUyvcX' WHERE "public"."cadenero_accounts"."id" = 411  (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", 411], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["user_id", 523]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pyRu7517PugqeZFPR6iG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 411, "user_id" = 523, "created_at" = '2013-07-17 20:20:55.548809', "updated_at" = '2013-07-17 20:20:55.548809', "auth_token" = 'pyRu7517PugqeZFPR6iG' WHERE "public"."cadenero_members"."id" = 524  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 15:20: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-17 15:20: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) 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", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$NgNJoepJdhMiyxkk9ejzvu4QV.MbiRTaWF52u6QqjInyoJA83RJ9O"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 411], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["user_id", 524]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oEeYyX6iHPFSKA2hQabC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 411, "user_id" = 524, "created_at" = '2013-07-17 20:20:55.711216', "updated_at" = '2013-07-17 20:20:55.711216', "auth_token" = 'oEeYyX6iHPFSKA2hQabC' WHERE "public"."cadenero_members"."id" = 525  (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" = 524 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 Cadenero::V1::Account Load (0.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" = 524 Completed 201 Created in 117ms (Views: 5.9ms | 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/524" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"524"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 411 AND "public"."cadenero_users"."id" = 524 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 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" = 524 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20: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" = 524 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 Completed 201 Created in 7ms (Views: 5.1ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20: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" = 524 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$qiXYswMwMYubJje4Qi79f.TCBp6tPCFt52b.rjDa.tBoMw9j.ZB4a"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 525], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uT69YCrV7fqU2URAXwWZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 525, "created_at" = '2013-07-17 20:20:55.874346', "updated_at" = '2013-07-17 20:20:55.874346', "authentication_token" = 'uT69YCrV7fqU2URAXwWZ' WHERE "public"."cadenero_accounts"."id" = 412  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 412], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:55 UTC +00:00], ["user_id", 525]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MqpZBxF3WFNyQ9jYm6RR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 412, "user_id" = 525, "created_at" = '2013-07-17 20:20:55.879812', "updated_at" = '2013-07-17 20:20:55.879812', "auth_token" = 'MqpZBxF3WFNyQ9jYm6RR' WHERE "public"."cadenero_members"."id" = 526  (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.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, "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.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)   (2.1ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 412 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$amKelTZZca4Xx.gK.Y7iG.rx0Sm3IY1dKBAqk00dL/9ZqviqjPhfS"], ["updated_at", Wed, 17 Jul 2013 20:20:56 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 526], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qsv3pCHP9yL4A1ppsfs3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 526, "created_at" = '2013-07-17 20:20:56.131029', "updated_at" = '2013-07-17 20:20:56.131029', "authentication_token" = 'qsv3pCHP9yL4A1ppsfs3' WHERE "public"."cadenero_accounts"."id" = 413  (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", 413], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["user_id", 526]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ELQx1aZsessxX7ibMDHj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 413, "user_id" = 526, "created_at" = '2013-07-17 20:20:56.136821', "updated_at" = '2013-07-17 20:20:56.136821', "auth_token" = 'ELQx1aZsessxX7ibMDHj' WHERE "public"."cadenero_members"."id" = 527  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$twWXct4aVGDkT6ZiIzCEdOhLCsBElrEXMl5ewF1zoYI9FAS84RxKG"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 527], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Kwiiu9QbUgk2Y7qK1D7B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 527, "created_at" = '2013-07-17 20:20:56.287913', "updated_at" = '2013-07-17 20:20:56.287913', "authentication_token" = 'Kwiiu9QbUgk2Y7qK1D7B' WHERE "public"."cadenero_accounts"."id" = 414  (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", 414], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["user_id", 527]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'idrLbNCbwBXJaquwaspy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 414, "user_id" = 527, "created_at" = '2013-07-17 20:20:56.293207', "updated_at" = '2013-07-17 20:20:56.293207', "auth_token" = 'idrLbNCbwBXJaquwaspy' WHERE "public"."cadenero_members"."id" = 528  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_users"."email" = 'user7@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  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$LF3B9FvzEhQ9wSqyYpygXudyubOXnncwm4luxjHBtatwbq8KuBIq2"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 528], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VhzQUxpRg4zRcb2gV5BZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 528, "created_at" = '2013-07-17 20:20:56.421955', "updated_at" = '2013-07-17 20:20:56.421955', "authentication_token" = 'VhzQUxpRg4zRcb2gV5BZ' WHERE "public"."cadenero_accounts"."id" = 415  (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", 415], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["user_id", 528]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qyYAgU6yozewMLDVLJHf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 415, "user_id" = 528, "created_at" = '2013-07-17 20:20:56.427384', "updated_at" = '2013-07-17 20:20:56.427384', "auth_token" = 'qyYAgU6yozewMLDVLJHf' WHERE "public"."cadenero_members"."id" = 529  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:56 -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  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$PEcY3bxW0PUXuaVFQ9ClKOwQQ1B8VOs.HBKgQNZ2eHJbFoLKl9PWW"], ["updated_at", Wed, 17 Jul 2013 20:20: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" = '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", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 529], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5PHPSNUNcQzK4SdiD3hi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 529, "created_at" = '2013-07-17 20:20:56.585716', "updated_at" = '2013-07-17 20:20:56.585716', "authentication_token" = '5PHPSNUNcQzK4SdiD3hi' WHERE "public"."cadenero_accounts"."id" = 416  (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", 416], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["user_id", 529]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AosEV4G7aHRunyG6ix5F' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 416, "user_id" = 529, "created_at" = '2013-07-17 20:20:56.591136', "updated_at" = '2013-07-17 20:20:56.591136', "auth_token" = 'AosEV4G7aHRunyG6ix5F' WHERE "public"."cadenero_members"."id" = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:20:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 416 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$jB3/Bt3gjhVqb/lKX7Oeou1bnCogEfEUOkWUU3wqF4gkLTtwGil2K"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 530], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ubpsayEF3B5SXmwNFpmy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 530, "created_at" = '2013-07-17 20:20:56.763111', "updated_at" = '2013-07-17 20:20:56.763111', "authentication_token" = 'ubpsayEF3B5SXmwNFpmy' WHERE "public"."cadenero_accounts"."id" = 417  (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", 417], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:20:56 UTC +00:00], ["user_id", 530]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'woA1ZdrUExopd743mx6c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 417, "user_id" = 530, "created_at" = '2013-07-17 20:20:56.768812', "updated_at" = '2013-07-17 20:20:56.768812', "auth_token" = 'woA1ZdrUExopd743mx6c' WHERE "public"."cadenero_members"."id" = 531  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:20:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 530 Started GET "/v1?auth_token[]=woA1ZdrUExopd743mx6c" for 127.0.0.1 at 2013-07-17 15:20:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["woA1ZdrUExopd743mx6c"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.7ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) 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", Wed, 17 Jul 2013 20:26:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$U3OVwWV7xCLKA2UXd.uer.wUidsnkKqRVioJnNn7xO0NE5/DjDqpO"], ["updated_at", Wed, 17 Jul 2013 20:26:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 531], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:26:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Thqqbq7FLdBKyDye77Wp' LIMIT 1  (5.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 531, "created_at" = '2013-07-17 20:26:37.643314', "updated_at" = '2013-07-17 20:26:37.643314', "authentication_token" = 'Thqqbq7FLdBKyDye77Wp' WHERE "public"."cadenero_accounts"."id" = 418  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) 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", 418], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:37 UTC +00:00], ["user_id", 531]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ofNkQHxyQAcmWg2wTzEP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 418, "user_id" = 531, "created_at" = '2013-07-17 20:26:37.783721', "updated_at" = '2013-07-17 20:26:37.783721', "auth_token" = 'ofNkQHxyQAcmWg2wTzEP' WHERE "public"."cadenero_members"."id" = 532  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.0ms) 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")  (19.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.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)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26: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 13ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 418 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" = 531 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 531 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 531 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" = 531 Completed 201 Created in 147ms (Views: 29.7ms | 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.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 418 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26:38 -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" = 531 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (8.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$k9nyoFq22NFXYCoCkwyCXuIiHtgMQBxEVpGiRiHIL8cGBOX5y7P7."], ["updated_at", Wed, 17 Jul 2013 20:26: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" = '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", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 532], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wYFsRdDsh8Xa1nPGdXvj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 532, "created_at" = '2013-07-17 20:26:38.387529', "updated_at" = '2013-07-17 20:26:38.387529', "authentication_token" = 'wYFsRdDsh8Xa1nPGdXvj' WHERE "public"."cadenero_accounts"."id" = 419  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 419], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["user_id", 532]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NYGN87Kykji2D4zsVQ1c' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 419, "user_id" = 532, "created_at" = '2013-07-17 20:26:38.393541', "updated_at" = '2013-07-17 20:26:38.393541', "auth_token" = 'NYGN87Kykji2D4zsVQ1c' WHERE "public"."cadenero_members"."id" = 533  (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)  (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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:38 -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.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" = 419 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (3.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 532 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 532 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 532 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 532 Completed 201 Created in 115ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 419 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:38 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"532", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 532 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26:38 -0500 Processing by 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.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:26:38 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$J0Ustj8xl9JRDRX74Fu8Uuxzf3MbjCTtGmm06GK4tfgm5lR7SEzIy"], ["updated_at", Wed, 17 Jul 2013 20:26:38 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", 419], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["user_id", 533]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zdFyznEJaNcu6FwzqigX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 419, "user_id" = 533, "created_at" = '2013-07-17 20:26:38.693272', "updated_at" = '2013-07-17 20:26:38.693272', "auth_token" = 'zdFyznEJaNcu6FwzqigX' WHERE "public"."cadenero_members"."id" = 534  (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" = 533 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 533 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 533 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 533 Completed 201 Created in 123ms (Views: 5.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/533" for 127.0.0.1 at 2013-07-17 15:26:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"533"} 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" = 419 AND "public"."cadenero_users"."id" = 533 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 533 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 533 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 533 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 533 Completed 200 OK in 12ms (Views: 5.7ms | 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-17 15:26:38 -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" = 533 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 533 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 533 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 533 Completed 201 Created in 8ms (Views: 5.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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$fZ8gnIj5GObLgMtBw2CVfObFEkrz5vSbe3NY1SZVpSXajGsv9eylC"], ["updated_at", Wed, 17 Jul 2013 20:26: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" = '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", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 534], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ak7kquzvrx94M2F9vcbQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 534, "created_at" = '2013-07-17 20:26:38.858468', "updated_at" = '2013-07-17 20:26:38.858468', "authentication_token" = 'ak7kquzvrx94M2F9vcbQ' WHERE "public"."cadenero_accounts"."id" = 420  (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", 420], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:38 UTC +00:00], ["user_id", 534]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rgbrfbkqtrsGzjsEmXoB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 420, "user_id" = 534, "created_at" = '2013-07-17 20:26:38.864374', "updated_at" = '2013-07-17 20:26:38.864374', "auth_token" = 'rgbrfbkqtrsGzjsEmXoB' WHERE "public"."cadenero_members"."id" = 535  (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.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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (1.8ms) 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-17 15:26:38 -0500 Processing by 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.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:26:38 -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", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$F0//zjuHI8D7PX1WIcd31.kQRg5iKVBVL2LV8mW9dOqC72YQSpk5m"], ["updated_at", Wed, 17 Jul 2013 20:26:39 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", 420], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["user_id", 535]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rfSYxRHWP2CWjidzXYnQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 420, "user_id" = 535, "created_at" = '2013-07-17 20:26:39.043565', "updated_at" = '2013-07-17 20:26:39.043565', "auth_token" = 'rfSYxRHWP2CWjidzXYnQ' WHERE "public"."cadenero_members"."id" = 536  (0.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 Completed 201 Created in 136ms (Views: 5.7ms | 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/535" for 127.0.0.1 at 2013-07-17 15:26:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"535"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 420 AND "public"."cadenero_users"."id" = 535 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:39 -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" = 535 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26:39 -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" = 535 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pVyvSEBmRN.ss8xfhdUCAOBvT.PYqOEvBgNM.OidxaJgLUk3TqbUO"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 536], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xcPYh1T4wp81K3gxqrpv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 536, "created_at" = '2013-07-17 20:26:39.217672', "updated_at" = '2013-07-17 20:26:39.217672', "authentication_token" = 'xcPYh1T4wp81K3gxqrpv' WHERE "public"."cadenero_accounts"."id" = 421  (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", 421], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["user_id", 536]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zppdrbcTjS4jTGY7sKiT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 421, "user_id" = 536, "created_at" = '2013-07-17 20:26:39.223720', "updated_at" = '2013-07-17 20:26:39.223720', "auth_token" = 'zppdrbcTjS4jTGY7sKiT' WHERE "public"."cadenero_members"."id" = 537  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (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.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/sessions" for 127.0.0.1 at 2013-07-17 15:26: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.3ms) 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" = 421 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" = 536 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 536 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 536 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 536 Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.9ms) 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" = 421 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:39 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"536", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 536 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26: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 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (7.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$IF5s7OTOwHkSJWkKvpvo0ucHOQML8DVSz/mepgeATOLXdDR4wASTu"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 537], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vvbNqUz8fyysGHpScS4c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 537, "created_at" = '2013-07-17 20:26:39.548595', "updated_at" = '2013-07-17 20:26:39.548595', "authentication_token" = 'vvbNqUz8fyysGHpScS4c' WHERE "public"."cadenero_accounts"."id" = 422  (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", 422], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["user_id", 537]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sHd1g2r1SueB8gRTmmVH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 422, "user_id" = 537, "created_at" = '2013-07-17 20:26:39.556411', "updated_at" = '2013-07-17 20:26:39.556411', "auth_token" = 'sHd1g2r1SueB8gRTmmVH' WHERE "public"."cadenero_members"."id" = 538  (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)  (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.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")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:39 -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" = 422 AND "public"."cadenero_users"."email" = 'user@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.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$XhR2OqfzJmRN3Pzs97ts3ezzYAX5pVUtEIOphiJYfZDrELlCffMtq"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 538], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eNxMYofJu9wDQyyRfWoP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 538, "created_at" = '2013-07-17 20:26:39.796903', "updated_at" = '2013-07-17 20:26:39.796903', "authentication_token" = 'eNxMYofJu9wDQyyRfWoP' WHERE "public"."cadenero_accounts"."id" = 423  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 423], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["user_id", 538]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eMsJcqQYqqM8r2u6i98a' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 423, "user_id" = 538, "created_at" = '2013-07-17 20:26:39.802830', "updated_at" = '2013-07-17 20:26:39.802830', "auth_token" = 'eMsJcqQYqqM8r2u6i98a' WHERE "public"."cadenero_members"."id" = 539  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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")  (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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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-17 15:26:39 -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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$FHljfaU6rfkWPZGmudjsFulrQv23NjDS8.UH9OCzWgFbBoD2sFnBS"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 539], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yS2rq5kNv5Xr6twdHpSp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 539, "created_at" = '2013-07-17 20:26:39.975357', "updated_at" = '2013-07-17 20:26:39.975357', "authentication_token" = 'yS2rq5kNv5Xr6twdHpSp' WHERE "public"."cadenero_accounts"."id" = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 424], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:39 UTC +00:00], ["user_id", 539]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1ByedwEyz6waRyEupxtd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 424, "user_id" = 539, "created_at" = '2013-07-17 20:26:39.980871', "updated_at" = '2013-07-17 20:26:39.980871', "auth_token" = '1ByedwEyz6waRyEupxtd' WHERE "public"."cadenero_members"."id" = 540  (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.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")  (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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26: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 3ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 424 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$/shty50IrNsQ9tOUhCVTS.JbW68gJUfwffH4wQSCwSGD/nJ5tBUW2"], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 540], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UsqzJH3PpTLE6y19fWNh' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 540, "created_at" = '2013-07-17 20:26:40.172350', "updated_at" = '2013-07-17 20:26:40.172350', "authentication_token" = 'UsqzJH3PpTLE6y19fWNh' WHERE "public"."cadenero_accounts"."id" = 425  (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", 425], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["user_id", 540]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nqxbW8nNgPDx2Svzyk34' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 425, "user_id" = 540, "created_at" = '2013-07-17 20:26:40.177866', "updated_at" = '2013-07-17 20:26:40.177866', "auth_token" = 'nqxbW8nNgPDx2Svzyk34' WHERE "public"."cadenero_members"."id" = 541  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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.8ms) 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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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")  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Qv/BlXPrKUe1GqDk/H1BRuiKq.aleoAYn4RtDw4m1Fv2zrIsK/KwW"], ["updated_at", Wed, 17 Jul 2013 20:26: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" = '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", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 541], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B4i9FBj2zjV1VceQ1gK6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 541, "created_at" = '2013-07-17 20:26:40.338870', "updated_at" = '2013-07-17 20:26:40.338870', "authentication_token" = 'B4i9FBj2zjV1VceQ1gK6' WHERE "public"."cadenero_accounts"."id" = 426  (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", 426], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["user_id", 541]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nBfFXqgtXAGAFjjjSCu7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 426, "user_id" = 541, "created_at" = '2013-07-17 20:26:40.343975', "updated_at" = '2013-07-17 20:26:40.343975', "auth_token" = 'nBfFXqgtXAGAFjjjSCu7' WHERE "public"."cadenero_members"."id" = 542  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26: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 3ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:26:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 425 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$5DPFn.Hrn5TmSNwhwYji1.kACyLBmBwx0V04qi0hdYsPPhlRWzGmm"], ["updated_at", Wed, 17 Jul 2013 20:26: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" = '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", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 542], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'L3sjnTkMyqqV8da2J53H' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 542, "created_at" = '2013-07-17 20:26:40.478064', "updated_at" = '2013-07-17 20:26:40.478064', "authentication_token" = 'L3sjnTkMyqqV8da2J53H' WHERE "public"."cadenero_accounts"."id" = 427  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 427], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:26:40 UTC +00:00], ["user_id", 542]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jpstGZ3wcTwSdLRS7yh5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 427, "user_id" = 542, "created_at" = '2013-07-17 20:26:40.483503', "updated_at" = '2013-07-17 20:26:40.483503', "auth_token" = 'jpstGZ3wcTwSdLRS7yh5' WHERE "public"."cadenero_members"."id" = 543  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("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, "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.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:26: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 542 Started GET "/v1?auth_token[]=jpstGZ3wcTwSdLRS7yh5" for 127.0.0.1 at 2013-07-17 15:26:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["jpstGZ3wcTwSdLRS7yh5"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.6ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 20:27:14 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ebbiMSyLpTiKLYr4ax6ni.JUVtNp5/WAE4v4C8x148mhcoh3eP/lW"], ["updated_at", Wed, 17 Jul 2013 20:27:14 UTC +00:00]]  (0.1ms) 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 (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", Wed, 17 Jul 2013 20:27:14 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 543], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:27:14 UTC +00:00]] Cadenero::V1::Account Load (8.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Jpnym6TVxzxhxmfwuzmk' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 543, "created_at" = '2013-07-17 20:27:14.487031', "updated_at" = '2013-07-17 20:27:14.487031', "authentication_token" = 'Jpnym6TVxzxhxmfwuzmk' WHERE "public"."cadenero_accounts"."id" = 428  (10.0ms) RELEASE SAVEPOINT active_record_1  (4.5ms) 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", 428], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:14 UTC +00:00], ["user_id", 543]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jawA2Npz5G1WzKEDen8P' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 428, "user_id" = 543, "created_at" = '2013-07-17 20:27:14.642487', "updated_at" = '2013-07-17 20:27:14.642487', "auth_token" = 'jawA2Npz5G1WzKEDen8P' WHERE "public"."cadenero_members"."id" = 544  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) 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")  (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))  (7.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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 7ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 543 Started GET "/v1?auth_token[]=jawA2Npz5G1WzKEDen8P" for 127.0.0.1 at 2013-07-17 15:27:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["jawA2Npz5G1WzKEDen8P"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (17.9ms) ROLLBACK  (0.1ms) BEGIN  (1.4ms) COMMIT  (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", Wed, 17 Jul 2013 20:27:14 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$LOzm0IpD7/W6qdLAZgT3EO3wt7IX1BM68VktkDu8MunhoGcuABuS2"], ["updated_at", Wed, 17 Jul 2013 20:27: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:14 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 544], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:27:14 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5h2xCnYraLJECn24Qxu6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 544, "created_at" = '2013-07-17 20:27:14.991384', "updated_at" = '2013-07-17 20:27:14.991384', "authentication_token" = '5h2xCnYraLJECn24Qxu6' WHERE "public"."cadenero_accounts"."id" = 429  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 429], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["user_id", 544]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kwd5rVHUswgBuYormXt6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 429, "user_id" = 544, "created_at" = '2013-07-17 20:27:15.035063', "updated_at" = '2013-07-17 20:27:15.035063', "auth_token" = 'kwd5rVHUswgBuYormXt6' WHERE "public"."cadenero_members"."id" = 545  (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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27:15 -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" = 429 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 544 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 544 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 544 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" = 544 Completed 201 Created in 142ms (Views: 21.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 429 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27:15 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"544", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 544 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.4ms) ROLLBACK  (1.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$XtdWri9x7wyYeOHPbjBZr.7DmAOQBT3y6v4h0XSD5JMAoggl7FfmS"], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 545], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6QtePY3wVsTrubkekpcZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 545, "created_at" = '2013-07-17 20:27:15.377241', "updated_at" = '2013-07-17 20:27:15.377241', "authentication_token" = '6QtePY3wVsTrubkekpcZ' WHERE "public"."cadenero_accounts"."id" = 430  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 430], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["user_id", 545]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'emqjfuoteRxfWZJoMxqS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 430, "user_id" = 545, "created_at" = '2013-07-17 20:27:15.383556', "updated_at" = '2013-07-17 20:27:15.383556', "auth_token" = 'emqjfuoteRxfWZJoMxqS' WHERE "public"."cadenero_members"."id" = 546  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:27: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" = '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", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$NCqy1Gf8YGXzAba2j6EFGu32jAeDEtkCkl9VOwrUAkpN5miE7IDmu"], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00]] 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", 430], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["user_id", 546]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cNfEpbfa9KnCN8sxvFW7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 430, "user_id" = 546, "created_at" = '2013-07-17 20:27:15.549625', "updated_at" = '2013-07-17 20:27:15.549625', "auth_token" = 'cNfEpbfa9KnCN8sxvFW7' WHERE "public"."cadenero_members"."id" = 547  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 546 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 546 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 546 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 546 Completed 201 Created in 122ms (Views: 6.0ms | 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/546" for 127.0.0.1 at 2013-07-17 15:27:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"546"} 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" = 430 AND "public"."cadenero_users"."id" = 546 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 546 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 546 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 546 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" = 546 Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 1.6ms) Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27: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" = 546 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 546 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 546 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 546 Completed 201 Created in 8ms (Views: 5.1ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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" = 546 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Zv3/DfSgPGm8cBCD.7.AzOopMnyTWQJaVgtTMiweWcR7DqfefxnoS"], ["updated_at", Wed, 17 Jul 2013 20:27: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" = '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", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 547], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'thNmueD6FX1E3wUqQWkQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 547, "created_at" = '2013-07-17 20:27:15.730381', "updated_at" = '2013-07-17 20:27:15.730381', "authentication_token" = 'thNmueD6FX1E3wUqQWkQ' WHERE "public"."cadenero_accounts"."id" = 431  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 431], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:15 UTC +00:00], ["user_id", 547]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wtf86xRgLkXojyh4Sk37' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 431, "user_id" = 547, "created_at" = '2013-07-17 20:27:15.736902', "updated_at" = '2013-07-17 20:27:15.736902', "auth_token" = 'wtf86xRgLkXojyh4Sk37' WHERE "public"."cadenero_members"."id" = 548  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (0.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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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.6ms) 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"  (1.1ms) 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')  (8.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27: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 ('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" = 431 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" = 547 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 547 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 547 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" = 547 Completed 201 Created in 141ms (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 Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 431 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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" = 547 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$em9E4ALrc48CKUD72Sv0L.dTjew2h/PPr2HHhxBPoxPPsngbBCc/W"], ["updated_at", Wed, 17 Jul 2013 20:27: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" = '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", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 548], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QrwLqgRa8xyHnifFkArc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 548, "created_at" = '2013-07-17 20:27:16.126303', "updated_at" = '2013-07-17 20:27:16.126303', "authentication_token" = 'QrwLqgRa8xyHnifFkArc' WHERE "public"."cadenero_accounts"."id" = 432  (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", 432], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["user_id", 548]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RNW33NspNxBAJdnyU1s1' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 432, "user_id" = 548, "created_at" = '2013-07-17 20:27:16.132004', "updated_at" = '2013-07-17 20:27:16.132004', "auth_token" = 'RNW33NspNxBAJdnyU1s1' WHERE "public"."cadenero_members"."id" = 549  (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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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')  (7.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27: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 ('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" = 432 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" = 548 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 548 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 548 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 548 Completed 201 Created in 109ms (Views: 5.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 432 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27:16 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"548", "default"=>:json} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 548 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:27:16 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$IeBB4YKl/qky0Kzs48TbBeaQME355KzmR2N1f07WitfrC27jb.SB2"], ["updated_at", Wed, 17 Jul 2013 20:27:16 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", 432], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["user_id", 549]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UhtjuqzCbtfgNN83z9iB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 432, "user_id" = 549, "created_at" = '2013-07-17 20:27:16.437889', "updated_at" = '2013-07-17 20:27:16.437889', "auth_token" = 'UhtjuqzCbtfgNN83z9iB' WHERE "public"."cadenero_members"."id" = 550  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 Completed 201 Created in 133ms (Views: 5.7ms | 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/549" for 127.0.0.1 at 2013-07-17 15:27:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"549"} Cadenero::V1::Account Load (0.2ms) 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" = 432 AND "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 Cadenero::V1::Account Load (0.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" = 549 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27: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" = 549 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$9Qj3xfu/2gVJATPaPcO9peIQTBuV7hDvrUGeaORAO8id79PMYQPVC"], ["updated_at", Wed, 17 Jul 2013 20:27: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" = '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", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 550], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ubvAcnhvZX2YAFxmzx2L' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 550, "created_at" = '2013-07-17 20:27:16.654739', "updated_at" = '2013-07-17 20:27:16.654739', "authentication_token" = 'ubvAcnhvZX2YAFxmzx2L' WHERE "public"."cadenero_accounts"."id" = 433  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 433], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["user_id", 550]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nr5AxPxnvtWpNSLjVWPr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 433, "user_id" = 550, "created_at" = '2013-07-17 20:27:16.660586', "updated_at" = '2013-07-17 20:27:16.660586', "auth_token" = 'nr5AxPxnvtWpNSLjVWPr' WHERE "public"."cadenero_members"."id" = 551  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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")  (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.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('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) 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", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$fFxeajRV4kSR9jNSu2iTxut./x8kVzrwgd/gfNSR8wzkI6.KZtfbq"], ["updated_at", Wed, 17 Jul 2013 20:27: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" = '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", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 551], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '37g5fQaTCdg5p53rMdvh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 551, "created_at" = '2013-07-17 20:27:16.807044', "updated_at" = '2013-07-17 20:27:16.807044', "authentication_token" = '37g5fQaTCdg5p53rMdvh' WHERE "public"."cadenero_accounts"."id" = 434  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 434], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["user_id", 551]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dvMwQ1nnPHUq4kHxDQVw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 434, "user_id" = 551, "created_at" = '2013-07-17 20:27:16.813376', "updated_at" = '2013-07-17 20:27:16.813376', "auth_token" = 'dvMwQ1nnPHUq4kHxDQVw' WHERE "public"."cadenero_members"."id" = 552  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 433 AND "public"."cadenero_users"."email" = 'user7@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.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$ZyOlxTCI2fGNxW.NVgxNK.kkkTuvg.RzBn/Glq6H9pva8tnxrGNT2"], ["updated_at", Wed, 17 Jul 2013 20:27: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" = '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", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 552], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3zECqBqfxyEksZhxi52M' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 552, "created_at" = '2013-07-17 20:27:16.946987', "updated_at" = '2013-07-17 20:27:16.946987', "authentication_token" = '3zECqBqfxyEksZhxi52M' WHERE "public"."cadenero_accounts"."id" = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 435], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:16 UTC +00:00], ["user_id", 552]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vHjat3SVBsVrCfantXPy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 435, "user_id" = 552, "created_at" = '2013-07-17 20:27:16.952400', "updated_at" = '2013-07-17 20:27:16.952400', "auth_token" = 'vHjat3SVBsVrCfantXPy' WHERE "public"."cadenero_members"."id" = 553  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (0.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27: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.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27:17 -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" = 435 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$VNCU5Ym.n11BwNufypnxL.E5b6w3nJOZc7RghwBUO4uhjUYNxTox6"], ["updated_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 553], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20: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" = 'qhANzmu9KTxy3qXepxuy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 553, "created_at" = '2013-07-17 20:27:17.122398', "updated_at" = '2013-07-17 20:27:17.122398', "authentication_token" = 'qhANzmu9KTxy3qXepxuy' WHERE "public"."cadenero_accounts"."id" = 436  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 436], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["user_id", 553]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MpHMFxnbYT2ae69qfisb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 436, "user_id" = 553, "created_at" = '2013-07-17 20:27:17.127940', "updated_at" = '2013-07-17 20:27:17.127940', "auth_token" = 'MpHMFxnbYT2ae69qfisb' WHERE "public"."cadenero_members"."id" = 554  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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.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.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.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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:27:17 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27:17 -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" = 436 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$MaKauN4stw1XUrpp/irYNuzk.epl9o.1e1OCS2QNhaN4NoaUdQ6t2"], ["updated_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 554], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20: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" = 'oCRp5HpKNVZqqKGzJQ4t' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 554, "created_at" = '2013-07-17 20:27:17.294806', "updated_at" = '2013-07-17 20:27:17.294806', "authentication_token" = 'oCRp5HpKNVZqqKGzJQ4t' WHERE "public"."cadenero_accounts"."id" = 437  (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", 437], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:27:17 UTC +00:00], ["user_id", 554]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KAXr9ZdxxCVMPRo7Ttg5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 437, "user_id" = 554, "created_at" = '2013-07-17 20:27:17.300228', "updated_at" = '2013-07-17 20:27:17.300228', "auth_token" = 'KAXr9ZdxxCVMPRo7Ttg5' WHERE "public"."cadenero_members"."id" = 555  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:27: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  (2.4ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (10.3ms) BEGIN  (1.8ms) COMMIT  (20.3ms) BEGIN  (1.6ms) SAVEPOINT active_record_1 SQL (22.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:30:58 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$4Q8pxLRXiwWLV8Ojip9YyuE5ux65YUOumueJEa1v1WyBdbndgpVSS"], ["updated_at", Wed, 17 Jul 2013 20:30:58 UTC +00:00]]  (2.9ms) RELEASE SAVEPOINT active_record_1  (4.3ms) 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 (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", Wed, 17 Jul 2013 20:30:58 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 555], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:30:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CcyWmsm2hWFZ5ieTAfCg' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 555, "created_at" = '2013-07-17 20:30:58.794869', "updated_at" = '2013-07-17 20:30:58.794869', "authentication_token" = 'CcyWmsm2hWFZ5ieTAfCg' WHERE "public"."cadenero_accounts"."id" = 438  (1.7ms) RELEASE SAVEPOINT active_record_1  (10.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", 438], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:30:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:30:58 UTC +00:00], ["user_id", 555]] Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yShUieKMLbPWYPxgFEF8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 438, "user_id" = 555, "created_at" = '2013-07-17 20:30:58.926315', "updated_at" = '2013-07-17 20:30:58.926315', "auth_token" = 'yShUieKMLbPWYPxgFEF8' WHERE "public"."cadenero_members"."id" = 556  (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)   (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, "auth_token" character varying(255))  (0.8ms) 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.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)  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.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 ('20130715174857')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:30: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:30:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 438 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" = 555 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 555 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 555 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 555 Completed 201 Created in 151ms (Views: 29.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 438 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:30: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" = 555 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$qLQd5e.g9hi7swIrKWozKe36GdCxMSGd95IaipVBfb3s2KqvdZjeK"], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 556], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gx7gwcb9iwgjPvWqShXz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 556, "created_at" = '2013-07-17 20:30:59.416080', "updated_at" = '2013-07-17 20:30:59.416080', "authentication_token" = 'Gx7gwcb9iwgjPvWqShXz' WHERE "public"."cadenero_accounts"."id" = 439  (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", 439], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["user_id", 556]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kiSohosaEUM8EbbeMsFA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 439, "user_id" = 556, "created_at" = '2013-07-17 20:30:59.421623', "updated_at" = '2013-07-17 20:30:59.421623', "auth_token" = 'kiSohosaEUM8EbbeMsFA' WHERE "public"."cadenero_members"."id" = 557  (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.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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:30: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.5ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:30: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" = '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", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CfTj2AyjdSIvgUfVgMEzOe6/COVwyeITIz2knl3/VEOCerYM4YUE6"], ["updated_at", Wed, 17 Jul 2013 20:30: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", 439], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["user_id", 557]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gz7H7XfzKXyTkxmF5Yjr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 439, "user_id" = 557, "created_at" = '2013-07-17 20:30:59.608939', "updated_at" = '2013-07-17 20:30:59.608939', "auth_token" = 'Gz7H7XfzKXyTkxmF5Yjr' WHERE "public"."cadenero_members"."id" = 558  (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" = 557 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 557 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 557 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 557 Completed 201 Created in 145ms (Views: 6.8ms | 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/557" for 127.0.0.1 at 2013-07-17 15:30:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"557"} 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" = 439 AND "public"."cadenero_users"."id" = 557 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 557 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 557 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 557 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" = 557 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:30: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 (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 557 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 557 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 557 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 557 Completed 201 Created in 9ms (Views: 5.6ms | 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-17 15:30:59 -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" = 557 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$lwKD0CgNlFuh6vCc5K9D3eSUgygr/P11ZC0FNVNLbLWlybjLbd2hC"], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 558], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xpf8Xtzs9cPFqgjvcWGG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 558, "created_at" = '2013-07-17 20:30:59.802305', "updated_at" = '2013-07-17 20:30:59.802305', "authentication_token" = 'xpf8Xtzs9cPFqgjvcWGG' WHERE "public"."cadenero_accounts"."id" = 440  (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", 440], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:30:59 UTC +00:00], ["user_id", 558]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aepPcphYF9wsPcxFJuqq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 440, "user_id" = 558, "created_at" = '2013-07-17 20:30:59.807713', "updated_at" = '2013-07-17 20:30:59.807713', "auth_token" = 'aepPcphYF9wsPcxFJuqq' WHERE "public"."cadenero_members"."id" = 559  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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-17 15:30:59 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 440 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 558 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 558 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 558 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 558 Completed 201 Created in 111ms (Views: 6.3ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 440 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:30:59 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"558", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 558 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:30: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)  (6.2ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$SZ2/f8nkO5aHEXxUO2medOb85k9iIzkQq/K/7A1jE80ndz.Soz4IC"], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 559], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f2s2kwkTzBh5y9Xe7e6F' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 559, "created_at" = '2013-07-17 20:31:00.123281', "updated_at" = '2013-07-17 20:31:00.123281', "authentication_token" = 'f2s2kwkTzBh5y9Xe7e6F' WHERE "public"."cadenero_accounts"."id" = 441  (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", 441], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["user_id", 559]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hudf16yrLSzxuKqnFSwW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 441, "user_id" = 559, "created_at" = '2013-07-17 20:31:00.128692', "updated_at" = '2013-07-17 20:31:00.128692', "auth_token" = 'Hudf16yrLSzxuKqnFSwW' WHERE "public"."cadenero_members"."id" = 560  (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)  (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")  (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, "auth_token" character varying(255))   (1.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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 (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" = 441 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 559 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 559 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 559 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 559 Completed 201 Created in 112ms (Views: 6.0ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 441 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"559", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 559 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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/users" for 127.0.0.1 at 2013-07-17 15:31:00 -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.5ms) 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", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$aVVTfZR0QcghAlR00AxBs.GGjOA9Cv7uCYmuvJcEtZGERwcabVGNG"], ["updated_at", Wed, 17 Jul 2013 20:31:00 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", 441], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["user_id", 560]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nUxNzPpe9pwP4q331HFm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 441, "user_id" = 560, "created_at" = '2013-07-17 20:31:00.415047', "updated_at" = '2013-07-17 20:31:00.415047', "auth_token" = 'nUxNzPpe9pwP4q331HFm' WHERE "public"."cadenero_members"."id" = 561  (1.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 560 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" = 560 Completed 201 Created in 120ms (Views: 6.2ms | 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/560" for 127.0.0.1 at 2013-07-17 15:31:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"560"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 441 AND "public"."cadenero_users"."id" = 560 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 560 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 560 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31:00 -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" = 560 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 560 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 560 Completed 201 Created in 8ms (Views: 5.1ms | 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  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) 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", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yCppvhjq2qH.lOTdHcPBseQfy416P/sKFedUB.Y23tWTgJ/4Zpyge"], ["updated_at", Wed, 17 Jul 2013 20:31: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" = '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", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 561], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qCcg2SFnCpmrhJxtbCFS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 561, "created_at" = '2013-07-17 20:31:00.628791', "updated_at" = '2013-07-17 20:31:00.628791', "authentication_token" = 'qCcg2SFnCpmrhJxtbCFS' WHERE "public"."cadenero_accounts"."id" = 442  (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", 442], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["user_id", 561]] Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gpx3Wv3zSBnxrDUZjRsh' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 442, "user_id" = 561, "created_at" = '2013-07-17 20:31:00.639476', "updated_at" = '2013-07-17 20:31:00.639476', "auth_token" = 'gpx3Wv3zSBnxrDUZjRsh' WHERE "public"."cadenero_members"."id" = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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-17 15:31: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 ('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" = 442 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.T3GM3CU79YtBXxxummiB.6hupB/g/gpaunQvy2Hje/F5FNFqGf02"], ["updated_at", Wed, 17 Jul 2013 20:31: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.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", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 562], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ToLxgQ4bbNSdQyzbbqSz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 562, "created_at" = '2013-07-17 20:31:00.886540', "updated_at" = '2013-07-17 20:31:00.886540', "authentication_token" = 'ToLxgQ4bbNSdQyzbbqSz' WHERE "public"."cadenero_accounts"."id" = 443  (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", 443], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:00 UTC +00:00], ["user_id", 562]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cx7zw4csvssWJ744HXHC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 443, "user_id" = 562, "created_at" = '2013-07-17 20:31:00.892214', "updated_at" = '2013-07-17 20:31:00.892214', "auth_token" = 'cx7zw4csvssWJ744HXHC' WHERE "public"."cadenero_members"."id" = 563  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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-17 15:31: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 ('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" = 443 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$tkjtrypZXZedKIezvJe6K.u0Vl2DH0jtpsYiz930FkYIyKYiLdWEO"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 563], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cydtYbaP7kNbpxrsQTHq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 563, "created_at" = '2013-07-17 20:31:01.059417', "updated_at" = '2013-07-17 20:31:01.059417', "authentication_token" = 'cydtYbaP7kNbpxrsQTHq' WHERE "public"."cadenero_accounts"."id" = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 444], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["user_id", 563]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7xj6D1pGwBAKxRqeDs6G' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 444, "user_id" = 563, "created_at" = '2013-07-17 20:31:01.064868', "updated_at" = '2013-07-17 20:31:01.064868', "auth_token" = '7xj6D1pGwBAKxRqeDs6G' WHERE "public"."cadenero_members"."id" = 564  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.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")  (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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Jutlz5Pc5TmbnC/7A5OsDePaif2e1HaV.EXNKQQ9v8HwUkRjvOzQu"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 564], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rn3aDppxuBSPJ5Yxb9JQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 564, "created_at" = '2013-07-17 20:31:01.210378', "updated_at" = '2013-07-17 20:31:01.210378', "authentication_token" = 'rn3aDppxuBSPJ5Yxb9JQ' WHERE "public"."cadenero_accounts"."id" = 445  (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", 445], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["user_id", 564]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ewC9bTd35qnEtpZPpDWU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 445, "user_id" = 564, "created_at" = '2013-07-17 20:31:01.215936', "updated_at" = '2013-07-17 20:31:01.215936', "auth_token" = 'ewC9bTd35qnEtpZPpDWU' WHERE "public"."cadenero_members"."id" = 565  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31:01 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 444 AND "public"."cadenero_users"."email" = 'user8@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  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$LG8nYVn1f1CkgaYhAI7/1uoi5p/GJLebdVF.wfsprEksP4p8wfoQ."], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 565], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FiK1zM17AXJWx9cDd9AQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 565, "created_at" = '2013-07-17 20:31:01.349083', "updated_at" = '2013-07-17 20:31:01.349083', "authentication_token" = 'FiK1zM17AXJWx9cDd9AQ' WHERE "public"."cadenero_accounts"."id" = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 446], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["user_id", 565]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'srydpXujELbKgJpL5BCi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 446, "user_id" = 565, "created_at" = '2013-07-17 20:31:01.354866', "updated_at" = '2013-07-17 20:31:01.354866', "auth_token" = 'srydpXujELbKgJpL5BCi' WHERE "public"."cadenero_members"."id" = 566  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$cBuH1e/FpRX86fBcDrwK4uSoBezFXkkgwjKmJ3T43BouPQWsernt2"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 566], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MVNqVpzxpU4mfJkgNuRs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 566, "created_at" = '2013-07-17 20:31:01.506826', "updated_at" = '2013-07-17 20:31:01.506826', "authentication_token" = 'MVNqVpzxpU4mfJkgNuRs' WHERE "public"."cadenero_accounts"."id" = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 447], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:01 UTC +00:00], ["user_id", 566]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'auMBUP87jdU5AhvvKzvx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 447, "user_id" = 566, "created_at" = '2013-07-17 20:31:01.512366', "updated_at" = '2013-07-17 20:31:01.512366', "auth_token" = 'auMBUP87jdU5AhvvKzvx' WHERE "public"."cadenero_members"."id" = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 566 Started GET "/v1?auth_token[]=auMBUP87jdU5AhvvKzvx" for 127.0.0.1 at 2013-07-17 15:31:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["auMBUP87jdU5AhvvKzvx"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.3ms) ROLLBACK Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (7.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (13.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$u0yffjAs0/Z5Hp1Agtw3rOcNbUUOPDQcEd7d3jcJgs0Ev4yQVxmfC"], ["updated_at", Wed, 17 Jul 2013 20:31:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (10.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", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 567], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00]] Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XxjEqcxEnqPQYGoLjx4w' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 567, "created_at" = '2013-07-17 20:31:55.043621', "updated_at" = '2013-07-17 20:31:55.043621', "authentication_token" = 'XxjEqcxEnqPQYGoLjx4w' WHERE "public"."cadenero_accounts"."id" = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 SQL (20.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", 448], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["user_id", 567]] Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bJLDxq7tsHCVsa42nM2a' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 448, "user_id" = 567, "created_at" = '2013-07-17 20:31:55.196617', "updated_at" = '2013-07-17 20:31:55.196617', "auth_token" = 'bJLDxq7tsHCVsa42nM2a' WHERE "public"."cadenero_members"."id" = 568  (7.8ms) RELEASE SAVEPOINT active_record_1  (8.7ms) 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.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")  (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, "auth_token" character varying(255))  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.3ms) 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")  (2.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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 6ms (Views: 0.5ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 567 Started GET "/v1?auth_token[]=bJLDxq7tsHCVsa42nM2a" for 127.0.0.1 at 2013-07-17 15:31:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["bJLDxq7tsHCVsa42nM2a"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$.ZOSW/QX2BOA2/uzdcSA3.tHi67w6o3iCzh.2DJHi7t4hTbuQ9oqS"], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 568], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rbHWdiNskcYnXp2xFNSV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 568, "created_at" = '2013-07-17 20:31:55.511472', "updated_at" = '2013-07-17 20:31:55.511472', "authentication_token" = 'rbHWdiNskcYnXp2xFNSV' WHERE "public"."cadenero_accounts"."id" = 449  (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", 449], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["user_id", 568]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'G8JnnWXrLJxYWRTJPxHy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 449, "user_id" = 568, "created_at" = '2013-07-17 20:31:55.516928', "updated_at" = '2013-07-17 20:31:55.516928', "auth_token" = 'G8JnnWXrLJxYWRTJPxHy' WHERE "public"."cadenero_members"."id" = 569  (0.1ms) 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.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.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.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")  (3.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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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-17 15:31: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" = '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", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$oBy166PdHyOGtj4Bq1C3.ePA1YZYMqCJweLz7Mo3MBijIkRL3LhO."], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 449], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["user_id", 569]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5RpArBxXzadxwAjXNCpy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 449, "user_id" = 569, "created_at" = '2013-07-17 20:31:55.739596', "updated_at" = '2013-07-17 20:31:55.739596', "auth_token" = '5RpArBxXzadxwAjXNCpy' WHERE "public"."cadenero_members"."id" = 570  (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" = 569 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 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" = 569 Completed 201 Created in 152ms (Views: 30.2ms | ActiveRecord: 4.0ms) 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/569" for 127.0.0.1 at 2013-07-17 15:31:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"569"} 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" = 449 AND "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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" = 569 LIMIT 1 Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 Completed 201 Created in 10ms (Views: 5.4ms | 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" for 127.0.0.1 at 2013-07-17 15:31: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" = 569 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$r7on/llcEhyHlKQSdFZDguIRGbWLrnUd.o8Vi0O0HR3LtYtXuRICe"], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 570], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZH914nejME7zh7xjtGyB' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 570, "created_at" = '2013-07-17 20:31:55.942342', "updated_at" = '2013-07-17 20:31:55.942342', "authentication_token" = 'ZH914nejME7zh7xjtGyB' WHERE "public"."cadenero_accounts"."id" = 450  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 450], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:55 UTC +00:00], ["user_id", 570]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1ULqpjfVBK4CajqL189R' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 450, "user_id" = 570, "created_at" = '2013-07-17 20:31:55.948846', "updated_at" = '2013-07-17 20:31:55.948846', "auth_token" = '1ULqpjfVBK4CajqL189R' WHERE "public"."cadenero_members"."id" = 571  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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 (2.3ms) 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" = 450 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" = 570 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 570 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 570 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 570 Completed 201 Created in 111ms (Views: 5.2ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 450 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-17 15:31:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"570", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 570 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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-17 15:31: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", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$uLBk.ghol2dbEONauHRE3OzsKTylu.uQqDvgGArt1NW5numf52xTq"], ["updated_at", Wed, 17 Jul 2013 20:31:56 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", 450], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["user_id", 571]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TCQVqXXyFnNZeM6eCXKZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 450, "user_id" = 571, "created_at" = '2013-07-17 20:31:56.250246', "updated_at" = '2013-07-17 20:31:56.250246', "auth_token" = 'TCQVqXXyFnNZeM6eCXKZ' WHERE "public"."cadenero_members"."id" = 572  (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" = 571 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 571 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 571 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 571 Completed 201 Created in 130ms (Views: 5.8ms | ActiveRecord: 4.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/571" for 127.0.0.1 at 2013-07-17 15:31:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"571"} 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" = 450 AND "public"."cadenero_users"."id" = 571 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 571 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 571 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 571 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" = 571 Completed 200 OK in 12ms (Views: 7.1ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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" = 571 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 571 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 571 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 571 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$byiLiCNIDAnVNDc7M7bCK.2sLV7DE6guGR9XZ0x5hUXkvlyrmB.wO"], ["updated_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 572], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZuA2gqnKcCgShUKSwsj1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 572, "created_at" = '2013-07-17 20:31:56.416695', "updated_at" = '2013-07-17 20:31:56.416695', "authentication_token" = 'ZuA2gqnKcCgShUKSwsj1' WHERE "public"."cadenero_accounts"."id" = 451  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 451], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["user_id", 572]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oT8A5zsdyGTJkiczJNPK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 451, "user_id" = 572, "created_at" = '2013-07-17 20:31:56.422387', "updated_at" = '2013-07-17 20:31:56.422387', "auth_token" = 'oT8A5zsdyGTJkiczJNPK' WHERE "public"."cadenero_members"."id" = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (1.5ms) 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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 451 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 572 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 572 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 572 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 572 Completed 201 Created in 119ms (Views: 5.7ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 451 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"572", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 572 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$WmucrjZyTlYxWxN328j25e6KRX7gDiZNjhYz3KZinsrUD1OokWiVG"], ["updated_at", Wed, 17 Jul 2013 20:31: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" = '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", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 573], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zpsypo4ynTsdHq8Vimyk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 573, "created_at" = '2013-07-17 20:31:56.720975', "updated_at" = '2013-07-17 20:31:56.720975', "authentication_token" = 'zpsypo4ynTsdHq8Vimyk' WHERE "public"."cadenero_accounts"."id" = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 452], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:56 UTC +00:00], ["user_id", 573]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DwuAptqUv8VpYJEZobx4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 452, "user_id" = 573, "created_at" = '2013-07-17 20:31:56.726645', "updated_at" = '2013-07-17 20:31:56.726645', "auth_token" = 'DwuAptqUv8VpYJEZobx4' WHERE "public"."cadenero_members"."id" = 574  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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 (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" = 452 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" = 573 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 573 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 573 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 573 Completed 201 Created in 119ms (Views: 5.7ms | ActiveRecord: 2.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 452 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31: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" = 573 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.htUkJQFOanIhD8810W1oeBkn/GMoVHIbloLHMtb8IYImw.PrgX4O"], ["updated_at", Wed, 17 Jul 2013 20:31: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" = '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", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 574], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gbgKmQBc24xx4RBxvSqM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 574, "created_at" = '2013-07-17 20:31:57.051474', "updated_at" = '2013-07-17 20:31:57.051474', "authentication_token" = 'gbgKmQBc24xx4RBxvSqM' WHERE "public"."cadenero_accounts"."id" = 453  (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", 453], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["user_id", 574]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iRUGJeqbqFiGRTp9HvVn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 453, "user_id" = 574, "created_at" = '2013-07-17 20:31:57.057310', "updated_at" = '2013-07-17 20:31:57.057310', "auth_token" = 'iRUGJeqbqFiGRTp9HvVn' WHERE "public"."cadenero_members"."id" = 575  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.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")  (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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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 ('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" = 453 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.3ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$rnB0GVuZhRagy70JR1Rs1.cjJTm.lbrzbR4JwKGXixjn1m5F/x9pO"], ["updated_at", Wed, 17 Jul 2013 20:31: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" = '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", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 575], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5CmNuqsTpAxFRVwXyhWk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 575, "created_at" = '2013-07-17 20:31:57.277558', "updated_at" = '2013-07-17 20:31:57.277558', "authentication_token" = '5CmNuqsTpAxFRVwXyhWk' WHERE "public"."cadenero_accounts"."id" = 454  (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", 454], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["user_id", 575]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'arQrxUJwEF9AEWVyCVTm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 454, "user_id" = 575, "created_at" = '2013-07-17 20:31:57.283080', "updated_at" = '2013-07-17 20:31:57.283080', "auth_token" = 'arQrxUJwEF9AEWVyCVTm' WHERE "public"."cadenero_members"."id" = 576  (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.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.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.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31: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  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$qVtH8h3Ta2hR1L2epoOMB.w68waIxQUQUbGV8RIonykR6MTGH.QVy"], ["updated_at", Wed, 17 Jul 2013 20:31: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" = '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", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 576], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KpKjq5eJNqMJCLG1c6nB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 576, "created_at" = '2013-07-17 20:31:57.441811', "updated_at" = '2013-07-17 20:31:57.441811', "authentication_token" = 'KpKjq5eJNqMJCLG1c6nB' WHERE "public"."cadenero_accounts"."id" = 455  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 455], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["user_id", 576]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FWQsNH47dWapNb7VzPMp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 455, "user_id" = 576, "created_at" = '2013-07-17 20:31:57.447432', "updated_at" = '2013-07-17 20:31:57.447432', "auth_token" = 'FWQsNH47dWapNb7VzPMp' WHERE "public"."cadenero_members"."id" = 577  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$6efeMMHjovv6wA.B7Z569O8U2T7lEsXkLeQLStgAxqt8YEol93j8W"], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 577], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GZod8iDkhPh51eQEDxFQ' LIMIT 1  (2.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 577, "created_at" = '2013-07-17 20:31:57.599537', "updated_at" = '2013-07-17 20:31:57.599537', "authentication_token" = 'GZod8iDkhPh51eQEDxFQ' WHERE "public"."cadenero_accounts"."id" = 456  (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", 456], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["user_id", 577]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kyz2B4mqWAz9aZSm3p9Y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 456, "user_id" = 577, "created_at" = '2013-07-17 20:31:57.608078', "updated_at" = '2013-07-17 20:31:57.608078', "auth_token" = 'kyz2B4mqWAz9aZSm3p9Y' WHERE "public"."cadenero_members"."id" = 578  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (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" = 455 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (48.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Fp17BmYZGBrCNsgo8NOOf.2PcAonS8SOsmZD76ndwYvVPSBAwGJC."], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 578], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jQpGW6vu8akUTurDKCZf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 578, "created_at" = '2013-07-17 20:31:57.836842', "updated_at" = '2013-07-17 20:31:57.836842', "authentication_token" = 'jQpGW6vu8akUTurDKCZf' WHERE "public"."cadenero_accounts"."id" = 457  (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", 457], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:31:57 UTC +00:00], ["user_id", 578]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7ymkprim8UH4yAm8sD8x' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 457, "user_id" = 578, "created_at" = '2013-07-17 20:31:57.842233', "updated_at" = '2013-07-17 20:31:57.842233', "auth_token" = '7ymkprim8UH4yAm8sD8x' WHERE "public"."cadenero_members"."id" = 579  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (4.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")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("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")  (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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:31:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:31:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 457 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.4ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:33:25 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XF6CzSBcYbpod8AJ.bQreOe66CNocdOylvHkkvWePdxtRKq2uDxqq"], ["updated_at", Wed, 17 Jul 2013 20:33:25 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (10.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 20:33:25 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 579], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:33:25 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pKDqUKfssXXqyugniZqa' LIMIT 1  (10.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 579, "created_at" = '2013-07-17 20:33:25.813699', "updated_at" = '2013-07-17 20:33:25.813699', "authentication_token" = 'pKDqUKfssXXqyugniZqa' WHERE "public"."cadenero_accounts"."id" = 458  (10.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", 458], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:25 UTC +00:00], ["user_id", 579]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yisU9NwoTjLUWNJsDyUK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 458, "user_id" = 579, "created_at" = '2013-07-17 20:33:25.959086', "updated_at" = '2013-07-17 20:33:25.959086', "auth_token" = 'yisU9NwoTjLUWNJsDyUK' WHERE "public"."cadenero_members"."id" = 580  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (3.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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (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/sessions" for 127.0.0.1 at 2013-07-17 15:33:26 -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" = 458 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" = 579 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 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" = 579 Completed 201 Created in 192ms (Views: 74.3ms | 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" = 458 Cadenero::User Load (1.9ms) 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-17 15:33:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"579", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:26 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Z24cU9.qlp20fpA0nQU0AeZQRyz80CyUwR9iPgjJCyHVQFfr185c."], ["updated_at", Wed, 17 Jul 2013 20:33: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 (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", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 580], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'b1opoHggb4dpYJ9sjFR7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 580, "created_at" = '2013-07-17 20:33:26.416116', "updated_at" = '2013-07-17 20:33:26.416116', "authentication_token" = 'b1opoHggb4dpYJ9sjFR7' WHERE "public"."cadenero_accounts"."id" = 459  (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", 459], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["user_id", 580]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vqpd1qxHkLKLjRf1FFtx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 459, "user_id" = 580, "created_at" = '2013-07-17 20:33:26.421625', "updated_at" = '2013-07-17 20:33:26.421625', "auth_token" = 'Vqpd1qxHkLKLjRf1FFtx' WHERE "public"."cadenero_members"."id" = 581  (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.7ms) 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.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")  (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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33: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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$5aKieZy7O8DyWKjmi3yMB.GMmJAUWVhsmg6mSg6FNUTWp2CeLWF6a"], ["updated_at", Wed, 17 Jul 2013 20:33: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 (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", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 581], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J4hnc8tkpPDVL8yLsZZF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 581, "created_at" = '2013-07-17 20:33:26.598214', "updated_at" = '2013-07-17 20:33:26.598214', "authentication_token" = 'J4hnc8tkpPDVL8yLsZZF' WHERE "public"."cadenero_accounts"."id" = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 460], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["user_id", 581]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aCpzXzxD99i3yThCTxDj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 460, "user_id" = 581, "created_at" = '2013-07-17 20:33:26.603976', "updated_at" = '2013-07-17 20:33:26.603976', "auth_token" = 'aCpzXzxD99i3yThCTxDj' WHERE "public"."cadenero_members"."id" = 582  (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)   (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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:33: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.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" = 460 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" = 581 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 581 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 581 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 581 Completed 201 Created in 109ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 460 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:33:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"581", "default"=>:json} Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 581 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 2.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:26 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$NFAJFih4I8SDViuajuiuCuxUYRBPuT62kzKfImfBqN/hYdcGrv/Vm"], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 582], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Z2YypEEmU7DHnyZsxhDf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 582, "created_at" = '2013-07-17 20:33:26.905045', "updated_at" = '2013-07-17 20:33:26.905045', "authentication_token" = 'Z2YypEEmU7DHnyZsxhDf' WHERE "public"."cadenero_accounts"."id" = 461  (1.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", 461], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:26 UTC +00:00], ["user_id", 582]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gv1NpXZm2YpyYZunAtpg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 461, "user_id" = 582, "created_at" = '2013-07-17 20:33:26.911792', "updated_at" = '2013-07-17 20:33:26.911792', "auth_token" = 'Gv1NpXZm2YpyYZunAtpg' WHERE "public"."cadenero_members"."id" = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:26 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$CsCW8HcIFVmJIefmW0sXt.WT6prX4HZ.OJK9Za6e4XsEucRdQdmUe"], ["updated_at", Wed, 17 Jul 2013 20:33:27 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" = '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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 583], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9oXjvXq33mFqyMr5w2ru' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 583, "created_at" = '2013-07-17 20:33:27.077841', "updated_at" = '2013-07-17 20:33:27.077841', "authentication_token" = '9oXjvXq33mFqyMr5w2ru' WHERE "public"."cadenero_accounts"."id" = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 462], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["user_id", 583]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iWQhqLex2pJwyCn5YFdn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 462, "user_id" = 583, "created_at" = '2013-07-17 20:33:27.083663', "updated_at" = '2013-07-17 20:33:27.083663', "auth_token" = 'iWQhqLex2pJwyCn5YFdn' WHERE "public"."cadenero_members"."id" = 584  (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)  (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.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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:33:27 -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  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$nW6o2.A6XbgTo0xVDg3jUebvoiUcd3bBUgvBynUk0QHLiaMi2I7AS"], ["updated_at", Wed, 17 Jul 2013 20:33: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" = '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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 584], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3Xn5ssHk9ffEC8gSJM4x' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 584, "created_at" = '2013-07-17 20:33:27.261248', "updated_at" = '2013-07-17 20:33:27.261248', "authentication_token" = '3Xn5ssHk9ffEC8gSJM4x' WHERE "public"."cadenero_accounts"."id" = 463  (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", 463], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["user_id", 584]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7gVRKnP8BznSKUVspNm7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 463, "user_id" = 584, "created_at" = '2013-07-17 20:33:27.266677', "updated_at" = '2013-07-17 20:33:27.266677', "auth_token" = '7gVRKnP8BznSKUVspNm7' WHERE "public"."cadenero_members"."id" = 585  (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)   (0.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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:27 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$zhQITlI1fSx8KfeTIosWN.g/OcO9CjuN4/tkZEZmy/KfCGm0AN29W"], ["updated_at", Wed, 17 Jul 2013 20:33: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" = '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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 585], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ybEtx3WbnL5LiyyoZiio' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 585, "created_at" = '2013-07-17 20:33:27.432846', "updated_at" = '2013-07-17 20:33:27.432846', "authentication_token" = 'ybEtx3WbnL5LiyyoZiio' WHERE "public"."cadenero_accounts"."id" = 464  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 464], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["user_id", 585]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qi41YVcvH8Bz9TqAM4Sj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 464, "user_id" = 585, "created_at" = '2013-07-17 20:33:27.438427', "updated_at" = '2013-07-17 20:33:27.438427', "auth_token" = 'Qi41YVcvH8Bz9TqAM4Sj' WHERE "public"."cadenero_members"."id" = 586  (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.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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$K.c4wMp/QyKx.ibfbnfZouTZ6s92jn3mSGjpfwirPGvBTq8x2mAkS"], ["updated_at", Wed, 17 Jul 2013 20:33:27 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" = '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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 586], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kDfLyuLoonRyv6KHyiWS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 586, "created_at" = '2013-07-17 20:33:27.589452', "updated_at" = '2013-07-17 20:33:27.589452', "authentication_token" = 'kDfLyuLoonRyv6KHyiWS' WHERE "public"."cadenero_accounts"."id" = 465  (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", 465], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["user_id", 586]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xqCym9Za2nrxGaZQyLEJ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 465, "user_id" = 586, "created_at" = '2013-07-17 20:33:27.594792', "updated_at" = '2013-07-17 20:33:27.594792', "auth_token" = 'xqCym9Za2nrxGaZQyLEJ' WHERE "public"."cadenero_members"."id" = 587  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:27 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (11.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$EPulp2MWDdOWgDMQEOhMCO0hd8uTbVczRs9VZAUL98lAH7iZlX07y"], ["updated_at", Wed, 17 Jul 2013 20:33: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" = '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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 587], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MY6oRErJopQTuozwWmvN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 587, "created_at" = '2013-07-17 20:33:27.764174', "updated_at" = '2013-07-17 20:33:27.764174', "authentication_token" = 'MY6oRErJopQTuozwWmvN' WHERE "public"."cadenero_accounts"."id" = 466  (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", 466], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["user_id", 587]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'skgyQKQqGDcepzpFL5W6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 466, "user_id" = 587, "created_at" = '2013-07-17 20:33:27.769704', "updated_at" = '2013-07-17 20:33:27.769704', "auth_token" = 'skgyQKQqGDcepzpFL5W6' WHERE "public"."cadenero_members"."id" = 588  (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.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))  (2.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.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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:27 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$OGaD0twU5JmVePskzCZbTOoXLXMRf1cWgREfqIjslid8rGEIPAQ9u"], ["updated_at", Wed, 17 Jul 2013 20:33: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 588], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Tqq1qwezx2ayYuvUyuQp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 588, "created_at" = '2013-07-17 20:33:27.987039', "updated_at" = '2013-07-17 20:33:27.987039', "authentication_token" = 'Tqq1qwezx2ayYuvUyuQp' WHERE "public"."cadenero_accounts"."id" = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 467], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:33:27 UTC +00:00], ["user_id", 588]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BzMXbFtzzaCYaqxAV2os' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 467, "user_id" = 588, "created_at" = '2013-07-17 20:33:27.992944', "updated_at" = '2013-07-17 20:33:27.992944', "auth_token" = 'BzMXbFtzzaCYaqxAV2os' WHERE "public"."cadenero_members"."id" = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:33:28 -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" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (4.3ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 20:34:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$X3sFkH/yvKstm1EKqm0FN.8Y2tmwwy1sQ0voegiF6jCNwBvl5NJ8m"], ["updated_at", Wed, 17 Jul 2013 20:34:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 589], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5ftYSsudmEL7bUgRBsFz' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 589, "created_at" = '2013-07-17 20:34:54.065832', "updated_at" = '2013-07-17 20:34:54.065832', "authentication_token" = '5ftYSsudmEL7bUgRBsFz' WHERE "public"."cadenero_accounts"."id" = 468  (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", 468], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["user_id", 589]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DVZoi1ZapyEhHXQDZkZL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 468, "user_id" = 589, "created_at" = '2013-07-17 20:34:54.170978', "updated_at" = '2013-07-17 20:34:54.170978', "auth_token" = 'DVZoi1ZapyEhHXQDZkZL' WHERE "public"."cadenero_members"."id" = 590  (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)   (11.3ms) 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")  (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")  (4.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")  (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)  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:34:54 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 468 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 589 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 589 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 589 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" = 589 Completed 201 Created in 225ms (Views: 81.2ms | ActiveRecord: 7.6ms) Cadenero::V1::Account Load (13.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (3.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 468 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-17 15:34:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"589", "default"=>:json} Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 589 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 2.1ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:34:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 1ms  (11.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (2.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", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Hv0aa4e7VkrnGWORMeT7SeLcuxp0G8AEjDC1dFCKC/WAv9m9mwyi."], ["updated_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 590], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mWwTQtFqqNfEyyzM9X6v' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 590, "created_at" = '2013-07-17 20:34:54.778155', "updated_at" = '2013-07-17 20:34:54.778155', "authentication_token" = 'mWwTQtFqqNfEyyzM9X6v' WHERE "public"."cadenero_accounts"."id" = 469  (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", 469], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:54 UTC +00:00], ["user_id", 590]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pDHLk6nGze156tH6PDQC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 469, "user_id" = 590, "created_at" = '2013-07-17 20:34:54.785988', "updated_at" = '2013-07-17 20:34:54.785988', "auth_token" = 'pDHLk6nGze156tH6PDQC' WHERE "public"."cadenero_members"."id" = 591  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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.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.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:34:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) 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" = 469 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" = 590 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 590 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" = 590 Completed 201 Created in 114ms (Views: 6.6ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 469 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:34:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"590", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:34:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 1ms  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$K1/rRhIQnn0wdYcjFpkJge7xSRNDFESdIed2nsMnpCE.ks7PgpZV6"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 591], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ByABArKAoqqJfx6sjz3e' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 591, "created_at" = '2013-07-17 20:34:55.093575', "updated_at" = '2013-07-17 20:34:55.093575', "authentication_token" = 'ByABArKAoqqJfx6sjz3e' WHERE "public"."cadenero_accounts"."id" = 470  (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", 470], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["user_id", 591]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n4fEyJKbLxnjaNaaVC5K' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 470, "user_id" = 591, "created_at" = '2013-07-17 20:34:55.099002', "updated_at" = '2013-07-17 20:34:55.099002', "auth_token" = 'n4fEyJKbLxnjaNaaVC5K' WHERE "public"."cadenero_members"."id" = 592  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.7ms) 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")  (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.3ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:34:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$vpIXUo56tkQWgF2MkAF8B.vk03KNeuGCh6ESLi5q52Qh9fSnguE8S"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 592], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7zVy3TLVQdi2q7ue1HL9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 592, "created_at" = '2013-07-17 20:34:55.291456', "updated_at" = '2013-07-17 20:34:55.291456', "authentication_token" = '7zVy3TLVQdi2q7ue1HL9' WHERE "public"."cadenero_accounts"."id" = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 471], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["user_id", 592]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TTzrzwRmpmDje1p5Yafc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 471, "user_id" = 592, "created_at" = '2013-07-17 20:34:55.296823', "updated_at" = '2013-07-17 20:34:55.296823', "auth_token" = 'TTzrzwRmpmDje1p5Yafc' WHERE "public"."cadenero_members"."id" = 593  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:34:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$NxakImy3iTNqzVnIY6xNgOYE9tJ.9q9vKoEjQ4Cp1AGmpVhskwi7e"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 593], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Hiqu32ia6DPqHfxpzs6A' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 593, "created_at" = '2013-07-17 20:34:55.481932', "updated_at" = '2013-07-17 20:34:55.481932', "authentication_token" = 'Hiqu32ia6DPqHfxpzs6A' WHERE "public"."cadenero_accounts"."id" = 472  (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", 472], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["user_id", 593]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uM9pJ8kki5VQHPTC2qEy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 472, "user_id" = 593, "created_at" = '2013-07-17 20:34:55.487424', "updated_at" = '2013-07-17 20:34:55.487424', "auth_token" = 'uM9pJ8kki5VQHPTC2qEy' WHERE "public"."cadenero_members"."id" = 594  (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)  (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.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")  (4.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:34:55 -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.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Ns.t1dLWGvqTEyLqGTr1Ke/NhFd42t/x4zkpM6tyoH3fcu.i6pkUG"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 594], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HKr3cSsQmFtdskZnPXZv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 594, "created_at" = '2013-07-17 20:34:55.655593', "updated_at" = '2013-07-17 20:34:55.655593', "authentication_token" = 'HKr3cSsQmFtdskZnPXZv' WHERE "public"."cadenero_accounts"."id" = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 473], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["user_id", 594]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GMZpxuQusW3Y4YDzgzq3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 473, "user_id" = 594, "created_at" = '2013-07-17 20:34:55.660991', "updated_at" = '2013-07-17 20:34:55.660991', "auth_token" = 'GMZpxuQusW3Y4YDzgzq3' WHERE "public"."cadenero_members"."id" = 595  (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)   (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.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")  (0.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")  (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)   (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')  (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", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$f/upEaI/m/4NVE5gjP0CZecj6HfjUnRDdGEaxOn6y0i1vv9IJNiju"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 595], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AwkxBNNiFSEAqBRnp245' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 595, "created_at" = '2013-07-17 20:34:55.813894', "updated_at" = '2013-07-17 20:34:55.813894', "authentication_token" = 'AwkxBNNiFSEAqBRnp245' WHERE "public"."cadenero_accounts"."id" = 474  (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", 474], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["user_id", 595]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u7QdPz7myh9KX87xNsDK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 474, "user_id" = 595, "created_at" = '2013-07-17 20:34:55.821967', "updated_at" = '2013-07-17 20:34:55.821967', "auth_token" = 'u7QdPz7myh9KX87xNsDK' WHERE "public"."cadenero_members"."id" = 596  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:34:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$y1oHkK45sxyF2ldc/TRzD.C1dUNXsWvIRMhUYtnrZBQ5JyLicjtAm"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 596], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zRZYz13WqQ3Emce7ZXja' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 596, "created_at" = '2013-07-17 20:34:55.947884', "updated_at" = '2013-07-17 20:34:55.947884', "authentication_token" = 'zRZYz13WqQ3Emce7ZXja' WHERE "public"."cadenero_accounts"."id" = 475  (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", 475], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:55 UTC +00:00], ["user_id", 596]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'incgm2vMXNAJY3sV6uRz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 475, "user_id" = 596, "created_at" = '2013-07-17 20:34:55.953482', "updated_at" = '2013-07-17 20:34:55.953482', "auth_token" = 'incgm2vMXNAJY3sV6uRz' WHERE "public"."cadenero_members"."id" = 597  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.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"  (2.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-17 15:34:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$L1e/mNVSekVZNWQ2JueWuum7H42wxaUq0evdcVQZMu6lABycSp20C"], ["updated_at", Wed, 17 Jul 2013 20:34: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" = '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", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 597], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zuMtMu49F2aotYRfZpvF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 597, "created_at" = '2013-07-17 20:34:56.123693', "updated_at" = '2013-07-17 20:34:56.123693', "authentication_token" = 'zuMtMu49F2aotYRfZpvF' WHERE "public"."cadenero_accounts"."id" = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 476], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["user_id", 597]] Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EEqFBqdTpCLPpmxw5q4E' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 476, "user_id" = 597, "created_at" = '2013-07-17 20:34:56.129383', "updated_at" = '2013-07-17 20:34:56.129383', "auth_token" = 'EEqFBqdTpCLPpmxw5q4E' WHERE "public"."cadenero_members"."id" = 598  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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.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")  (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.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"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:34:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Crq.ucN/tilQre5W7ENMBemfot./2p4lv8r8hdj6PKTbeCnYB2Kiu"], ["updated_at", Wed, 17 Jul 2013 20:34: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 598], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HCXxnhpq2Mos1KQmsjph' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 598, "created_at" = '2013-07-17 20:34:56.349374', "updated_at" = '2013-07-17 20:34:56.349374', "authentication_token" = 'HCXxnhpq2Mos1KQmsjph' WHERE "public"."cadenero_accounts"."id" = 477  (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", 477], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:34:56 UTC +00:00], ["user_id", 598]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2M6a2dxRTdzzpFxTzU9q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 477, "user_id" = 598, "created_at" = '2013-07-17 20:34:56.355231', "updated_at" = '2013-07-17 20:34:56.355231', "auth_token" = '2M6a2dxRTdzzpFxTzU9q' WHERE "public"."cadenero_members"."id" = 599  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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-17 15:34:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (5.0ms) ROLLBACK Connecting to database specified by database.yml  (10.5ms) BEGIN  (0.2ms) COMMIT  (9.6ms) BEGIN  (2.4ms) SAVEPOINT active_record_1 SQL (32.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:35:42 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Tswhpkkf66QX0wci99zCKuxrMcA1uL//cwtx2CZjX68KLVL8.RD1i"], ["updated_at", Wed, 17 Jul 2013 20:35:42 UTC +00:00]]  (6.4ms) RELEASE SAVEPOINT active_record_1  (7.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 (7.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", Wed, 17 Jul 2013 20:35:42 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 599], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:35:42 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1Hwpe1hVdn2fCCfDPgox' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 599, "created_at" = '2013-07-17 20:35:42.684661', "updated_at" = '2013-07-17 20:35:42.684661', "authentication_token" = '1Hwpe1hVdn2fCCfDPgox' WHERE "public"."cadenero_accounts"."id" = 478  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.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", 478], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:42 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:42 UTC +00:00], ["user_id", 599]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CC7784saDTgwZ1SENGY9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 478, "user_id" = 599, "created_at" = '2013-07-17 20:35:42.872999', "updated_at" = '2013-07-17 20:35:42.872999', "auth_token" = 'CC7784saDTgwZ1SENGY9' WHERE "public"."cadenero_members"."id" = 600  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.5ms) 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")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) 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")  (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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:35:42 -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" = 478 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" = 599 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 599 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 599 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" = 599 Completed 201 Created in 189ms (Views: 71.9ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (2.0ms) 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" = 478 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:35:43 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"599", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 599 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 1ms  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$tnhVBVLX3DVrzRrGo/IVIeU3HA3D2OKkwwleG7Ss7AB7wru9Ts9pC"], ["updated_at", Wed, 17 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.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 600], ["subdomain", "test2"], ["updated_at", Wed, 17 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" = 'UrxW737nph9KisWzxuYx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 600, "created_at" = '2013-07-17 20:35:43.361530', "updated_at" = '2013-07-17 20:35:43.361530', "authentication_token" = 'UrxW737nph9KisWzxuYx' WHERE "public"."cadenero_accounts"."id" = 479  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 479], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["user_id", 600]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't3EjVucste4BgHuQ79vQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 479, "user_id" = 600, "created_at" = '2013-07-17 20:35:43.367131', "updated_at" = '2013-07-17 20:35:43.367131', "auth_token" = 't3EjVucste4BgHuQ79vQ' WHERE "public"."cadenero_members"."id" = 601  (0.1ms) 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)  (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) 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)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:35:43 -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" = 479 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 600 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 600 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 600 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 600 Completed 201 Created in 117ms (Views: 5.8ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 479 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:35:43 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"600", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 600 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 1ms  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$EegaTdcHrb1tv77OwVC7EeTutxaTgwB.lJZuhoWSw18VY/3390psW"], ["updated_at", Wed, 17 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.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 601], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pxEhupENpg4kYYZbx65C' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 601, "created_at" = '2013-07-17 20:35:43.668852', "updated_at" = '2013-07-17 20:35:43.668852', "authentication_token" = 'pxEhupENpg4kYYZbx65C' WHERE "public"."cadenero_accounts"."id" = 480  (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", 480], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["user_id", 601]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jS8A171mpoQJ3ZbayqLH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 480, "user_id" = 601, "created_at" = '2013-07-17 20:35:43.685128', "updated_at" = '2013-07-17 20:35:43.685128', "auth_token" = 'jS8A171mpoQJ3ZbayqLH' WHERE "public"."cadenero_members"."id" = 602  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (1.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$rc/kjr2F4uCI4qg1N3vlGeTsqFuSUENWccWEdO1dMUvGkhxp99rLS"], ["updated_at", Wed, 17 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.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 602], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MgH824xP5ip6yeXnaWhs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 602, "created_at" = '2013-07-17 20:35:43.877115', "updated_at" = '2013-07-17 20:35:43.877115', "authentication_token" = 'MgH824xP5ip6yeXnaWhs' WHERE "public"."cadenero_accounts"."id" = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 481], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:43 UTC +00:00], ["user_id", 602]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hCp6xbXqWYtxMKG5X4k4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 481, "user_id" = 602, "created_at" = '2013-07-17 20:35:43.882754', "updated_at" = '2013-07-17 20:35:43.882754', "auth_token" = 'hCp6xbXqWYtxMKG5X4k4' WHERE "public"."cadenero_members"."id" = 603  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.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.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")  (0.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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.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-17 15:35:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.2ms) 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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$l1tB85MfvkmDdKQQADzf0uzhNy44TvUA7ceRKtmsGH13JvC8AuYw."], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 603], ["subdomain", "test5"], ["updated_at", Wed, 17 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" = 'wEy4yyVqcRqkyjtkqr9Y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 603, "created_at" = '2013-07-17 20:35:44.066422', "updated_at" = '2013-07-17 20:35:44.066422', "authentication_token" = 'wEy4yyVqcRqkyjtkqr9Y' WHERE "public"."cadenero_accounts"."id" = 482  (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", 482], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["user_id", 603]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oWNL7E4CPn9zpzr3yYzn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 482, "user_id" = 603, "created_at" = '2013-07-17 20:35:44.072547', "updated_at" = '2013-07-17 20:35:44.072547', "auth_token" = 'oWNL7E4CPn9zpzr3yYzn' WHERE "public"."cadenero_members"."id" = 604  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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")  (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, "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.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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$h5Y/.O/pm17jq/W3j8Wite0f7AI0YLMCiAzg0BJrAO2ExbZ18wTOa"], ["updated_at", Wed, 17 Jul 2013 20:35:44 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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 604], ["subdomain", "test6"], ["updated_at", Wed, 17 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" = 'uCyxzYpJ34dfYi7siE8t' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 604, "created_at" = '2013-07-17 20:35:44.226834', "updated_at" = '2013-07-17 20:35:44.226834', "authentication_token" = 'uCyxzYpJ34dfYi7siE8t' WHERE "public"."cadenero_accounts"."id" = 483  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.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", 483], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["user_id", 604]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3MtTdsB1Qeu8FuU47ezo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 483, "user_id" = 604, "created_at" = '2013-07-17 20:35:44.233873', "updated_at" = '2013-07-17 20:35:44.233873', "auth_token" = '3MtTdsB1Qeu8FuU47ezo' WHERE "public"."cadenero_members"."id" = 605  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:44 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$WvBGRiWQqbXft.vA5vrs6ODJeyRBYS04cRqpxrqr0GbguGd0ezQDm"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 605], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sepMXoJQ1FvQtDGp9u2z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 605, "created_at" = '2013-07-17 20:35:44.356370', "updated_at" = '2013-07-17 20:35:44.356370', "authentication_token" = 'sepMXoJQ1FvQtDGp9u2z' WHERE "public"."cadenero_accounts"."id" = 484  (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", 484], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["user_id", 605]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '71qnnzysxUddxgp5sfbN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 484, "user_id" = 605, "created_at" = '2013-07-17 20:35:44.362358', "updated_at" = '2013-07-17 20:35:44.362358', "auth_token" = '71qnnzysxUddxgp5sfbN' WHERE "public"."cadenero_members"."id" = 606  (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.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.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.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")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:35:44 -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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$bWBbw8vW9WH5Ivd.SaxFTeBFxAJyaTQX02DdSvJSzQe4VsWF8PgHK"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 606], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bbxg5JZSUuGgysMtyCQA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 606, "created_at" = '2013-07-17 20:35:44.525864', "updated_at" = '2013-07-17 20:35:44.525864', "authentication_token" = 'bbxg5JZSUuGgysMtyCQA' WHERE "public"."cadenero_accounts"."id" = 485  (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", 485], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["user_id", 606]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jPQbNKH9XF16wBtvmpWF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 485, "user_id" = 606, "created_at" = '2013-07-17 20:35:44.532053', "updated_at" = '2013-07-17 20:35:44.532053', "auth_token" = 'jPQbNKH9XF16wBtvmpWF' WHERE "public"."cadenero_members"."id" = 607  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:44 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (14.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$nu7hzBC7WKbW9oEMm7NL1.JMoX30zTSlXWIvmyVsKRjtSoRoAyoAG"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 607], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8qMuyd4QsEhJYo9Rfy8j' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 607, "created_at" = '2013-07-17 20:35:44.750066', "updated_at" = '2013-07-17 20:35:44.750066', "authentication_token" = '8qMuyd4QsEhJYo9Rfy8j' WHERE "public"."cadenero_accounts"."id" = 486  (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", 486], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["user_id", 607]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hHpdAU4RzeFsiVygUz3p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 486, "user_id" = 607, "created_at" = '2013-07-17 20:35:44.755721', "updated_at" = '2013-07-17 20:35:44.755721', "auth_token" = 'hHpdAU4RzeFsiVygUz3p' WHERE "public"."cadenero_members"."id" = 608  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:44 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 0ms  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$hlcrM7E7U6Lw7MxjXIqgIegfzg7wn9T156ZYkKJn1FmPekzrTxnZW"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 608], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'b4gpqxhzZ2NzzLxz2tzG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 608, "created_at" = '2013-07-17 20:35:44.962915', "updated_at" = '2013-07-17 20:35:44.962915', "authentication_token" = 'b4gpqxhzZ2NzzLxz2tzG' WHERE "public"."cadenero_accounts"."id" = 487  (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", 487], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:35:44 UTC +00:00], ["user_id", 608]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aGnGrDDotJirmTqCk5Dz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 487, "user_id" = 608, "created_at" = '2013-07-17 20:35:44.968635', "updated_at" = '2013-07-17 20:35:44.968635', "auth_token" = 'aGnGrDDotJirmTqCk5Dz' WHERE "public"."cadenero_members"."id" = 609  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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" ("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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:35:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Completed 500 Internal Server Error in 1ms  (3.8ms) ROLLBACK Connecting to database specified by database.yml  (2.9ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (1.9ms) 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", Wed, 17 Jul 2013 20:37:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$RdK.UvaWaSnW5xgLQgHvaeSoqpegFwuMyUp1dhOtTYVRkclD7VGW2"], ["updated_at", Wed, 17 Jul 2013 20:37:19 UTC +00:00]]  (2.1ms) 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 (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", Wed, 17 Jul 2013 20:37:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 609], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:37:19 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Va6K9zTsASmKnj3gB48N' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 609, "created_at" = '2013-07-17 20:37:19.928906', "updated_at" = '2013-07-17 20:37:19.928906', "authentication_token" = 'Va6K9zTsASmKnj3gB48N' WHERE "public"."cadenero_accounts"."id" = 488  (41.4ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", 488], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["user_id", 609]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YRxULYXpRRp4zkBwgeej' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 488, "user_id" = 609, "created_at" = '2013-07-17 20:37:20.149728', "updated_at" = '2013-07-17 20:37:20.149728', "auth_token" = 'YRxULYXpRRp4zkBwgeej' WHERE "public"."cadenero_members"."id" = 610  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (9.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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) 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)   (4.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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 6ms (Views: 0.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:20 -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.9ms) 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" = 488 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" = 609 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 609 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 609 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 609 Completed 201 Created in 149ms (Views: 29.9ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 488 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37:20 -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" = 609 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (15.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$poJBN/IpTmybHi0uxyej/.4U9ylEZ9H4Xj0C9ll4CFnUCTCNku5um"], ["updated_at", Wed, 17 Jul 2013 20:37:20 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 610], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MDypUCpFmaMq5PvFim8T' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 610, "created_at" = '2013-07-17 20:37:20.681296', "updated_at" = '2013-07-17 20:37:20.681296', "authentication_token" = 'MDypUCpFmaMq5PvFim8T' WHERE "public"."cadenero_accounts"."id" = 489  (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", 489], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["user_id", 610]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1cksxr5cbA24nnPtv9co' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 489, "user_id" = 610, "created_at" = '2013-07-17 20:37:20.687228', "updated_at" = '2013-07-17 20:37:20.687228', "auth_token" = '1cksxr5cbA24nnPtv9co' WHERE "public"."cadenero_members"."id" = 611  (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)  (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")  (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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) 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.0ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:37:20 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$oMZJ1SBAiprqRzlwbb7JzOTWw.WMWRCjzj/2NM/DmucAd8QAedmdq"], ["updated_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 489], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:20 UTC +00:00], ["user_id", 611]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bnLeLa5TQakQsC5TsnGG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 489, "user_id" = 611, "created_at" = '2013-07-17 20:37:20.867456', "updated_at" = '2013-07-17 20:37:20.867456', "auth_token" = 'bnLeLa5TQakQsC5TsnGG' WHERE "public"."cadenero_members"."id" = 612  (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" = 611 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 611 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 611 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 611 Completed 201 Created in 120ms (Views: 5.8ms | 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/611" for 127.0.0.1 at 2013-07-17 15:37:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"611"} 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" = 489 AND "public"."cadenero_users"."id" = 611 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 611 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 611 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 611 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 611 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 611 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 611 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 611 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 611 Completed 201 Created in 10ms (Views: 5.1ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37:20 -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" = 611 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Qi9N48mATWzCXfB2OVfrRO99qWNgvNMUqxYq0pHk5uS5SRyJeJK9u"], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 612], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ao7zqw3jNyqA3mrzgsTU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 612, "created_at" = '2013-07-17 20:37:21.043368', "updated_at" = '2013-07-17 20:37:21.043368', "authentication_token" = 'Ao7zqw3jNyqA3mrzgsTU' WHERE "public"."cadenero_accounts"."id" = 490  (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", 490], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["user_id", 612]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DTNYZSAzhLNA5q5tZDxy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 490, "user_id" = 612, "created_at" = '2013-07-17 20:37:21.048787', "updated_at" = '2013-07-17 20:37:21.048787', "auth_token" = 'DTNYZSAzhLNA5q5tZDxy' WHERE "public"."cadenero_members"."id" = 613  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.6ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37: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 (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 490 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" = 612 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 612 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 612 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 612 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" = 490 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"612", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 612 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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.5ms | ActiveRecord: 0.0ms)  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$mWHomUy7wPxlQeOSQ9MJRuCT2kl6GewFw7MVznCn0b8ULgsJn3VZS"], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 613], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SVYosi8rVbFVqCoXpuuU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 613, "created_at" = '2013-07-17 20:37:21.359212', "updated_at" = '2013-07-17 20:37:21.359212', "authentication_token" = 'SVYosi8rVbFVqCoXpuuU' WHERE "public"."cadenero_accounts"."id" = 491  (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", 491], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["user_id", 613]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DUrcZKaNG2tmZRva4tiM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 491, "user_id" = 613, "created_at" = '2013-07-17 20:37:21.364616', "updated_at" = '2013-07-17 20:37:21.364616', "auth_token" = 'DUrcZKaNG2tmZRva4tiM' WHERE "public"."cadenero_members"."id" = 614  (0.1ms) 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)  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:21 -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" = 491 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 613 LIMIT 1 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 613 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 613 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 613 Completed 201 Created in 115ms (Views: 6.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 491 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"613", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 613 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) 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", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$6H3L6HrGB.i.6HWnz8KRJOAoVCa4SEc4U1jBS60OnefBkj3zhAem."], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 491], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["user_id", 614]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R8ordyQLPevgPC8imFEX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 491, "user_id" = 614, "created_at" = '2013-07-17 20:37:21.669958', "updated_at" = '2013-07-17 20:37:21.669958', "auth_token" = 'R8ordyQLPevgPC8imFEX' WHERE "public"."cadenero_members"."id" = 615  (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" = 614 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 614 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 614 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" = 614 Completed 201 Created in 125ms (Views: 5.8ms | ActiveRecord: 8.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/614" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"614"} 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" = 491 AND "public"."cadenero_users"."id" = 614 LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 614 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 614 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 614 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 614 Completed 200 OK in 15ms (Views: 7.6ms | ActiveRecord: 4.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 614 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 614 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 614 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 614 Completed 201 Created in 7ms (Views: 5.1ms | 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  (11.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ZQt/8uEdPdnFowqOnMOx0eErvoirDTimU/rzOepoDkdpPJqhjK0v6"], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 615], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DGGSa9JQmuVwsVQ4tbMU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 615, "created_at" = '2013-07-17 20:37:21.900912', "updated_at" = '2013-07-17 20:37:21.900912', "authentication_token" = 'DGGSa9JQmuVwsVQ4tbMU' WHERE "public"."cadenero_accounts"."id" = 492  (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", 492], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:21 UTC +00:00], ["user_id", 615]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BskNDiFTgncNtjyVyzWC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 492, "user_id" = 615, "created_at" = '2013-07-17 20:37:21.906703', "updated_at" = '2013-07-17 20:37:21.906703', "auth_token" = 'BskNDiFTgncNtjyVyzWC' WHERE "public"."cadenero_members"."id" = 616  (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")  (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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 492 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$7hGeE6ylqO.p7UYRjM2OaevbhQgdqCDTRbCxQ1R8JyGHhf/COa7cW"], ["updated_at", Wed, 17 Jul 2013 20:37: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 616], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KVD2bGBXSHMxvyHJNmsx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 616, "created_at" = '2013-07-17 20:37:22.149342', "updated_at" = '2013-07-17 20:37:22.149342', "authentication_token" = 'KVD2bGBXSHMxvyHJNmsx' WHERE "public"."cadenero_accounts"."id" = 493  (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", 493], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["user_id", 616]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RsNJpwECYQKwBx1uoy9U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 493, "user_id" = 616, "created_at" = '2013-07-17 20:37:22.155154', "updated_at" = '2013-07-17 20:37:22.155154', "auth_token" = 'RsNJpwECYQKwBx1uoy9U' WHERE "public"."cadenero_members"."id" = 617  (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)   (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, "auth_token" character varying(255))  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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-17 15:37:22 -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.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" = 493 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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  (5.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) COMMIT  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$yB.OIVgvYwNKzVqbVFZtWep7v0CKVQ7oka2gGS/.jCsVUAC8eaPeG"], ["updated_at", Wed, 17 Jul 2013 20:37: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.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", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 617], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'k8EAwu9souzHErytaAVH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 617, "created_at" = '2013-07-17 20:37:22.354384', "updated_at" = '2013-07-17 20:37:22.354384', "authentication_token" = 'k8EAwu9souzHErytaAVH' WHERE "public"."cadenero_accounts"."id" = 494  (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", 494], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["user_id", 617]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aufqnsau7H37j5x7Zjc6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 494, "user_id" = 617, "created_at" = '2013-07-17 20:37:22.360171', "updated_at" = '2013-07-17 20:37:22.360171', "auth_token" = 'aufqnsau7H37j5x7Zjc6' WHERE "public"."cadenero_members"."id" = 618  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (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.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))   (3.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$YFaMuEsGW2tzewDn9WYso.5xW3Sg5b//lx/rvJ99rE65XoGnz5II."], ["updated_at", Wed, 17 Jul 2013 20:37: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.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", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 618], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bHozfbXx7KJNASeNrpmz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 618, "created_at" = '2013-07-17 20:37:22.512321', "updated_at" = '2013-07-17 20:37:22.512321', "authentication_token" = 'bHozfbXx7KJNASeNrpmz' WHERE "public"."cadenero_accounts"."id" = 495  (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", 495], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["user_id", 618]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'C9WppQ2KsjzH75ynnXNq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 495, "user_id" = 618, "created_at" = '2013-07-17 20:37:22.517615', "updated_at" = '2013-07-17 20:37:22.517615', "auth_token" = 'C9WppQ2KsjzH75ynnXNq' WHERE "public"."cadenero_members"."id" = 619  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:22 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 494 AND "public"."cadenero_users"."email" = 'user8@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  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Ooff3G.bAEEg/hb5kt30COk8/q7FLoGyj7dBWvv2.3yWEOkjR6hBa"], ["updated_at", Wed, 17 Jul 2013 20:37: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" = '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", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 619], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8TmscGfgaCEZCeQkniFv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 619, "created_at" = '2013-07-17 20:37:22.662626', "updated_at" = '2013-07-17 20:37:22.662626', "authentication_token" = '8TmscGfgaCEZCeQkniFv' WHERE "public"."cadenero_accounts"."id" = 496  (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", 496], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["user_id", 619]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nwNVg83z6pvFXUVisLNq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 496, "user_id" = 619, "created_at" = '2013-07-17 20:37:22.668062', "updated_at" = '2013-07-17 20:37:22.668062', "auth_token" = 'nwNVg83z6pvFXUVisLNq' WHERE "public"."cadenero_members"."id" = 620  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (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.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")  (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)   (3.2ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) 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-17 15:37: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  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$5o6ws4NQ7uVS8Uu0iFptGO87YlHpL7aFCek859jFYsrn.Md5kJCRa"], ["updated_at", Wed, 17 Jul 2013 20:37: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" = '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", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 620], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aRLAx32yGvvGbdbmSMNb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 620, "created_at" = '2013-07-17 20:37:22.839351', "updated_at" = '2013-07-17 20:37:22.839351', "authentication_token" = 'aRLAx32yGvvGbdbmSMNb' WHERE "public"."cadenero_accounts"."id" = 497  (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", 497], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:22 UTC +00:00], ["user_id", 620]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aB25CAKoxpZzXoPc8Q92' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 497, "user_id" = 620, "created_at" = '2013-07-17 20:37:22.844782', "updated_at" = '2013-07-17 20:37:22.844782', "auth_token" = 'aB25CAKoxpZzXoPc8Q92' WHERE "public"."cadenero_members"."id" = 621  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.4ms) 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 ('20130715174857')  (0.4ms) 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-17 15:37:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 620 Started GET "/v1?auth_token[]=aB25CAKoxpZzXoPc8Q92" for 127.0.0.1 at 2013-07-17 15:37:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["aB25CAKoxpZzXoPc8Q92"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.7ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (2.6ms) 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", Wed, 17 Jul 2013 20:37:58 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$nXmjHe.LJ1jijUtpK3RhE.tVasMlnjyx7.XWyYsum/gSRDOg4yjW2"], ["updated_at", Wed, 17 Jul 2013 20:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (9.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", Wed, 17 Jul 2013 20:37:58 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 621], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:37:58 UTC +00:00]] Cadenero::V1::Account Load (9.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wJEwHc5TJ9qY4MseUexz' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 621, "created_at" = '2013-07-17 20:37:58.391973', "updated_at" = '2013-07-17 20:37:58.391973', "authentication_token" = 'wJEwHc5TJ9qY4MseUexz' WHERE "public"."cadenero_accounts"."id" = 498  (3.9ms) RELEASE SAVEPOINT active_record_1  (3.6ms) 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", 498], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:58 UTC +00:00], ["user_id", 621]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z6xEdaEpEvMj5o6QV5PB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 498, "user_id" = 621, "created_at" = '2013-07-17 20:37:58.589763', "updated_at" = '2013-07-17 20:37:58.589763', "auth_token" = 'Z6xEdaEpEvMj5o6QV5PB' WHERE "public"."cadenero_members"."id" = 622  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (11.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, "auth_token" character varying(255))  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.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")  (15.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)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 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" = 498 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 621 LIMIT 1 Cadenero::Member Load (9.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 621 Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 621 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" = 621 Completed 201 Created in 219ms (Views: 31.6ms | ActiveRecord: 22.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 498 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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" = 621 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.9ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$g0JHxKZ2RRqilk/WAdyCK.81rf.RY8DLk4h2FXo/XX5Fv2l25kf2y"], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 622], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BmvW5YhGW6RDihHXyPoi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 622, "created_at" = '2013-07-17 20:37:59.192390', "updated_at" = '2013-07-17 20:37:59.192390', "authentication_token" = 'BmvW5YhGW6RDihHXyPoi' WHERE "public"."cadenero_accounts"."id" = 499  (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", 499], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["user_id", 622]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'U7gnpynLUVAxb2sDzqAy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 499, "user_id" = 622, "created_at" = '2013-07-17 20:37:59.197989', "updated_at" = '2013-07-17 20:37:59.197989', "auth_token" = 'U7gnpynLUVAxb2sDzqAy' WHERE "public"."cadenero_members"."id" = 623  (0.1ms) 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)  (0.9ms) 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.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")  (9.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)   (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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37: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 (1.0ms) 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" = 499 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" = 622 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 622 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 622 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" = 622 Completed 201 Created in 110ms (Views: 5.6ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 499 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37:59 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"622", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 622 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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-17 15:37: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" = '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", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$YQKyz996UY2LcJcDjdiaeu10AzGIsYyYR9xsEg9LxWX.hUDYzbwS."], ["updated_at", Wed, 17 Jul 2013 20:37: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", 499], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["user_id", 623]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1sbKBASpT9FmY6DhJu5T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 499, "user_id" = 623, "created_at" = '2013-07-17 20:37:59.498567', "updated_at" = '2013-07-17 20:37:59.498567', "auth_token" = '1sbKBASpT9FmY6DhJu5T' WHERE "public"."cadenero_members"."id" = 624  (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" = 623 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 623 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 623 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 623 Completed 201 Created in 122ms (Views: 10.3ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/623" for 127.0.0.1 at 2013-07-17 15:37:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"623"} 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" = 499 AND "public"."cadenero_users"."id" = 623 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 623 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 623 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 623 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" = 623 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37: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" = 623 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 623 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 623 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" = 623 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (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", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$wOw9PMG6oPIjvrGn.dlGoOdCL/ke/UXPWk4Il.FMPmnFZmXfeRAta"], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 624], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hoqMPhsMJK4UoNbiRzuM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 624, "created_at" = '2013-07-17 20:37:59.665474', "updated_at" = '2013-07-17 20:37:59.665474', "authentication_token" = 'hoqMPhsMJK4UoNbiRzuM' WHERE "public"."cadenero_accounts"."id" = 500  (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", 500], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["user_id", 624]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'osEsGasij5YrE4vPzxNu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 500, "user_id" = 624, "created_at" = '2013-07-17 20:37:59.674327', "updated_at" = '2013-07-17 20:37:59.674327', "auth_token" = 'osEsGasij5YrE4vPzxNu' WHERE "public"."cadenero_members"."id" = 625  (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)  (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")  (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.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")  (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)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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.7ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:37: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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$kvQqWvOqa6ydu6A43ex3hOPZ.mXdPrGFk/zOJ.z6yEJkFgkW7bhyG"], ["updated_at", Wed, 17 Jul 2013 20:37: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", 500], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:37:59 UTC +00:00], ["user_id", 625]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pysKkCkzjdnr1yxjwRiP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 500, "user_id" = 625, "created_at" = '2013-07-17 20:37:59.857074', "updated_at" = '2013-07-17 20:37:59.857074', "auth_token" = 'pysKkCkzjdnr1yxjwRiP' WHERE "public"."cadenero_members"."id" = 626  (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" = 625 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 625 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 625 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 625 Completed 201 Created in 131ms (Views: 5.8ms | 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/625" for 127.0.0.1 at 2013-07-17 15:37:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"625"} 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" = 500 AND "public"."cadenero_users"."id" = 625 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 625 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 625 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 625 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 625 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:37: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" = 625 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 625 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 625 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 625 Completed 201 Created in 9ms (Views: 6.7ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:37: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" = 625 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$cadEX75FehuYXjkD7bT9mOTGN62FkEKDLb8egO8N5Ll8HhoulrFSS"], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 626], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JpQXaDFzexeoypPApkGq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 626, "created_at" = '2013-07-17 20:38:00.039842', "updated_at" = '2013-07-17 20:38:00.039842', "authentication_token" = 'JpQXaDFzexeoypPApkGq' WHERE "public"."cadenero_accounts"."id" = 501  (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", 501], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["user_id", 626]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yqcMVESszsPsNfufG5h3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 501, "user_id" = 626, "created_at" = '2013-07-17 20:38:00.045278', "updated_at" = '2013-07-17 20:38:00.045278', "auth_token" = 'yqcMVESszsPsNfufG5h3' WHERE "public"."cadenero_members"."id" = 627  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (5.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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38: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.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" = 501 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" = 626 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 626 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 626 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 626 Completed 201 Created in 124ms (Views: 11.7ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 501 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"626", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 626 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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)  (9.3ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$7AmD6X5ohGF.aUPGnLXVg.aF2N6u3y9ePl/.sJ0tgswo.m9Dcxx0e"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 627], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qs212d5tbDRpshu8uTwB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 627, "created_at" = '2013-07-17 20:38:00.453560', "updated_at" = '2013-07-17 20:38:00.453560', "authentication_token" = 'qs212d5tbDRpshu8uTwB' WHERE "public"."cadenero_accounts"."id" = 502  (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", 502], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["user_id", 627]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4yjXsyW5EPpi3DPjS7zy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 502, "user_id" = 627, "created_at" = '2013-07-17 20:38:00.459091', "updated_at" = '2013-07-17 20:38:00.459091', "auth_token" = '4yjXsyW5EPpi3DPjS7zy' WHERE "public"."cadenero_members"."id" = 628  (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)  (0.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, "auth_token" character varying(255))   (6.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")  (3.2ms) 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)   (1.5ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38: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 ('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" = 502 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.RjxieROKFSsAT.x6HSYcuyVva5QPRnGzruR.lVn2pF6HOxSdTJAG"], ["updated_at", Wed, 17 Jul 2013 20:38: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", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 628], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1yNGjPFeVCq7RsfYyptT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 628, "created_at" = '2013-07-17 20:38:00.736419', "updated_at" = '2013-07-17 20:38:00.736419', "authentication_token" = '1yNGjPFeVCq7RsfYyptT' WHERE "public"."cadenero_accounts"."id" = 503  (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", 503], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["user_id", 628]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sbGsNnyW5hbPgazfBXqz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 503, "user_id" = 628, "created_at" = '2013-07-17 20:38:00.742109', "updated_at" = '2013-07-17 20:38:00.742109', "auth_token" = 'sbGsNnyW5hbPgazfBXqz' WHERE "public"."cadenero_members"."id" = 629  (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.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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-17 15:38: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  (4.0ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$CfdSEX7OkuVIuDhRNQlmFudmbMed3iopRu3bX2elj4nDuqf79xauG"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 629], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kYcyZSUFxR23q6Q4zWS9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 629, "created_at" = '2013-07-17 20:38:00.917392', "updated_at" = '2013-07-17 20:38:00.917392', "authentication_token" = 'kYcyZSUFxR23q6Q4zWS9' WHERE "public"."cadenero_accounts"."id" = 504  (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", 504], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:00 UTC +00:00], ["user_id", 629]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MLaZpHJ2nqLoRhHsKhBA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 504, "user_id" = 629, "created_at" = '2013-07-17 20:38:00.922971', "updated_at" = '2013-07-17 20:38:00.922971', "auth_token" = 'MLaZpHJ2nqLoRhHsKhBA' WHERE "public"."cadenero_members"."id" = 630  (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.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")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.0ms) 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)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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-17 15:38: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 ('test7') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 504 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 (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$2WJ8peTZHEgl9svh8JxyWe0OblXXfQTgBo.yuBPK8fq/VtShLHLlO"], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 630], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gYYvjL1Jd3AzQeKiPFHo' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 630, "created_at" = '2013-07-17 20:38:01.172208', "updated_at" = '2013-07-17 20:38:01.172208', "authentication_token" = 'gYYvjL1Jd3AzQeKiPFHo' WHERE "public"."cadenero_accounts"."id" = 505  (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", 505], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["user_id", 630]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jgVdBWrk1nzj144oNiuD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 505, "user_id" = 630, "created_at" = '2013-07-17 20:38:01.181378', "updated_at" = '2013-07-17 20:38:01.181378', "auth_token" = 'jgVdBWrk1nzj144oNiuD' WHERE "public"."cadenero_members"."id" = 631  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.0ms) 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$RHDNXIpdllt79QRfjK95oOj7xRVGibVbvaQ7UhGyKic5JE2PKVwGC"], ["updated_at", Wed, 17 Jul 2013 20:38:01 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", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 631], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ySrXLEB2x2dm1y77p24X' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 631, "created_at" = '2013-07-17 20:38:01.333745', "updated_at" = '2013-07-17 20:38:01.333745', "authentication_token" = 'ySrXLEB2x2dm1y77p24X' WHERE "public"."cadenero_accounts"."id" = 506  (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", 506], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["user_id", 631]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jWb7zv4bjpMeWsJDuycL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 506, "user_id" = 631, "created_at" = '2013-07-17 20:38:01.338948', "updated_at" = '2013-07-17 20:38:01.338948', "auth_token" = 'jWb7zv4bjpMeWsJDuycL' WHERE "public"."cadenero_members"."id" = 632  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 505 AND "public"."cadenero_users"."email" = 'user9@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  (6.0ms) ROLLBACK  (0.4ms) BEGIN  (1.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$IwC9oSN8MHt8OGncZEkY8et2zFq6zRcFcaAT/9KbeGrpw3PR6ZOYe"], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 632], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8vs3GHgdxUwnqfgPzs63' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 632, "created_at" = '2013-07-17 20:38:01.471364', "updated_at" = '2013-07-17 20:38:01.471364', "authentication_token" = '8vs3GHgdxUwnqfgPzs63' WHERE "public"."cadenero_accounts"."id" = 507  (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", 507], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:01 UTC +00:00], ["user_id", 632]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4D8fDoEh1wJxnSZ3oLVd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 507, "user_id" = 632, "created_at" = '2013-07-17 20:38:01.476910', "updated_at" = '2013-07-17 20:38:01.476910', "auth_token" = '4D8fDoEh1wJxnSZ3oLVd' WHERE "public"."cadenero_members"."id" = 633  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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, "auth_token" character varying(255))   (1.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")  (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")  (1.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 632 Started GET "/v1?auth_token[]=4D8fDoEh1wJxnSZ3oLVd" for 127.0.0.1 at 2013-07-17 15:38:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["4D8fDoEh1wJxnSZ3oLVd"], "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 Connecting to database specified by database.yml  (8.7ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (38.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$G4Rdee/aJKANrNM6pQyXY.4A2bgMzv9HnL5iRkXGi2MZ/CSzwIray"], ["updated_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00]]  (8.5ms) RELEASE SAVEPOINT active_record_1  (4.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (16.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", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 633], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wEyUQt4fxjKS1d3x4688' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 633, "created_at" = '2013-07-17 20:38:24.362788', "updated_at" = '2013-07-17 20:38:24.362788', "authentication_token" = 'wEyUQt4fxjKS1d3x4688' WHERE "public"."cadenero_accounts"."id" = 508  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.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", 508], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["user_id", 633]] Cadenero::Member Load (9.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Zp2kpHk2xFfhaFPEKojU' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 508, "user_id" = 633, "created_at" = '2013-07-17 20:38:24.522976', "updated_at" = '2013-07-17 20:38:24.522976', "auth_token" = 'Zp2kpHk2xFfhaFPEKojU' WHERE "public"."cadenero_members"."id" = 634  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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))  (6.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (8.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (15.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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 5ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 15:38:24 -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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (20.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ndQlWogJKqK.SqXNY0t5MOGa8PecLOeMTsqg.Y4ZIOLiV6xf18EOu"], ["updated_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00]] SQL (10.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", 508], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:24 UTC +00:00], ["user_id", 634]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2xmkbVzYN4y7xDKDzin3' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 508, "user_id" = 634, "created_at" = '2013-07-17 20:38:24.933861', "updated_at" = '2013-07-17 20:38:24.933861', "auth_token" = '2xmkbVzYN4y7xDKDzin3' WHERE "public"."cadenero_members"."id" = 635  (2.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 634 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 634 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 634 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" = 634 Completed 201 Created in 244ms (Views: 37.9ms | ActiveRecord: 61.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/634" for 127.0.0.1 at 2013-07-17 15:38:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"634"} 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.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" = 508 AND "public"."cadenero_users"."id" = 634 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 634 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 634 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 634 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" = 634 Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38:25 -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" = 634 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 634 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 634 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" = 634 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38:25 -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" = 634 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$ChdyQ6WD0NswuNvhf/ATH.i6CUhfWRPlbQ7TMwVocA05FO6Tnnlaq"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 635], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7t4WeUYqEipwd6JmjUXy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 635, "created_at" = '2013-07-17 20:38:25.184602', "updated_at" = '2013-07-17 20:38:25.184602', "authentication_token" = '7t4WeUYqEipwd6JmjUXy' WHERE "public"."cadenero_accounts"."id" = 509  (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", 509], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["user_id", 635]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zc5t5fxRxyhkJMukDkKC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 509, "user_id" = 635, "created_at" = '2013-07-17 20:38:25.190124', "updated_at" = '2013-07-17 20:38:25.190124', "auth_token" = 'zc5t5fxRxyhkJMukDkKC' WHERE "public"."cadenero_members"."id" = 636  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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")  (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.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.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.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-17 15:38: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.6ms) 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" = 509 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" = 635 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 635 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 635 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" = 635 Completed 201 Created in 113ms (Views: 5.6ms | 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" = 509 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38:25 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"635", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 635 LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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.4ms | ActiveRecord: 0.0ms)  (10.1ms) ROLLBACK  (1.2ms) BEGIN  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$9YoCWQWN.AV9S8dSv0oXCeOv2CR2BmeGTJxMQJnqNCH0KDMsq9EzK"], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00]]  (4.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.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", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 636], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QvcxdRbAyy6DyY1DJLJV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 636, "created_at" = '2013-07-17 20:38:25.514179', "updated_at" = '2013-07-17 20:38:25.514179', "authentication_token" = 'QvcxdRbAyy6DyY1DJLJV' WHERE "public"."cadenero_accounts"."id" = 510  (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", 510], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["user_id", 636]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HNXTwyDQQMGLEfCXSyam' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 510, "user_id" = 636, "created_at" = '2013-07-17 20:38:25.521682', "updated_at" = '2013-07-17 20:38:25.521682', "auth_token" = 'HNXTwyDQQMGLEfCXSyam' WHERE "public"."cadenero_members"."id" = 637  (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.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.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.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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-17 15:38: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 510 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" = 636 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 636 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 636 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 636 Completed 201 Created in 124ms (Views: 6.0ms | 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" = 510 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38:25 -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" = 636 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.4ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$iGGwp5Q4NGuDcTPf3RV3heIQEYQXkbMput3eSIkiGR.zSe4eUHQIW"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 637], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PYLhUx7CqYq6pN6WMb9N' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 637, "created_at" = '2013-07-17 20:38:25.863409', "updated_at" = '2013-07-17 20:38:25.863409', "authentication_token" = 'PYLhUx7CqYq6pN6WMb9N' WHERE "public"."cadenero_accounts"."id" = 511  (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", 511], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:25 UTC +00:00], ["user_id", 637]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yZNsaznt44RMeiEEkNqF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 511, "user_id" = 637, "created_at" = '2013-07-17 20:38:25.868883', "updated_at" = '2013-07-17 20:38:25.868883', "auth_token" = 'yZNsaznt44RMeiEEkNqF' WHERE "public"."cadenero_members"."id" = 638  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (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-17 15:38:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.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" = 511 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" = 637 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 637 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 637 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 637 Completed 201 Created in 112ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 511 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"637", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 637 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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/users" for 127.0.0.1 at 2013-07-17 15:38:26 -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", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$JkoPjDLsnDCBKcjfzA6o8ObohkKGfTI8pd9GrzLTOlKCWqG9enrvS"], ["updated_at", Wed, 17 Jul 2013 20:38:26 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", 511], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["user_id", 638]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HLkeVRNHju5qdgy6p8uT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 511, "user_id" = 638, "created_at" = '2013-07-17 20:38:26.170004', "updated_at" = '2013-07-17 20:38:26.170004', "auth_token" = 'HLkeVRNHju5qdgy6p8uT' WHERE "public"."cadenero_members"."id" = 639  (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" = 638 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 638 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 638 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 638 Completed 201 Created in 119ms (Views: 5.6ms | 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/638" for 127.0.0.1 at 2013-07-17 15:38:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"638"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 511 AND "public"."cadenero_users"."id" = 638 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 638 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 638 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 638 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 638 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38:26 -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" = 638 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 638 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 638 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 638 Completed 201 Created in 7ms (Views: 4.8ms | 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  (4.0ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$IpN93W5iPLdUt5RlIkCuEebDUo.U67gVgS3JSbRH6Vpf.3s/anPha"], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 639], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8WqDTPHUsyz9g8rXzoyr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 639, "created_at" = '2013-07-17 20:38:26.353279', "updated_at" = '2013-07-17 20:38:26.353279', "authentication_token" = '8WqDTPHUsyz9g8rXzoyr' WHERE "public"."cadenero_accounts"."id" = 512  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 512], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["user_id", 639]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xm2wzYfsbSex2pt2iRqU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 512, "user_id" = 639, "created_at" = '2013-07-17 20:38:26.358989', "updated_at" = '2013-07-17 20:38:26.358989', "auth_token" = 'Xm2wzYfsbSex2pt2iRqU' WHERE "public"."cadenero_members"."id" = 640  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (11.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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-17 15:38: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.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" = 512 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$7djqtw1umkw/dHmbjuMvzOD4lUUbaxsS9qR4reOVstk.42ck36W9e"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 640], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZMQ7yWGxyrm3zLf63rM4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 640, "created_at" = '2013-07-17 20:38:26.618986', "updated_at" = '2013-07-17 20:38:26.618986', "authentication_token" = 'ZMQ7yWGxyrm3zLf63rM4' WHERE "public"."cadenero_accounts"."id" = 513  (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", 513], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["user_id", 640]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sebEGDzD7SKi17cjSk2S' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 513, "user_id" = 640, "created_at" = '2013-07-17 20:38:26.624697', "updated_at" = '2013-07-17 20:38:26.624697', "auth_token" = 'sebEGDzD7SKi17cjSk2S' WHERE "public"."cadenero_members"."id" = 641  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)   (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")  (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.4ms) 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.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$qG3rY6YuqWztS2bnqJ9uRulh.ZYlEQSsi6CcDjnaa5U8R2Rcw6wJ."], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 641], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qGqrs7ptEWssir1a84au' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 641, "created_at" = '2013-07-17 20:38:26.782501', "updated_at" = '2013-07-17 20:38:26.782501', "authentication_token" = 'qGqrs7ptEWssir1a84au' WHERE "public"."cadenero_accounts"."id" = 514  (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", 514], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["user_id", 641]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Y5Q2CzBURXg8r81xsek9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 514, "user_id" = 641, "created_at" = '2013-07-17 20:38:26.787755', "updated_at" = '2013-07-17 20:38:26.787755', "auth_token" = 'Y5Q2CzBURXg8r81xsek9' WHERE "public"."cadenero_members"."id" = 642  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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-17 15:38: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 513 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.4ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$ovHaBtruQs9VIspSltByFO9bZ8g7jkHELg6F9NqMm0IXi9m0r4asC"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 642], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HL3hyB2zCap8Ro1Z2Hy5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 642, "created_at" = '2013-07-17 20:38:26.925125', "updated_at" = '2013-07-17 20:38:26.925125', "authentication_token" = 'HL3hyB2zCap8Ro1Z2Hy5' WHERE "public"."cadenero_accounts"."id" = 515  (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", 515], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:26 UTC +00:00], ["user_id", 642]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uMFuBQh8GdMAjtn1Vrry' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 515, "user_id" = 642, "created_at" = '2013-07-17 20:38:26.930594', "updated_at" = '2013-07-17 20:38:26.930594', "auth_token" = 'uMFuBQh8GdMAjtn1Vrry' WHERE "public"."cadenero_members"."id" = 643  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.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.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")  (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)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:38: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 ('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" = 515 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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$f2CP683JFxn1MhGotaV/BOcgR5gWmGQfbJNls3VrbjpPS70s4FkaC"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 643], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gx14nxS7y1UAxSsKW7sj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 643, "created_at" = '2013-07-17 20:38:27.104156', "updated_at" = '2013-07-17 20:38:27.104156', "authentication_token" = 'gx14nxS7y1UAxSsKW7sj' WHERE "public"."cadenero_accounts"."id" = 516  (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", 516], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["user_id", 643]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kjG5LWW7kiRykUQ8ScSi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 516, "user_id" = 643, "created_at" = '2013-07-17 20:38:27.109647', "updated_at" = '2013-07-17 20:38:27.109647', "auth_token" = 'kjG5LWW7kiRykUQ8ScSi' WHERE "public"."cadenero_members"."id" = 644  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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.6ms) 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")  (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.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-17 15:38:27 -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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Y6XK1ohSkAdNXNQE9.DU6Oq6Xn.zz42VHXxNYRTGc0eOf4ZpwxTgS"], ["updated_at", Wed, 17 Jul 2013 20:38: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" = '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", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 644], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WD6NGszUpfHLJzhjG6Rq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 644, "created_at" = '2013-07-17 20:38:27.282939', "updated_at" = '2013-07-17 20:38:27.282939', "authentication_token" = 'WD6NGszUpfHLJzhjG6Rq' WHERE "public"."cadenero_accounts"."id" = 517  (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", 517], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:38:27 UTC +00:00], ["user_id", 644]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q5PFizbQGrhpRUwZVyzw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 517, "user_id" = 644, "created_at" = '2013-07-17 20:38:27.288384', "updated_at" = '2013-07-17 20:38:27.288384', "auth_token" = 'q5PFizbQGrhpRUwZVyzw' WHERE "public"."cadenero_members"."id" = 645  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:38: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.5ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 644 Started GET "/v1?auth_token[]=q5PFizbQGrhpRUwZVyzw" for 127.0.0.1 at 2013-07-17 15:38:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["q5PFizbQGrhpRUwZVyzw"], "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 Connecting to database specified by database.yml Connecting to database specified by database.yml  (1.2ms) BEGIN  (0.2ms) COMMIT  (0.6ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 20:40:14 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$qwlDb7YiEvb2JT543DbGw.S2AJWLaMFGy10hMv/MbajtgNhfAO1qO"], ["updated_at", Wed, 17 Jul 2013 20:40:14 UTC +00:00]]  (4.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 20:40:14 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 645], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:40:14 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qCQSHsmLtpBursTNyYpZ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 645, "created_at" = '2013-07-17 20:40:14.658927', "updated_at" = '2013-07-17 20:40:14.658927', "authentication_token" = 'qCQSHsmLtpBursTNyYpZ' WHERE "public"."cadenero_accounts"."id" = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.8ms) SAVEPOINT active_record_1 SQL (12.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", 518], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:14 UTC +00:00], ["user_id", 645]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ryDRqrRwQ9XX8TKBKgAm' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 518, "user_id" = 645, "created_at" = '2013-07-17 20:40:14.813476', "updated_at" = '2013-07-17 20:40:14.813476', "auth_token" = 'ryDRqrRwQ9XX8TKBKgAm' WHERE "public"."cadenero_members"."id" = 646  (9.1ms) RELEASE SAVEPOINT active_record_1  (10.0ms) CREATE SCHEMA "test1"  (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.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.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))  (4.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")  (4.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)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (9.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 645 Started GET "/v1?auth_token[]=ryDRqrRwQ9XX8TKBKgAm" for 127.0.0.1 at 2013-07-17 15:40:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ryDRqrRwQ9XX8TKBKgAm"], "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (12.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$CLqZRppCWY8vgHVGgOuhrOBGw3C8X8F/npdmvysusvGcD4NhAmtq2"], ["updated_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 646], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e7Ewp5F3GYdLmQM6yryu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 646, "created_at" = '2013-07-17 20:40:15.187132', "updated_at" = '2013-07-17 20:40:15.187132', "authentication_token" = 'e7Ewp5F3GYdLmQM6yryu' WHERE "public"."cadenero_accounts"."id" = 519  (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", 519], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["user_id", 646]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BZxFxND7V1KwvioadH7z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 519, "user_id" = 646, "created_at" = '2013-07-17 20:40:15.192624', "updated_at" = '2013-07-17 20:40:15.192624', "auth_token" = 'BZxFxND7V1KwvioadH7z' WHERE "public"."cadenero_members"."id" = 647  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) 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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40:15 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@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 ('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" = 519 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 646 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 646 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 646 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 646 Completed 201 Created in 134ms (Views: 20.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 519 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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" = 646 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8gXrAWfZtouTQrbjQbrb8eAHMu5eEkrqKQ0ZtiXfSvAzHdiLzP77i"], ["updated_at", Wed, 17 Jul 2013 20:40: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" = '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", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 647], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2e9hWB1Ek73eDwNBoJc5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 647, "created_at" = '2013-07-17 20:40:15.564309', "updated_at" = '2013-07-17 20:40:15.564309', "authentication_token" = '2e9hWB1Ek73eDwNBoJc5' WHERE "public"."cadenero_accounts"."id" = 520  (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", 520], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["user_id", 647]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9RzLYRbDVtuZn3aSDzWq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 520, "user_id" = 647, "created_at" = '2013-07-17 20:40:15.570334', "updated_at" = '2013-07-17 20:40:15.570334', "auth_token" = '9RzLYRbDVtuZn3aSDzWq' WHERE "public"."cadenero_members"."id" = 648  (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)  (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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40:15 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 520 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" = 647 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 647 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 647 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 647 Completed 201 Created in 116ms (Views: 5.5ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 520 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-17 15:40:15 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"647", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 647 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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-17 15:40: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" = '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", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Mfya6x4N7dc2m0Vi5oePYO1gmpgBefylzaE3AOMZ6Coy9EU06sShS"], ["updated_at", Wed, 17 Jul 2013 20:40:15 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", 520], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:15 UTC +00:00], ["user_id", 648]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JqTA2N4svcVCNJ3WHgqq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 520, "user_id" = 648, "created_at" = '2013-07-17 20:40:15.881115', "updated_at" = '2013-07-17 20:40:15.881115', "auth_token" = 'JqTA2N4svcVCNJ3WHgqq' WHERE "public"."cadenero_members"."id" = 649  (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" = 648 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 648 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 648 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 648 Completed 201 Created in 120ms (Views: 6.2ms | 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 Started GET "/v1/users/648" for 127.0.0.1 at 2013-07-17 15:40:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"648"} 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" = 520 AND "public"."cadenero_users"."id" = 648 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 648 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 648 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 648 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 648 Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 648 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 648 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 648 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 648 Completed 201 Created in 7ms (Views: 4.9ms | 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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$UkhIhFCSlKL0io1yeRfyuOCW261WbvAnr5YC2WOKEbESICtuntJTW"], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 649], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xwH8NEqtEAsncyxpudoz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 649, "created_at" = '2013-07-17 20:40:16.070073', "updated_at" = '2013-07-17 20:40:16.070073', "authentication_token" = 'xwH8NEqtEAsncyxpudoz' WHERE "public"."cadenero_accounts"."id" = 521  (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", 521], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["user_id", 649]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BYqXp4x1QnRZ5x1yi375' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 521, "user_id" = 649, "created_at" = '2013-07-17 20:40:16.075515', "updated_at" = '2013-07-17 20:40:16.075515', "auth_token" = 'BYqXp4x1QnRZ5x1yi375' WHERE "public"."cadenero_members"."id" = 650  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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/users" for 127.0.0.1 at 2013-07-17 15:40:16 -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.0ms) 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", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$xBXR4M6faW9AfHk7wKJXLez2ElTBSYfm9XyHSbR3jtrYORa8bVKVy"], ["updated_at", Wed, 17 Jul 2013 20:40:16 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", 521], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["user_id", 650]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yKfF9nmaiZYFtKFy7nu8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 521, "user_id" = 650, "created_at" = '2013-07-17 20:40:16.241084', "updated_at" = '2013-07-17 20:40:16.241084', "auth_token" = 'yKfF9nmaiZYFtKFy7nu8' WHERE "public"."cadenero_members"."id" = 651  (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" = 650 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 650 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 650 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 650 Completed 201 Created in 116ms (Views: 5.8ms | ActiveRecord: 4.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/650" for 127.0.0.1 at 2013-07-17 15:40:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"650"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 521 AND "public"."cadenero_users"."id" = 650 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 650 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 650 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 650 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" = 650 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 650 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 650 Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 650 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 650 Completed 201 Created in 9ms (Views: 4.8ms | 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" for 127.0.0.1 at 2013-07-17 15:40:16 -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" = 650 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$qsd9bRqlneCtUnzwb2xIzuDFohov9F1qZEpDmC3dbTZ/3IFfFKCM6"], ["updated_at", Wed, 17 Jul 2013 20:40: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" = '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", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 651], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3SfNhqdGRz7gat3HGQq6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 651, "created_at" = '2013-07-17 20:40:16.418406', "updated_at" = '2013-07-17 20:40:16.418406', "authentication_token" = '3SfNhqdGRz7gat3HGQq6' WHERE "public"."cadenero_accounts"."id" = 522  (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", 522], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["user_id", 651]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sWAcz2N3hZxhqE8FKgjc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 522, "user_id" = 651, "created_at" = '2013-07-17 20:40:16.423901', "updated_at" = '2013-07-17 20:40:16.423901', "auth_token" = 'sWAcz2N3hZxhqE8FKgjc' WHERE "public"."cadenero_members"."id" = 652  (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")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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)  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40: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.9ms) 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" = 522 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" = 651 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 651 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 651 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 651 Completed 201 Created in 118ms (Views: 5.7ms | 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' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 522 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40:16 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"651", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 651 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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.2ms | ActiveRecord: 0.0ms)  (7.9ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$dmA9iUZ6KdgajozHhPenRe3abwg.Jutfe6QUJpry8Hq9cTkyhn8Bi"], ["updated_at", Wed, 17 Jul 2013 20:40: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" = '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", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 652], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nbSQwxgEHs8Z9uugVdwu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 652, "created_at" = '2013-07-17 20:40:16.790253', "updated_at" = '2013-07-17 20:40:16.790253', "authentication_token" = 'nbSQwxgEHs8Z9uugVdwu' WHERE "public"."cadenero_accounts"."id" = 523  (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", 523], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:16 UTC +00:00], ["user_id", 652]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f8aUtnm8eeKdPyE5tqU4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 523, "user_id" = 652, "created_at" = '2013-07-17 20:40:16.795889', "updated_at" = '2013-07-17 20:40:16.795889', "auth_token" = 'f8aUtnm8eeKdPyE5tqU4' WHERE "public"."cadenero_members"."id" = 653  (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.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, "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.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40: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-17 15:40: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 ('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" = 523 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$c60lIVUStVuThemvtnFL8emiXiYMJA3q93nw7dA7TjT.P7flD1mCy"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 653], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oivGeRMMugkqu6kFzswD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 653, "created_at" = '2013-07-17 20:40:17.020281', "updated_at" = '2013-07-17 20:40:17.020281', "authentication_token" = 'oivGeRMMugkqu6kFzswD' WHERE "public"."cadenero_accounts"."id" = 524  (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", 524], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["user_id", 653]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1yyVseDmG3REPq1VB9Du' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 524, "user_id" = 653, "created_at" = '2013-07-17 20:40:17.025821', "updated_at" = '2013-07-17 20:40:17.025821', "auth_token" = '1yyVseDmG3REPq1VB9Du' WHERE "public"."cadenero_members"."id" = 654  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40: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  (4.9ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$mgvhTeVMdwbcIIVwR4R2ue0VTk5ak.hqQ0U3xK7a3Isvgh6DxTQ76"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 654], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qy8QzqspEmCxfHwxTSzv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 654, "created_at" = '2013-07-17 20:40:17.192688', "updated_at" = '2013-07-17 20:40:17.192688', "authentication_token" = 'qy8QzqspEmCxfHwxTSzv' WHERE "public"."cadenero_accounts"."id" = 525  (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", 525], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["user_id", 654]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y2MUzyKkLvbrXCxsyNqK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 525, "user_id" = 654, "created_at" = '2013-07-17 20:40:17.198155', "updated_at" = '2013-07-17 20:40:17.198155', "auth_token" = 'y2MUzyKkLvbrXCxsyNqK' WHERE "public"."cadenero_members"."id" = 655  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (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, "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.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"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40:17 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40:17 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 525 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$0/XrD75ixXMT0K/YKc5LdeL/w.mlDMRwmA3liXJdykCVTUfBrJpni"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 655], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'izaksnfjaZwaukmub2Wy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 655, "created_at" = '2013-07-17 20:40:17.376595', "updated_at" = '2013-07-17 20:40:17.376595', "authentication_token" = 'izaksnfjaZwaukmub2Wy' WHERE "public"."cadenero_accounts"."id" = 526  (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", 526], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["user_id", 655]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B62DBdEjEL2P3K1hx6QR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 526, "user_id" = 655, "created_at" = '2013-07-17 20:40:17.382023', "updated_at" = '2013-07-17 20:40:17.382023', "auth_token" = 'B62DBdEjEL2P3K1hx6QR' WHERE "public"."cadenero_members"."id" = 656  (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.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, "auth_token" character varying(255))  (1.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.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)  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$rU.kbsKwZ8iGwf1ayFQ5n.uXylwhhpt0twl5/2v08X0a.xdO1hy.m"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 656], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NLqN44NzXq72UnbMbL7p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 656, "created_at" = '2013-07-17 20:40:17.530647', "updated_at" = '2013-07-17 20:40:17.530647', "authentication_token" = 'NLqN44NzXq72UnbMbL7p' WHERE "public"."cadenero_accounts"."id" = 527  (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", 527], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:40:17 UTC +00:00], ["user_id", 656]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ygXSZVyFeiqFq3LH4fUY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 527, "user_id" = 656, "created_at" = '2013-07-17 20:40:17.535798', "updated_at" = '2013-07-17 20:40:17.535798', "auth_token" = 'ygXSZVyFeiqFq3LH4fUY' WHERE "public"."cadenero_members"."id" = 657  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:40:17 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:40:17 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 526 AND "public"."cadenero_users"."email" = 'user10@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  (5.5ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (7.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", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$TsQSWxz.WN1CA6FPqyOkRurZ/WGPtAtPj0QjP3DDSVy.6L2ugJKWW"], ["updated_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (10.1ms) 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 (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", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 657], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'F5fbgkuhvnxreipUYUrM' LIMIT 1  (2.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 657, "created_at" = '2013-07-17 20:57:12.248873', "updated_at" = '2013-07-17 20:57:12.248873', "authentication_token" = 'F5fbgkuhvnxreipUYUrM' WHERE "public"."cadenero_accounts"."id" = 528  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 528], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["user_id", 657]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2wetUXqsncGzyzF27Fbs' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 528, "user_id" = 657, "created_at" = '2013-07-17 20:57:12.404573', "updated_at" = '2013-07-17 20:57:12.404573', "auth_token" = '2wetUXqsncGzyzF27Fbs' WHERE "public"."cadenero_members"."id" = 658  (2.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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, "auth_token" character varying(255))  (5.7ms) 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")  (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)  (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"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:57:12 -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.2ms) 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" = 528 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Completed 500 Internal Server Error in 160ms  (10.2ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$38ZBmhn5TE6TzGlJfjzPC.toOK86vm012W9vZzHoV7BArNFSKr6ee"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 658], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'U2Sse2EJpbecjupB6FJD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 658, "created_at" = '2013-07-17 20:57:12.890226', "updated_at" = '2013-07-17 20:57:12.890226', "authentication_token" = 'U2Sse2EJpbecjupB6FJD' WHERE "public"."cadenero_accounts"."id" = 529  (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", 529], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:12 UTC +00:00], ["user_id", 658]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xf71PYAJqvLTyapyzxE8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 529, "user_id" = 658, "created_at" = '2013-07-17 20:57:12.895805', "updated_at" = '2013-07-17 20:57:12.895805', "auth_token" = 'xf71PYAJqvLTyapyzxE8' WHERE "public"."cadenero_members"."id" = 659  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (0.8ms) 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 ('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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 15:57:12 -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 (5.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" = 529 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Completed 500 Internal Server Error in 107ms  (8.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$7FTYu7erxBDpAe2fttTMEOQrIZyqJK94x2rHRKADiXft8u0.olfme"], ["updated_at", Wed, 17 Jul 2013 20:57:13 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.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", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 659], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2eUKWstfEfqUSv9Cifpy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 659, "created_at" = '2013-07-17 20:57:13.254844', "updated_at" = '2013-07-17 20:57:13.254844', "authentication_token" = '2eUKWstfEfqUSv9Cifpy' WHERE "public"."cadenero_accounts"."id" = 530  (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", 530], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["user_id", 659]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D44uzkJycYycayyrqjys' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 530, "user_id" = 659, "created_at" = '2013-07-17 20:57:13.260233', "updated_at" = '2013-07-17 20:57:13.260233', "auth_token" = 'D44uzkJycYycayyrqjys' WHERE "public"."cadenero_members"."id" = 660  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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.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")  (1.1ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 15:57: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/users" for 127.0.0.1 at 2013-07-17 15:57: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (6.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", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$efrLVOUVdAZ.Re55frbI6.XRQfFm2kxGAO2cALsrmZsskgJaNoNtS"], ["updated_at", Wed, 17 Jul 2013 20:57: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", 530], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["user_id", 660]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yHp7rGNtuMZb8xjj5Q2U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 530, "user_id" = 660, "created_at" = '2013-07-17 20:57:13.447647', "updated_at" = '2013-07-17 20:57:13.447647', "auth_token" = 'yHp7rGNtuMZb8xjj5Q2U' WHERE "public"."cadenero_members"."id" = 661  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 114ms  (8.4ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.4ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$K5mJGAkd2bsjp8DKmOCzheWgEbJFagBNm46J7VGHGf5ZA3dAeUmXG"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = '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", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 661], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qJ7yjasPwzg6uMteuWM3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 661, "created_at" = '2013-07-17 20:57:13.591920', "updated_at" = '2013-07-17 20:57:13.591920', "authentication_token" = 'qJ7yjasPwzg6uMteuWM3' WHERE "public"."cadenero_accounts"."id" = 531  (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", 531], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["user_id", 661]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Mv87KvBY4yUp3J2Xa5oi' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 531, "user_id" = 661, "created_at" = '2013-07-17 20:57:13.597797', "updated_at" = '2013-07-17 20:57:13.597797', "auth_token" = 'Mv87KvBY4yUp3J2Xa5oi' WHERE "public"."cadenero_members"."id" = 662  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.7ms) 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))   (2.7ms) 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")  (2.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)   (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:57: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-17 15:57: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.3ms) 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" = 531 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Completed 500 Internal Server Error in 100ms  (9.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$xWs49Y1L0ri1OKsbu2o1S.Ejq4gbB6.8SR5ffLoH3ck6COgSBwGJK"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = '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", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 662], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pycps7yPtYx8tRpst5Pq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 662, "created_at" = '2013-07-17 20:57:13.887474', "updated_at" = '2013-07-17 20:57:13.887474', "authentication_token" = 'pycps7yPtYx8tRpst5Pq' WHERE "public"."cadenero_accounts"."id" = 532  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 532], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:13 UTC +00:00], ["user_id", 662]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MuHnopNFWyA23Kyp9s6g' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 532, "user_id" = 662, "created_at" = '2013-07-17 20:57:13.892910', "updated_at" = '2013-07-17 20:57:13.892910', "auth_token" = 'MuHnopNFWyA23Kyp9s6g' WHERE "public"."cadenero_members"."id" = 663  (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.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, "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.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"  (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')  (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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$YZsP94S2taIi2Z7bhPgJhu9vaLajblENXaj/ucaCyVfgcDGqnpRzq"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = '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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 663], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3qqpWt6Jpcy9zDCxPv9j' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 663, "created_at" = '2013-07-17 20:57:14.042767', "updated_at" = '2013-07-17 20:57:14.042767', "authentication_token" = '3qqpWt6Jpcy9zDCxPv9j' WHERE "public"."cadenero_accounts"."id" = 533  (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", 533], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["user_id", 663]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ja9PyzR64HKnEZrrkepE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 533, "user_id" = 663, "created_at" = '2013-07-17 20:57:14.047992', "updated_at" = '2013-07-17 20:57:14.047992', "auth_token" = 'Ja9PyzR64HKnEZrrkepE' WHERE "public"."cadenero_members"."id" = 664  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:57: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-17 15:57:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 532 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$MvO0v.VcR.r67aduhbFkEeITI.BT68bpF62rysAb0U0Ki6E3oJXEO"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = '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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 664], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'A6nsxfybAghYt1VGN7vd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 664, "created_at" = '2013-07-17 20:57:14.203647', "updated_at" = '2013-07-17 20:57:14.203647', "authentication_token" = 'A6nsxfybAghYt1VGN7vd' WHERE "public"."cadenero_accounts"."id" = 534  (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", 534], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["user_id", 664]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NqkmUpq83jUXi42y8FC9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 534, "user_id" = 664, "created_at" = '2013-07-17 20:57:14.209218', "updated_at" = '2013-07-17 20:57:14.209218', "auth_token" = 'NqkmUpq83jUXi42y8FC9' WHERE "public"."cadenero_members"."id" = 665  (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)   (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.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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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"  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (6.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-17 15:57: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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$LFIUYl.VGTbTd0pUhQNxDuaN9a5EKqOCQtH7wVSCVCv0Udixv/Yq6"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = '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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 665], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XbfVyCHbdys8j8G8c4B2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 665, "created_at" = '2013-07-17 20:57:14.395853', "updated_at" = '2013-07-17 20:57:14.395853', "authentication_token" = 'XbfVyCHbdys8j8G8c4B2' WHERE "public"."cadenero_accounts"."id" = 535  (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", 535], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["user_id", 665]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YGUexxhzCPp7yEYVuDFy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 535, "user_id" = 665, "created_at" = '2013-07-17 20:57:14.402136', "updated_at" = '2013-07-17 20:57:14.402136', "auth_token" = 'YGUexxhzCPp7yEYVuDFy' WHERE "public"."cadenero_members"."id" = 666  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:57: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-17 15:57: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 535 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  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$vyZ4kvR8PKDlkzRs9/dBXufou1b2.HQ6RXMpfbCFrwj7I.KNqJ.RK"], ["updated_at", Wed, 17 Jul 2013 20:57: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 (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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 666], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VMMSwXfV6hdNqxNBqcsx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 666, "created_at" = '2013-07-17 20:57:14.586386', "updated_at" = '2013-07-17 20:57:14.586386', "authentication_token" = 'VMMSwXfV6hdNqxNBqcsx' WHERE "public"."cadenero_accounts"."id" = 536  (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", 536], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["user_id", 666]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LwVaeV4xJsgWJMyDyfQ3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 536, "user_id" = 666, "created_at" = '2013-07-17 20:57:14.591982', "updated_at" = '2013-07-17 20:57:14.591982', "auth_token" = 'LwVaeV4xJsgWJMyDyfQ3' WHERE "public"."cadenero_members"."id" = 667  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:57: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-17 15:57: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.5ms) 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" = 536 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.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$7Y9bcjQ0duAvQ2h5GgqghOISizBVpw.wq5QMtkw56nGi1i0r6Rw92"], ["updated_at", Wed, 17 Jul 2013 20:57: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" = '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", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 667], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'L8odtCKzjPSqdsBQeqnG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 667, "created_at" = '2013-07-17 20:57:14.771996', "updated_at" = '2013-07-17 20:57:14.771996', "authentication_token" = 'L8odtCKzjPSqdsBQeqnG' WHERE "public"."cadenero_accounts"."id" = 537  (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", 537], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 20:57:14 UTC +00:00], ["user_id", 667]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pPZVYe1mYWonH7Ywsf9q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 537, "user_id" = 667, "created_at" = '2013-07-17 20:57:14.777618', "updated_at" = '2013-07-17 20:57:14.777618', "auth_token" = 'pPZVYe1mYWonH7Ywsf9q' WHERE "public"."cadenero_members"."id" = 668  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 15:57: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 667 Started GET "/v1?auth_token[]=pPZVYe1mYWonH7Ywsf9q" for 127.0.0.1 at 2013-07-17 15:57:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["pPZVYe1mYWonH7Ywsf9q"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (4.8ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (6.5ms) BEGIN  (1.4ms) 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", Wed, 17 Jul 2013 21:04:38 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$4SI04XOSgNFMxj5cmO8JAujYUTZX4oOfq1rU8sgu12OytMfP59OAK"], ["updated_at", Wed, 17 Jul 2013 21:04:38 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 (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", Wed, 17 Jul 2013 21:04:38 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 668], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:04:38 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pdEXSxUqGGbSsUMnhRhL' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 668, "created_at" = '2013-07-17 21:04:38.655346', "updated_at" = '2013-07-17 21:04:38.655346', "authentication_token" = 'pdEXSxUqGGbSsUMnhRhL' WHERE "public"."cadenero_accounts"."id" = 538  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.0ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 538], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:38 UTC +00:00], ["user_id", 668]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xqh6qWyR4ZPE2e98cYL3' LIMIT 1  (1.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 538, "user_id" = 668, "created_at" = '2013-07-17 21:04:38.795317', "updated_at" = '2013-07-17 21:04:38.795317', "auth_token" = 'xqh6qWyR4ZPE2e98cYL3' WHERE "public"."cadenero_members"."id" = 669  (2.2ms) RELEASE SAVEPOINT active_record_1  (1.9ms) CREATE SCHEMA "test1"  (15.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")  (3.7ms) 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, "auth_token" character varying(255))  (0.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")  (5.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:04:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 668 Started GET "/v1?auth_token[]=xqh6qWyR4ZPE2e98cYL3" for 127.0.0.1 at 2013-07-17 16:04:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["xqh6qWyR4ZPE2e98cYL3"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.0ms) 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", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$d2zGZ2z2gaN2WZUScnf9fuP3/HYcdqH9xwaibMgyvkVxAjzyD5cSe"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.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 (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", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 669], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fkVSHxdtwxZMY3ym4jzS' LIMIT 1  (7.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 669, "created_at" = '2013-07-17 21:04:39.166872', "updated_at" = '2013-07-17 21:04:39.166872', "authentication_token" = 'fkVSHxdtwxZMY3ym4jzS' WHERE "public"."cadenero_accounts"."id" = 539  (3.5ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 539], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["user_id", 669]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zYz7pXUyxF12yb5pPrY2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 539, "user_id" = 669, "created_at" = '2013-07-17 21:04:39.185618', "updated_at" = '2013-07-17 21:04:39.185618', "auth_token" = 'zYz7pXUyxF12yb5pPrY2' WHERE "public"."cadenero_members"."id" = 670  (0.8ms) 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)  (0.8ms) 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.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.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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)  (6.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:04: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/users" for 127.0.0.1 at 2013-07-17 16:04:39 -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", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$JZ4mu9lhs3XteeJv2obmke412G.ItJnJq2qO/I43sYNyB2fECdF36"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]] 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", 539], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["user_id", 670]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y7dEC18P1nE3sUi6AZJM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 539, "user_id" = 670, "created_at" = '2013-07-17 21:04:39.419859', "updated_at" = '2013-07-17 21:04:39.419859', "auth_token" = 'y7dEC18P1nE3sUi6AZJM' WHERE "public"."cadenero_members"."id" = 671  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed in 118ms Processing by Cadenero::V1::Account::DashboardController#index as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$ZvR/DY1uie.iNSxuI9/6qOurMDhEFvQNQLubySiGyJ3VBqmR2fEG2"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 671], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XtGZVhU6uxMbTMNyqCFg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 671, "created_at" = '2013-07-17 21:04:39.612410', "updated_at" = '2013-07-17 21:04:39.612410', "authentication_token" = 'XtGZVhU6uxMbTMNyqCFg' WHERE "public"."cadenero_accounts"."id" = 540  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 540], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["user_id", 671]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JaPHpuoG7oboiWmswXmR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 540, "user_id" = 671, "created_at" = '2013-07-17 21:04:39.618221', "updated_at" = '2013-07-17 21:04:39.618221', "auth_token" = 'JaPHpuoG7oboiWmswXmR' WHERE "public"."cadenero_members"."id" = 672  (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)   (0.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")  (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")  (6.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.0ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:04: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-17 16:04:39 -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" = 540 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Completed in 110ms Processing by Cadenero::V1::Account::DashboardController#index as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$s2ZnBzIEGiROGJG9K2MfGO8RQr9tx3srHdoa7.tHCX6yjWkndc52K"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 672], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QeqseCWBLNy4nHgfHqEx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 672, "created_at" = '2013-07-17 21:04:39.935455', "updated_at" = '2013-07-17 21:04:39.935455', "authentication_token" = 'QeqseCWBLNy4nHgfHqEx' WHERE "public"."cadenero_accounts"."id" = 541  (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", 541], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:39 UTC +00:00], ["user_id", 672]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '633JppCPRStsi1Cezfjs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 541, "user_id" = 672, "created_at" = '2013-07-17 21:04:39.940779', "updated_at" = '2013-07-17 21:04:39.940779', "auth_token" = '633JppCPRStsi1Cezfjs' WHERE "public"."cadenero_members"."id" = 673  (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)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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.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.6ms) SELECT version FROM "schema_migrations"  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:04: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 (1.4ms) 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" = 541 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Completed in 102ms Processing by Cadenero::V1::Account::DashboardController#index as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$DmIRomTBaZetZOi4qKN6QedZdrblhO2fG4Lkpp8VAC7r819Eh854m"], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 673], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jNvmwmWEjezjy7pxCxQy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 673, "created_at" = '2013-07-17 21:04:40.239654', "updated_at" = '2013-07-17 21:04:40.239654', "authentication_token" = 'jNvmwmWEjezjy7pxCxQy' WHERE "public"."cadenero_accounts"."id" = 542  (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", 542], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["user_id", 673]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7TBZakToLoeh3txp9fRk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 542, "user_id" = 673, "created_at" = '2013-07-17 21:04:40.245088', "updated_at" = '2013-07-17 21:04:40.245088', "auth_token" = '7TBZakToLoeh3txp9fRk' WHERE "public"."cadenero_members"."id" = 674  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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")  (5.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.2ms) 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")  (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")  (1.6ms) 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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:04:40 -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.3ms) 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" = 542 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Completed in 104ms Processing by Cadenero::V1::Account::DashboardController#index as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (1.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.Y6QEYz292B9BInFu4aIpOLJvX.fQv310nAEe2Rswv01QObYIUU6i"], ["updated_at", Wed, 17 Jul 2013 21:04: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" = '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", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 674], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CnKjJoKtDrRrm3dWeE9B' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 674, "created_at" = '2013-07-17 21:04:40.606904', "updated_at" = '2013-07-17 21:04:40.606904', "authentication_token" = 'CnKjJoKtDrRrm3dWeE9B' WHERE "public"."cadenero_accounts"."id" = 543  (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", 543], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["user_id", 674]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6zQzgJzZxnReMx6eSFce' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 543, "user_id" = 674, "created_at" = '2013-07-17 21:04:40.612683', "updated_at" = '2013-07-17 21:04:40.612683', "auth_token" = '6zQzgJzZxnReMx6eSFce' WHERE "public"."cadenero_members"."id" = 675  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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)   (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")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:04: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-17 16:04: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 543 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$.KUntY1i1VrIVqtr/LyoZu2djAFuCsLkgH4xorwGZvyvmgK.xMuL6"], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00]]  (0.2ms) 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", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 675], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Yy9gPzp171bzRmh1W7xx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 675, "created_at" = '2013-07-17 21:04:40.793240', "updated_at" = '2013-07-17 21:04:40.793240', "authentication_token" = 'Yy9gPzp171bzRmh1W7xx' WHERE "public"."cadenero_accounts"."id" = 544  (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", 544], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["user_id", 675]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TtYfjBpsz8hq7jUstv6B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 544, "user_id" = 675, "created_at" = '2013-07-17 21:04:40.798825', "updated_at" = '2013-07-17 21:04:40.798825', "auth_token" = 'TtYfjBpsz8hq7jUstv6B' WHERE "public"."cadenero_members"."id" = 676  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:04: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-17 16:04: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 544 AND "public"."cadenero_users"."email" = 'user@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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$wUFCIR/O5Cj85Nf3Bl.sJe1U4REq38yjvHSxxFXPwW7Ajhm.v313a"], ["updated_at", Wed, 17 Jul 2013 21:04: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" = '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", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 676], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WaGXTUSTWP7hnAVAtPsW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 676, "created_at" = '2013-07-17 21:04:40.977363', "updated_at" = '2013-07-17 21:04:40.977363', "authentication_token" = 'WaGXTUSTWP7hnAVAtPsW' WHERE "public"."cadenero_accounts"."id" = 545  (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", 545], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:40 UTC +00:00], ["user_id", 676]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8NjBVP3R2YpqyKyk12Sp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 545, "user_id" = 676, "created_at" = '2013-07-17 21:04:40.982849', "updated_at" = '2013-07-17 21:04:40.982849', "auth_token" = '8NjBVP3R2YpqyKyk12Sp' WHERE "public"."cadenero_members"."id" = 677  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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")  (2.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.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")  (2.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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:04:41 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$VpALF3sfGAkmKym8.2UeMeqFaymxqeeHSFsMiuepZ4JHAWWNelzP2"], ["updated_at", Wed, 17 Jul 2013 21:04:41 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", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 677], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JcRmdXxNoHoF3Y6skNBo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 677, "created_at" = '2013-07-17 21:04:41.186243', "updated_at" = '2013-07-17 21:04:41.186243', "authentication_token" = 'JcRmdXxNoHoF3Y6skNBo' WHERE "public"."cadenero_accounts"."id" = 546  (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", 546], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["user_id", 677]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oc6HiRaHpqVxaZsqAksk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 546, "user_id" = 677, "created_at" = '2013-07-17 21:04:41.192242', "updated_at" = '2013-07-17 21:04:41.192242', "auth_token" = 'oc6HiRaHpqVxaZsqAksk' WHERE "public"."cadenero_members"."id" = 678  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.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.1ms) 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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$IZiPfdg/r4sdU2oYZ.uL6eZvG5Wi5P1dk.D2J97h6Qklh.xM69A3y"], ["updated_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 678], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'exp3zdCaXN88eL6CLZ55' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 678, "created_at" = '2013-07-17 21:04:41.357318', "updated_at" = '2013-07-17 21:04:41.357318', "authentication_token" = 'exp3zdCaXN88eL6CLZ55' WHERE "public"."cadenero_accounts"."id" = 547  (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", 547], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:04:41 UTC +00:00], ["user_id", 678]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q5tqdCMHt4EqW6CNLnFR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 547, "user_id" = 678, "created_at" = '2013-07-17 21:04:41.362620', "updated_at" = '2013-07-17 21:04:41.362620', "auth_token" = 'q5tqdCMHt4EqW6CNLnFR' WHERE "public"."cadenero_members"."id" = 679  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:04: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-17 16:04:41 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 546 AND "public"."cadenero_users"."email" = 'user10@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  (5.3ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (5.5ms) SAVEPOINT active_record_1 SQL (20.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$QPR4rR.BWxC/X9Ma7nU0d.S7vPYbohnce3co6kbNXtCQ/Qant3UKK"], ["updated_at", Wed, 17 Jul 2013 21:06:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) 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.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", Wed, 17 Jul 2013 21:06:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 679], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:06:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xephuiUtajTgHnmxzwbe' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 679, "created_at" = '2013-07-17 21:06:10.416638', "updated_at" = '2013-07-17 21:06:10.416638', "authentication_token" = 'xephuiUtajTgHnmxzwbe' WHERE "public"."cadenero_accounts"."id" = 548  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (6.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", 548], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:10 UTC +00:00], ["user_id", 679]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1fNZCNwsf8hbFxLk4H7J' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 548, "user_id" = 679, "created_at" = '2013-07-17 21:06:10.569369', "updated_at" = '2013-07-17 21:06:10.569369', "auth_token" = '1fNZCNwsf8hbFxLk4H7J' WHERE "public"."cadenero_members"."id" = 680  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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)   (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.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.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")  (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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (8.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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-17 16:06: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 (10.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" = 548 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (4.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 679 LIMIT 1 Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 679 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 679 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" = 679 Completed 201 Created in 370ms (Views: 108.9ms | ActiveRecord: 18.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 548 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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" = 679 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.0ms) 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", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$x/SjvE7q5Kw.dJZLlSDZzewwa1sab9KEs9a0YZMlRgikg8TLe7ydK"], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (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" = 'test2' 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", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 680], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'T7BBbxYMjD3xrTsx4mCs' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 680, "created_at" = '2013-07-17 21:06:11.376135', "updated_at" = '2013-07-17 21:06:11.376135', "authentication_token" = 'T7BBbxYMjD3xrTsx4mCs' WHERE "public"."cadenero_accounts"."id" = 549  (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", 549], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["user_id", 680]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'k8EnyNEKdJYNxugydUdB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 549, "user_id" = 680, "created_at" = '2013-07-17 21:06:11.389522', "updated_at" = '2013-07-17 21:06:11.389522', "auth_token" = 'k8EnyNEKdJYNxugydUdB' WHERE "public"."cadenero_members"."id" = 681  (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)  (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")  (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.6ms) 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.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)   (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"  (0.4ms) 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/sessions" for 127.0.0.1 at 2013-07-17 16:06: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 549 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" = 680 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 680 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 680 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 680 Completed 201 Created in 144ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 549 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"680", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 680 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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)  (5.2ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) COMMIT  (0.8ms) BEGIN  (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", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$sLfKI9JmteCaLzc1kNOY.OiG9aOEpQ7PyYx5kv6pju7TMrpvls0kW"], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 681], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6GTe32M387bjdc66JPRs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 681, "created_at" = '2013-07-17 21:06:11.757538', "updated_at" = '2013-07-17 21:06:11.757538', "authentication_token" = '6GTe32M387bjdc66JPRs' WHERE "public"."cadenero_accounts"."id" = 550  (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", 550], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["user_id", 681]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'm8NyJnNUR7VMzuVPHmqT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 550, "user_id" = 681, "created_at" = '2013-07-17 21:06:11.763072', "updated_at" = '2013-07-17 21:06:11.763072', "auth_token" = 'm8NyJnNUR7VMzuVPHmqT' WHERE "public"."cadenero_members"."id" = 682  (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)   (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")  (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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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-17 16:06: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (5.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", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$jdAHkPqfkvTyXzTCg0voUuipAwofbjBnbwYX7dhJTssWWjMCNWCVO"], ["updated_at", Wed, 17 Jul 2013 21:06: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", 550], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:11 UTC +00:00], ["user_id", 682]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1PXXzMUhkRy8uFq6AETv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 550, "user_id" = 682, "created_at" = '2013-07-17 21:06:11.935326', "updated_at" = '2013-07-17 21:06:11.935326', "auth_token" = '1PXXzMUhkRy8uFq6AETv' WHERE "public"."cadenero_members"."id" = 683  (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" = 682 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 682 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 682 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 682 Completed 201 Created in 120ms (Views: 5.7ms | ActiveRecord: 8.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/682" for 127.0.0.1 at 2013-07-17 16:06:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"682"} 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" = 550 AND "public"."cadenero_users"."id" = 682 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 682 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 682 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 682 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" = 682 Completed 200 OK in 13ms (Views: 6.2ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06: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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 682 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 682 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 682 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" = 682 Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06:11 -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" = 682 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (8.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$qIFDSkOj1yketuwwntEu3uNnM0sav2Rzybn9U4Yi6o8zImdHpcaDG"], ["updated_at", Wed, 17 Jul 2013 21:06: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" = '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", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 683], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DX9UuAkvjdxyXvSRrWsz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 683, "created_at" = '2013-07-17 21:06:12.102769', "updated_at" = '2013-07-17 21:06:12.102769', "authentication_token" = 'DX9UuAkvjdxyXvSRrWsz' WHERE "public"."cadenero_accounts"."id" = 551  (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", 551], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["user_id", 683]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3uwjyFNnhMpyt5BC19QN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 551, "user_id" = 683, "created_at" = '2013-07-17 21:06:12.108109', "updated_at" = '2013-07-17 21:06:12.108109', "auth_token" = '3uwjyFNnhMpyt5BC19QN' WHERE "public"."cadenero_members"."id" = 684  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06: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 (1.0ms) 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" = 551 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" = 683 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 683 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 683 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 683 Completed 201 Created in 109ms (Views: 6.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 551 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06:12 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"683", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 683 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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/users" for 127.0.0.1 at 2013-07-17 16:06: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.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", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$mqlmr.5NzYb5RkaxZOpCXej5oCHZw29Dr5Q6kDEKZ32AZ5tHb4MRK"], ["updated_at", Wed, 17 Jul 2013 21:06: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", 551], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["user_id", 684]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VJqL1Vas6v4nNzKcXDFd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 551, "user_id" = 684, "created_at" = '2013-07-17 21:06:12.406207', "updated_at" = '2013-07-17 21:06:12.406207', "auth_token" = 'VJqL1Vas6v4nNzKcXDFd' WHERE "public"."cadenero_members"."id" = 685  (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" = 684 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 684 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 684 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 684 Completed 201 Created in 113ms (Views: 6.1ms | 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/684" for 127.0.0.1 at 2013-07-17 16:06:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"684"} 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" = 551 AND "public"."cadenero_users"."id" = 684 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 684 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 684 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 684 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" = 684 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 684 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 684 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 684 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" = 684 Completed 201 Created in 7ms (Views: 4.9ms | 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  (9.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$DywHYaZsHx1.pF4n1a7rUelUM2PcdKbrxc2ugE.KHd1t9MyV4fn.G"], ["updated_at", Wed, 17 Jul 2013 21:06: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" = 'test5' 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", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 685], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wb1H8ez6s4pn5AKzjqoE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 685, "created_at" = '2013-07-17 21:06:12.587440', "updated_at" = '2013-07-17 21:06:12.587440', "authentication_token" = 'Wb1H8ez6s4pn5AKzjqoE' WHERE "public"."cadenero_accounts"."id" = 552  (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", 552], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["user_id", 685]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BHnbvP6cuuzN2pMSEpaa' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 552, "user_id" = 685, "created_at" = '2013-07-17 21:06:12.593342', "updated_at" = '2013-07-17 21:06:12.593342', "auth_token" = 'BHnbvP6cuuzN2pMSEpaa' WHERE "public"."cadenero_members"."id" = 686  (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)  (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.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.7ms) 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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06: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 ('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" = 552 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$OJ1yASmajpWGRIikxrDLPuVV78qyER7NheS2rqR2TTk1xOHPbptpG"], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 686], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Vq1GAbJg52Dq5jKBwVJo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 686, "created_at" = '2013-07-17 21:06:12.883611', "updated_at" = '2013-07-17 21:06:12.883611', "authentication_token" = 'Vq1GAbJg52Dq5jKBwVJo' WHERE "public"."cadenero_accounts"."id" = 553  (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", 553], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:12 UTC +00:00], ["user_id", 686]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fkfsys6sUVvFRZMfgN3C' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 553, "user_id" = 686, "created_at" = '2013-07-17 21:06:12.889613', "updated_at" = '2013-07-17 21:06:12.889613', "auth_token" = 'fkfsys6sUVvFRZMfgN3C' WHERE "public"."cadenero_members"."id" = 687  (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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$MEMSu/1HNt8nhu4znBMZ/OKUMn27HFvDW8xGU.6Oxay3OHz8FzBLy"], ["updated_at", Wed, 17 Jul 2013 21:06: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" = '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", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 687], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wZg3PyBzZhSsx7YCPuWB' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 687, "created_at" = '2013-07-17 21:06:13.052634', "updated_at" = '2013-07-17 21:06:13.052634', "authentication_token" = 'wZg3PyBzZhSsx7YCPuWB' WHERE "public"."cadenero_accounts"."id" = 554  (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", 554], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["user_id", 687]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p8QyYG6QKjL1EHUSYGWe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 554, "user_id" = 687, "created_at" = '2013-07-17 21:06:13.060216', "updated_at" = '2013-07-17 21:06:13.060216', "auth_token" = 'p8QyYG6QKjL1EHUSYGWe' WHERE "public"."cadenero_members"."id" = 688  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06: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.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" = 553 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$xRaqUGiXOOp.IWIGc00ZYuAdA7s3cTDv53CpEnlVRyAX27WqMqzmK"], ["updated_at", Wed, 17 Jul 2013 21:06: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" = '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", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 688], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AVE1rFhisLNkYt7ymijY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 688, "created_at" = '2013-07-17 21:06:13.235475', "updated_at" = '2013-07-17 21:06:13.235475', "authentication_token" = 'AVE1rFhisLNkYt7ymijY' WHERE "public"."cadenero_accounts"."id" = 555  (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", 555], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["user_id", 688]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YQ1y22U4dVzupUpjxx6q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 555, "user_id" = 688, "created_at" = '2013-07-17 21:06:13.240890', "updated_at" = '2013-07-17 21:06:13.240890', "auth_token" = 'YQ1y22U4dVzupUpjxx6q' WHERE "public"."cadenero_members"."id" = 689  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.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.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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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-17 16:06: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 ('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" = 555 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$wBtmKvlOw/aFJBj6PdE.4e8CEdMn/ghlT9aJnYyMAAW/KWC0HZnPq"], ["updated_at", Wed, 17 Jul 2013 21:06: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" = '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", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 689], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sgbaBMyC6R498tDBj2UX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 689, "created_at" = '2013-07-17 21:06:13.452447', "updated_at" = '2013-07-17 21:06:13.452447', "authentication_token" = 'sgbaBMyC6R498tDBj2UX' WHERE "public"."cadenero_accounts"."id" = 556  (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", 556], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["user_id", 689]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tQtQkKdRnxj8vpsqMqsq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 556, "user_id" = 689, "created_at" = '2013-07-17 21:06:13.458091', "updated_at" = '2013-07-17 21:06:13.458091', "auth_token" = 'tQtQkKdRnxj8vpsqMqsq' WHERE "public"."cadenero_members"."id" = 690  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.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")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:06:13 -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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$EkkI0Cxn3UTsis9baIop4.6vQXgZLu3uDAZLNMJQGTOhdi/lKOw0S"], ["updated_at", Wed, 17 Jul 2013 21:06: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" = '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", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 690], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EyWmihnExNEqiBt7sFBc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 690, "created_at" = '2013-07-17 21:06:13.639945', "updated_at" = '2013-07-17 21:06:13.639945', "authentication_token" = 'EyWmihnExNEqiBt7sFBc' WHERE "public"."cadenero_accounts"."id" = 557  (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", 557], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:06:13 UTC +00:00], ["user_id", 690]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uwGq8HxsThYRUgRxArky' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 557, "user_id" = 690, "created_at" = '2013-07-17 21:06:13.645329', "updated_at" = '2013-07-17 21:06:13.645329', "auth_token" = 'uwGq8HxsThYRUgRxArky' WHERE "public"."cadenero_members"."id" = 691  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:06: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 690 Started GET "/v1?auth_token[]=uwGq8HxsThYRUgRxArky" for 127.0.0.1 at 2013-07-17 16:06:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["uwGq8HxsThYRUgRxArky"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (13.4ms) COMMIT  (5.4ms) BEGIN  (1.6ms) SAVEPOINT active_record_1 SQL (24.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:26 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$It550f30EHB1bzDLqwEXfeuDL4LxkMRx4jd.CN9lpoXcoEkBpWyOK"], ["updated_at", Wed, 17 Jul 2013 21:14:26 UTC +00:00]]  (0.1ms) 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" = 'test1' LIMIT 1 SQL (20.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", Wed, 17 Jul 2013 21:14:26 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 691], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:14:26 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JFs8fx7tQbbH4hsp5nZp' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 691, "created_at" = '2013-07-17 21:14:26.989813', "updated_at" = '2013-07-17 21:14:26.989813', "authentication_token" = 'JFs8fx7tQbbH4hsp5nZp' WHERE "public"."cadenero_accounts"."id" = 558  (10.1ms) RELEASE SAVEPOINT active_record_1  (10.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", 558], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["user_id", 691]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7JuV5ssCusZWByy5pbQx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 558, "user_id" = 691, "created_at" = '2013-07-17 21:14:27.217702', "updated_at" = '2013-07-17 21:14:27.217702', "auth_token" = '7JuV5ssCusZWByy5pbQx' WHERE "public"."cadenero_members"."id" = 692  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (3.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, "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")  (4.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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14: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 5ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:27 -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" = 558 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" = 691 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 691 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 691 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" = 691 Completed 201 Created in 144ms (Views: 30.1ms | 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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 558 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14:27 -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" = 691 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (9.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$3ILLfUwmFi7.sEknP74Gr.fviWn39KvpciKsAjGkkAptN6qUX6RV."], ["updated_at", Wed, 17 Jul 2013 21:14: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 692], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mvn88VqqGdQrhD2TQyGY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 692, "created_at" = '2013-07-17 21:14:27.686225', "updated_at" = '2013-07-17 21:14:27.686225', "authentication_token" = 'mvn88VqqGdQrhD2TQyGY' WHERE "public"."cadenero_accounts"."id" = 559  (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", 559], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["user_id", 692]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yLde3RxK4zKzu6x1SajN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 559, "user_id" = 692, "created_at" = '2013-07-17 21:14:27.691747', "updated_at" = '2013-07-17 21:14:27.691747', "auth_token" = 'yLde3RxK4zKzu6x1SajN' WHERE "public"."cadenero_members"."id" = 693  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14: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/users" for 127.0.0.1 at 2013-07-17 16:14:27 -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", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$6yFW1/paTKsJ7uMOWf7YNO7JYAw5Xx/UfV98rk7.BzkwjCoiKvp/K"], ["updated_at", Wed, 17 Jul 2013 21:14:27 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", 559], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:27 UTC +00:00], ["user_id", 693]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JxoBbWhJexzKykQ6KPh6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 559, "user_id" = 693, "created_at" = '2013-07-17 21:14:27.889863', "updated_at" = '2013-07-17 21:14:27.889863', "auth_token" = 'JxoBbWhJexzKykQ6KPh6' WHERE "public"."cadenero_members"."id" = 694  (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" = 693 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 693 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 693 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 693 Completed 201 Created in 114ms (Views: 5.8ms | 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/693" for 127.0.0.1 at 2013-07-17 16:14:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"693"} 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" = 559 AND "public"."cadenero_users"."id" = 693 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 693 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 693 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 693 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" = 693 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:27 -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" = 693 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 693 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 693 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" = 693 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14:27 -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" = 693 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.2ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$71BnvaOIx.E9eO0SG2w5Fu/pqkZG0pTXjXyORatxAsCO/fyA.Tsi6"], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 694], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QioqPavwh1sBjtvt7ZuE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 694, "created_at" = '2013-07-17 21:14:28.069912', "updated_at" = '2013-07-17 21:14:28.069912', "authentication_token" = 'QioqPavwh1sBjtvt7ZuE' WHERE "public"."cadenero_accounts"."id" = 560  (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", 560], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["user_id", 694]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mT3Vx4x32FjepgebeWCs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 560, "user_id" = 694, "created_at" = '2013-07-17 21:14:28.075549', "updated_at" = '2013-07-17 21:14:28.075549', "auth_token" = 'mT3Vx4x32FjepgebeWCs' WHERE "public"."cadenero_members"."id" = 695  (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.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")  (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, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 560 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" = 694 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 694 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 694 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 694 Completed 201 Created in 110ms (Views: 5.6ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 560 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"694", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 694 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$FMagZUHQsLIV3Ae/OMIvs.6aJ28cAQToSNblNFk86cLoVqWAh94tK"], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 695], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oJJue6sW8fejAqtuoKbu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 695, "created_at" = '2013-07-17 21:14:28.420501', "updated_at" = '2013-07-17 21:14:28.420501', "authentication_token" = 'oJJue6sW8fejAqtuoKbu' WHERE "public"."cadenero_accounts"."id" = 561  (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", 561], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["user_id", 695]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ozCsMTQL2tAsGnsZVSyM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 561, "user_id" = 695, "created_at" = '2013-07-17 21:14:28.426142', "updated_at" = '2013-07-17 21:14:28.426142', "auth_token" = 'ozCsMTQL2tAsGnsZVSyM' WHERE "public"."cadenero_members"."id" = 696  (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)  (3.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.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")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:28 -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" = 561 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" = 695 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 695 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 695 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 695 Completed 201 Created in 108ms (Views: 5.7ms | 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 (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 561 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"695", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 695 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:14:28 -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", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$gEr3PKtknd8Q47I5My0SY.RWDDK5honVSR9hrUIgMssAOXReMqgki"], ["updated_at", Wed, 17 Jul 2013 21:14:28 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", 561], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["user_id", 696]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sJdv5yMdkjs2CFFGX3Qj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 561, "user_id" = 696, "created_at" = '2013-07-17 21:14:28.732573', "updated_at" = '2013-07-17 21:14:28.732573', "auth_token" = 'sJdv5yMdkjs2CFFGX3Qj' WHERE "public"."cadenero_members"."id" = 697  (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" = 696 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 696 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 696 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 696 Completed 201 Created in 113ms (Views: 5.6ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/696" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"696"} 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" = 561 AND "public"."cadenero_users"."id" = 696 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 696 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 696 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 696 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 696 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:28 -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" = 696 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 696 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 696 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 696 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.4ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$vn1z3xsJfQJpj7iMJwyV5OyXOQqrCoMJVmUbc75jh/6zaFpSxcX5e"], ["updated_at", Wed, 17 Jul 2013 21:14: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" = '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", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 697], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NP3dAoKZsFeRuXbqW6Cr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 697, "created_at" = '2013-07-17 21:14:28.936410', "updated_at" = '2013-07-17 21:14:28.936410', "authentication_token" = 'NP3dAoKZsFeRuXbqW6Cr' WHERE "public"."cadenero_accounts"."id" = 562  (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", 562], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:28 UTC +00:00], ["user_id", 697]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JiGWnMaC2RGXPYu9Qw4V' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 562, "user_id" = 697, "created_at" = '2013-07-17 21:14:28.941855', "updated_at" = '2013-07-17 21:14:28.941855', "auth_token" = 'JiGWnMaC2RGXPYu9Qw4V' WHERE "public"."cadenero_members"."id" = 698  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:14:28 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 562 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$YXeabS/RQ5od1O1eS1GdceBdnG5FK5d0CPizVzyj/z4gQNcl2Kq1i"], ["updated_at", Wed, 17 Jul 2013 21:14: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" = '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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 698], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9t8EDCcBgfn5Knepok6t' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 698, "created_at" = '2013-07-17 21:14:29.192150', "updated_at" = '2013-07-17 21:14:29.192150', "authentication_token" = '9t8EDCcBgfn5Knepok6t' WHERE "public"."cadenero_accounts"."id" = 563  (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", 563], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["user_id", 698]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E5xGpdTQsbhKZzzq3M5G' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 563, "user_id" = 698, "created_at" = '2013-07-17 21:14:29.197956', "updated_at" = '2013-07-17 21:14:29.197956', "auth_token" = 'E5xGpdTQsbhKZzzq3M5G' WHERE "public"."cadenero_members"."id" = 699  (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.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.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")  (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.0ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14: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-17 16:14: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 ('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" = 563 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.1ms) BEGIN  (0.6ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$9UzmJWo57QbFKe0I/6Vq9eRHuL1vbdI/bvIJ6kjuoibbxcBoExyiq"], ["updated_at", Wed, 17 Jul 2013 21:14: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" = '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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 699], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tzJG7xeA1pSDbBQJGw2W' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 699, "created_at" = '2013-07-17 21:14:29.377643', "updated_at" = '2013-07-17 21:14:29.377643', "authentication_token" = 'tzJG7xeA1pSDbBQJGw2W' WHERE "public"."cadenero_accounts"."id" = 564  (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", 564], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["user_id", 699]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pC7GcJ1dpdSHfQVw7kVo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 564, "user_id" = 699, "created_at" = '2013-07-17 21:14:29.383189', "updated_at" = '2013-07-17 21:14:29.383189', "auth_token" = 'pC7GcJ1dpdSHfQVw7kVo' WHERE "public"."cadenero_members"."id" = 700  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$hcnO4Sm1cG54lxnwRurj5u5dSJ3O1VfWqYeEDr/JLQFH5OGvJkd1q"], ["updated_at", Wed, 17 Jul 2013 21:14: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 (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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 700], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Fb1EZq28xjeQdCNhKXqr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 700, "created_at" = '2013-07-17 21:14:29.532981', "updated_at" = '2013-07-17 21:14:29.532981', "authentication_token" = 'Fb1EZq28xjeQdCNhKXqr' WHERE "public"."cadenero_accounts"."id" = 565  (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", 565], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["user_id", 700]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qaZHVZC9cqxEznptJ6ph' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 565, "user_id" = 700, "created_at" = '2013-07-17 21:14:29.538562', "updated_at" = '2013-07-17 21:14:29.538562', "auth_token" = 'qaZHVZC9cqxEznptJ6ph' WHERE "public"."cadenero_members"."id" = 701  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:14: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-17 16:14:29 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 564 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$0gXh4OVs/1lqMXwJrngifeszlbQpNkqcv7caPjrtija0c1vVKrlTG"], ["updated_at", Wed, 17 Jul 2013 21:14: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" = '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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 701], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SYrezsqse9yiR3hPzWtu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 701, "created_at" = '2013-07-17 21:14:29.669177', "updated_at" = '2013-07-17 21:14:29.669177', "authentication_token" = 'SYrezsqse9yiR3hPzWtu' WHERE "public"."cadenero_accounts"."id" = 566  (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", 566], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["user_id", 701]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tKyMsTLyzgxqdWQ4ZMbt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 566, "user_id" = 701, "created_at" = '2013-07-17 21:14:29.674726', "updated_at" = '2013-07-17 21:14:29.674726', "auth_token" = 'tKyMsTLyzgxqdWQ4ZMbt' WHERE "public"."cadenero_members"."id" = 702  (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.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")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) 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.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-17 16:14:29 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Bw667VMJ.7n9YB4L9HQdo.TS.gczFWAzgp8MM/TDye2BMli4J61x."], ["updated_at", Wed, 17 Jul 2013 21:14: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" = '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", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 702], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mBRQrz7KBG4XYbmMXSq9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 702, "created_at" = '2013-07-17 21:14:29.847095', "updated_at" = '2013-07-17 21:14:29.847095', "authentication_token" = 'mBRQrz7KBG4XYbmMXSq9' WHERE "public"."cadenero_accounts"."id" = 567  (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", 567], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:14:29 UTC +00:00], ["user_id", 702]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vC3txF28xpzWHzUn6ppz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 567, "user_id" = 702, "created_at" = '2013-07-17 21:14:29.852588', "updated_at" = '2013-07-17 21:14:29.852588', "auth_token" = 'vC3txF28xpzWHzUn6ppz' WHERE "public"."cadenero_members"."id" = 703  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:14: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 702 Started GET "/v1?auth_token[]=vC3txF28xpzWHzUn6ppz" for 127.0.0.1 at 2013-07-17 16:14:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["vC3txF28xpzWHzUn6ppz"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.5ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (8.2ms) SAVEPOINT active_record_1 SQL (28.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$.rUCfaUk.lxgSKyNu/tbVOrBu6eLkpf2ba1nQLe6x5FO8WeG6nb.."], ["updated_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00]]  (6.6ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.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", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 703], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eUeUedKLZXzHYvhxnQGs' LIMIT 1  (3.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 703, "created_at" = '2013-07-17 21:15:57.475808', "updated_at" = '2013-07-17 21:15:57.475808', "authentication_token" = 'eUeUedKLZXzHYvhxnQGs' WHERE "public"."cadenero_accounts"."id" = 568  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", 568], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["user_id", 703]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kmycax9j798znyynTrk4' LIMIT 1  (6.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 568, "user_id" = 703, "created_at" = '2013-07-17 21:15:57.609359', "updated_at" = '2013-07-17 21:15:57.609359', "auth_token" = 'kmycax9j798znyynTrk4' WHERE "public"."cadenero_members"."id" = 704  (3.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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)   (2.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")  (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, "auth_token" character varying(255))  (6.2ms) 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")  (5.6ms) 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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.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-17 16: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 703 Started GET "/v1?auth_token[]=kmycax9j798znyynTrk4" for 127.0.0.1 at 2013-07-17 16:15:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["kmycax9j798znyynTrk4"], "default"=>: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  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$VaawsGJzV/lBJK4sPsjmUeafpBPZ9DkcQn3rb.cCIt5O2vABGLSme"], ["updated_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 704], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21: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" = '6As7oHMs1TyGCssEXMp7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 704, "created_at" = '2013-07-17 21:15:57.955345', "updated_at" = '2013-07-17 21:15:57.955345', "authentication_token" = '6As7oHMs1TyGCssEXMp7' WHERE "public"."cadenero_accounts"."id" = 569  (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", 569], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:57 UTC +00:00], ["user_id", 704]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bwNspq7iw9sKfW9mA5yM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 569, "user_id" = 704, "created_at" = '2013-07-17 21:15:57.961172', "updated_at" = '2013-07-17 21:15:57.961172', "auth_token" = 'bwNspq7iw9sKfW9mA5yM' WHERE "public"."cadenero_members"."id" = 705  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15:58 -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" = 569 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 704 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 704 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 704 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 704 Completed 201 Created in 139ms (Views: 21.4ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 569 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"704", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 704 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16: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/users" for 127.0.0.1 at 2013-07-17 16:15:58 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$efDDSFVKXdCWyVL87RnOceUoW4o.GoqkTur.NwtBnX.Ob.Bj3lzPm"], ["updated_at", Wed, 17 Jul 2013 21: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", 569], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["user_id", 705]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '97JiE9w7PJWNgkJQBuqB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 569, "user_id" = 705, "created_at" = '2013-07-17 21:15:58.325610', "updated_at" = '2013-07-17 21:15:58.325610', "auth_token" = '97JiE9w7PJWNgkJQBuqB' WHERE "public"."cadenero_members"."id" = 706  (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" = 705 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 705 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 705 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 705 Completed 201 Created in 114ms (Views: 6.4ms | 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/705" for 127.0.0.1 at 2013-07-17 16:15:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"705"} 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" = 569 AND "public"."cadenero_users"."id" = 705 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 705 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 705 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 705 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" = 705 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 705 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 705 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 705 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 705 Completed 201 Created in 7ms (Views: 5.0ms | 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.0ms) ROLLBACK  (1.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$QddJx3.GdTPMvduE.PMcwOS5b2eIKFsCPdkWkkq/9X5ELF2U6pdni"], ["updated_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 706], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tCjsGXFsWqJ66M91xFTq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 706, "created_at" = '2013-07-17 21:15:58.517503', "updated_at" = '2013-07-17 21:15:58.517503', "authentication_token" = 'tCjsGXFsWqJ66M91xFTq' WHERE "public"."cadenero_accounts"."id" = 570  (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", 570], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["user_id", 706]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qsxbDG5FvXYbsy8ryjwB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 570, "user_id" = 706, "created_at" = '2013-07-17 21:15:58.522870', "updated_at" = '2013-07-17 21:15:58.522870', "auth_token" = 'qsxbDG5FvXYbsy8ryjwB' WHERE "public"."cadenero_members"."id" = 707  (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.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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15: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 (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" = 570 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" = 706 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 706 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 706 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 706 Completed 201 Created in 112ms (Views: 5.8ms | ActiveRecord: 4.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.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 570 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"706", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 706 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16: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)  (6.2ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$qgC0GiacR9jUyVZ7TOc2zekds.5q5pSshJyAXSNx0DTyh1Hy6/7Dy"], ["updated_at", Wed, 17 Jul 2013 21:15:58 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" = '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", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 707], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eJWZhqYn7VgQrUTLZXxz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 707, "created_at" = '2013-07-17 21:15:58.835178', "updated_at" = '2013-07-17 21:15:58.835178', "authentication_token" = 'eJWZhqYn7VgQrUTLZXxz' WHERE "public"."cadenero_accounts"."id" = 571  (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", 571], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:58 UTC +00:00], ["user_id", 707]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pdq6b72WxfsqGzazMypc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 571, "user_id" = 707, "created_at" = '2013-07-17 21:15:58.840770', "updated_at" = '2013-07-17 21:15:58.840770', "auth_token" = 'pdq6b72WxfsqGzazMypc' WHERE "public"."cadenero_members"."id" = 708  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.5ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16: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.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:15:58 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.0ms) 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", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$vv2YzczbAZAt6BQC5QOHke3A/FKDLpD1b98ZYQPvtKOuDRvGqIMUq"], ["updated_at", Wed, 17 Jul 2013 21: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", 571], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["user_id", 708]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzznazERxZxUQxSE4Xkw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 571, "user_id" = 708, "created_at" = '2013-07-17 21:15:59.018534', "updated_at" = '2013-07-17 21:15:59.018534', "auth_token" = 'qzznazERxZxUQxSE4Xkw' WHERE "public"."cadenero_members"."id" = 709  (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" = 708 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 708 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 708 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 708 Completed 201 Created in 115ms (Views: 5.6ms | ActiveRecord: 6.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/708" for 127.0.0.1 at 2013-07-17 16:15:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"708"} 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" = 571 AND "public"."cadenero_users"."id" = 708 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 708 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 708 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 708 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 708 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15: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" = 708 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 708 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 708 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 708 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:15:59 -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" = 708 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$8UBes0jsW58wpaVITUdXu.TxhuCFXcxrlLt4.7KJWmydMw2qAsWBG"], ["updated_at", Wed, 17 Jul 2013 21:15: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" = '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", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 709], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yusxmk7kzSvbnQZ9LcHA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 709, "created_at" = '2013-07-17 21:15:59.174374', "updated_at" = '2013-07-17 21:15:59.174374', "authentication_token" = 'yusxmk7kzSvbnQZ9LcHA' WHERE "public"."cadenero_accounts"."id" = 572  (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", 572], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["user_id", 709]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YKeF6szXAfPqLsCC1k5w' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 572, "user_id" = 709, "created_at" = '2013-07-17 21:15:59.179965', "updated_at" = '2013-07-17 21:15:59.179965', "auth_token" = 'YKeF6szXAfPqLsCC1k5w' WHERE "public"."cadenero_members"."id" = 710  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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")  (7.7ms) 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, "auth_token" character varying(255))   (9.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")  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (10.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:15: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-17 16:15:59 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 572 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" = 709 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 709 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 709 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 709 Completed 201 Created in 109ms (Views: 5.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 572 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:15: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" = 709 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.9ms) ROLLBACK  (1.6ms) BEGIN  (0.1ms) COMMIT  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$HtFMYkGgLfRBf8Te0hf0COePPVd3wWqPy6JIDPHcIMmQl.AYks/5y"], ["updated_at", Wed, 17 Jul 2013 21:15: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" = '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", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 710], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'j5Vnt2rcR38Lkjeo15kA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 710, "created_at" = '2013-07-17 21:15:59.523451', "updated_at" = '2013-07-17 21:15:59.523451', "authentication_token" = 'j5Vnt2rcR38Lkjeo15kA' WHERE "public"."cadenero_accounts"."id" = 573  (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", 573], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["user_id", 710]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UvC1esU4RjYrRywvVYHH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 573, "user_id" = 710, "created_at" = '2013-07-17 21:15:59.528970', "updated_at" = '2013-07-17 21:15:59.528970', "auth_token" = 'UvC1esU4RjYrRywvVYHH' WHERE "public"."cadenero_members"."id" = 711  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) 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')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:15:59 -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  (4.8ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$P5TR76IQhliVMYZoCMygzuduJvrCQnRgXlbmeyjyStmMuucLQjQNy"], ["updated_at", Wed, 17 Jul 2013 21:15: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" = '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", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 711], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qUczwzcviHxBF5MMQAv5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 711, "created_at" = '2013-07-17 21:15:59.752887', "updated_at" = '2013-07-17 21:15:59.752887', "authentication_token" = 'qUczwzcviHxBF5MMQAv5' WHERE "public"."cadenero_accounts"."id" = 574  (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", 574], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["user_id", 711]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JzpNEm4zTGyD9UL4oXQd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 574, "user_id" = 711, "created_at" = '2013-07-17 21:15:59.758489', "updated_at" = '2013-07-17 21:15:59.758489', "auth_token" = 'JzpNEm4zTGyD9UL4oXQd' WHERE "public"."cadenero_members"."id" = 712  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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")  (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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$mRMuBeJO4Kqfv9QQDVeMEuJp/rtFC/ICrcA8w/WpoI/MtXH8gPkDG"], ["updated_at", Wed, 17 Jul 2013 21:15: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" = '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", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 712], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TJ73mBE39gd4KSRmak5u' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 712, "created_at" = '2013-07-17 21:15:59.907499', "updated_at" = '2013-07-17 21:15:59.907499', "authentication_token" = 'TJ73mBE39gd4KSRmak5u' WHERE "public"."cadenero_accounts"."id" = 575  (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", 575], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:15:59 UTC +00:00], ["user_id", 712]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NKdCGpgeja8ZhkWoJdtN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 575, "user_id" = 712, "created_at" = '2013-07-17 21:15:59.912700', "updated_at" = '2013-07-17 21:15:59.912700', "auth_token" = 'NKdCGpgeja8ZhkWoJdtN' WHERE "public"."cadenero_members"."id" = 713  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:15: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-17 16:15:59 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 574 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$9OqOoJ5IXrFgYWyAj21MJuDzZk0HoUS.Jnvkka3xakxbu3JafbiH6"], ["updated_at", Wed, 17 Jul 2013 21:16: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" = '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", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 713], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XTL66yXQVeY9qRWRkzQN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 713, "created_at" = '2013-07-17 21:16:00.044630', "updated_at" = '2013-07-17 21:16:00.044630', "authentication_token" = 'XTL66yXQVeY9qRWRkzQN' WHERE "public"."cadenero_accounts"."id" = 576  (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", 576], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["user_id", 713]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e9Epr9ZFKpgixF6o7CBL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 576, "user_id" = 713, "created_at" = '2013-07-17 21:16:00.050219', "updated_at" = '2013-07-17 21:16:00.050219', "auth_token" = 'e9Epr9ZFKpgixF6o7CBL' WHERE "public"."cadenero_members"."id" = 714  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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, "auth_token" character varying(255))  (0.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.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)   (1.1ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:16: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-17 16:16: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 ('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" = 576 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$i2NQXnAHNSoDAnz8brTU2u3StN/t39lqiTyh/DrDBAJRtPGPKYgLW"], ["updated_at", Wed, 17 Jul 2013 21:16: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" = '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", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 714], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xqCCKyjZhgkvEqWuFm5c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 714, "created_at" = '2013-07-17 21:16:00.230786', "updated_at" = '2013-07-17 21:16:00.230786', "authentication_token" = 'xqCCKyjZhgkvEqWuFm5c' WHERE "public"."cadenero_accounts"."id" = 577  (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", 577], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:16:00 UTC +00:00], ["user_id", 714]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WPq87RRPMZ5MeECAgkb4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 577, "user_id" = 714, "created_at" = '2013-07-17 21:16:00.236285', "updated_at" = '2013-07-17 21:16:00.236285', "auth_token" = 'WPq87RRPMZ5MeECAgkb4' WHERE "public"."cadenero_members"."id" = 715  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:16: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 3ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:16: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 ('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" = 577 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK Connecting to database specified by database.yml  (2.0ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (18.6ms) 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", Wed, 17 Jul 2013 21:16:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$yXb0xXZ5JLfto2Gly1T/quO6ktgQPYVwWqlYI5jxhdp2pKvLlgDE6"], ["updated_at", Wed, 17 Jul 2013 21:16:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) 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 (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", Wed, 17 Jul 2013 21:16:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 715], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:16:59 UTC +00:00]] Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '27L3kdtWnCaHz29upxtn' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 715, "created_at" = '2013-07-17 21:16:59.602988', "updated_at" = '2013-07-17 21:16:59.602988', "authentication_token" = '27L3kdtWnCaHz29upxtn' WHERE "public"."cadenero_accounts"."id" = 578  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (14.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", 578], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:16:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:16:59 UTC +00:00], ["user_id", 715]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xXurim8GsY9dsxwEpzZx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 578, "user_id" = 715, "created_at" = '2013-07-17 21:16:59.752860', "updated_at" = '2013-07-17 21:16:59.752860', "auth_token" = 'xXurim8GsY9dsxwEpzZx' WHERE "public"."cadenero_members"."id" = 716  (5.3ms) RELEASE SAVEPOINT active_record_1  (1.8ms) CREATE SCHEMA "test1"  (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)   (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")  (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))  (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) SELECT version FROM "schema_migrations"  (1.5ms) 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')  (8.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:16:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 578 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" = 715 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 715 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 715 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" = 715 Completed 201 Created in 192ms (Views: 74.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 578 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"715", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 715 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17: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)  (5.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$oj4QaqqPVDU29gsP3MfuAuQckf.jG5zQhD9AJzy7SgOd9TgOqMbiu"], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 716], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'siQFH6rTpsqAUruq2Hr5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 716, "created_at" = '2013-07-17 21:17:00.261494', "updated_at" = '2013-07-17 21:17:00.261494', "authentication_token" = 'siQFH6rTpsqAUruq2Hr5' WHERE "public"."cadenero_accounts"."id" = 579  (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", 579], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["user_id", 716]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '35eJbCL5H6qwsiR38pzE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 579, "user_id" = 716, "created_at" = '2013-07-17 21:17:00.267344', "updated_at" = '2013-07-17 21:17:00.267344', "auth_token" = '35eJbCL5H6qwsiR38pzE' WHERE "public"."cadenero_members"."id" = 717  (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.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.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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) 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)  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17: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/users" for 127.0.0.1 at 2013-07-17 16:17:00 -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", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ccHDA0IxGIoyKwGE9VwdGuk/pW5gAw72bhhXObXM384tXK66Ap6yC"], ["updated_at", Wed, 17 Jul 2013 21:17:00 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", 579], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["user_id", 717]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MG1dc5eD8641assMWkoX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 579, "user_id" = 717, "created_at" = '2013-07-17 21:17:00.452352', "updated_at" = '2013-07-17 21:17:00.452352', "auth_token" = 'MG1dc5eD8641assMWkoX' WHERE "public"."cadenero_members"."id" = 718  (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" = 717 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 717 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 717 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" = 717 Completed 201 Created in 131ms (Views: 6.0ms | 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/717" for 127.0.0.1 at 2013-07-17 16:17:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"717"} 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" = 579 AND "public"."cadenero_users"."id" = 717 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 717 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 717 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 717 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 717 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17:00 -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" = 717 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 717 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 717 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" = 717 Completed 201 Created in 14ms (Views: 6.8ms | 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" for 127.0.0.1 at 2013-07-17 16:17:00 -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" = 717 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (6.4ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) COMMIT  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$qAArxK.mJl1Uk9JiUmlmX.59vz8/WxqMZXy4BJVvsVgF6h4yPv9lu"], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 718], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZkcSZtyViyap6TXoS4Xt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 718, "created_at" = '2013-07-17 21:17:00.649622', "updated_at" = '2013-07-17 21:17:00.649622', "authentication_token" = 'ZkcSZtyViyap6TXoS4Xt' WHERE "public"."cadenero_accounts"."id" = 580  (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", 580], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["user_id", 718]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MThjzhS5JaNLWauzguCS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 580, "user_id" = 718, "created_at" = '2013-07-17 21:17:00.655051', "updated_at" = '2013-07-17 21:17:00.655051', "auth_token" = 'MThjzhS5JaNLWauzguCS' WHERE "public"."cadenero_members"."id" = 719  (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.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.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")  (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)   (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17:00 -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 (2.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" = 580 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" = 718 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 718 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 718 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 718 Completed 201 Created in 118ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 580 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-17 16:17:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"718", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 718 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17: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/users" for 127.0.0.1 at 2013-07-17 16:17:00 -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" = '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", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$srMF0SzRrPr.pdbWDOmz4.tvGCSxs61K99C3MWJ6aMgKMBf5bNzlW"], ["updated_at", Wed, 17 Jul 2013 21:17:00 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", 580], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:00 UTC +00:00], ["user_id", 719]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mjz8qeqGa7MgoP9yx5q3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 580, "user_id" = 719, "created_at" = '2013-07-17 21:17:00.962817', "updated_at" = '2013-07-17 21:17:00.962817', "auth_token" = 'mjz8qeqGa7MgoP9yx5q3' WHERE "public"."cadenero_members"."id" = 720  (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" = 719 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 719 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 719 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" = 719 Completed 201 Created in 121ms (Views: 5.9ms | 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/719" for 127.0.0.1 at 2013-07-17 16:17:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"719"} 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" = 580 AND "public"."cadenero_users"."id" = 719 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 719 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 719 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 719 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 719 Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17:00 -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" = 719 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 719 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 719 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 719 Completed 201 Created in 7ms (Views: 5.1ms | ActiveRecord: 1.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  (21.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$dupi1KbyMGycDaGHZ8QeWuRgDxLvKkD4kYkoPO/NBfQf5c16D0qr6"], ["updated_at", Wed, 17 Jul 2013 21:17: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" = '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", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 720], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SBSsJ2LmWh6ZsChPbdyq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 720, "created_at" = '2013-07-17 21:17:01.155207', "updated_at" = '2013-07-17 21:17:01.155207', "authentication_token" = 'SBSsJ2LmWh6ZsChPbdyq' WHERE "public"."cadenero_accounts"."id" = 581  (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", 581], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["user_id", 720]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'A7VoLxqtCpLbdazFHqYT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 581, "user_id" = 720, "created_at" = '2013-07-17 21:17:01.160829', "updated_at" = '2013-07-17 21:17:01.160829', "auth_token" = 'A7VoLxqtCpLbdazFHqYT' WHERE "public"."cadenero_members"."id" = 721  (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.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, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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")  (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)   (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-17 16:17:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17: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 ('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" = 581 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" = 720 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 720 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 720 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 720 Completed 201 Created in 171ms (Views: 11.7ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 581 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17:01 -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" = 720 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (70.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$pON.3SNA9U676Ecihv.5M.AZM6FSemCqFIcZNlY0Sdt44MmIb0TWu"], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 721], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'n7xjnx7kZxJjgSRGth6w' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 721, "created_at" = '2013-07-17 21:17:01.592573', "updated_at" = '2013-07-17 21:17:01.592573', "authentication_token" = 'n7xjnx7kZxJjgSRGth6w' WHERE "public"."cadenero_accounts"."id" = 582  (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", 582], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["user_id", 721]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yqMQXMdPHkMy4Bs315y8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 582, "user_id" = 721, "created_at" = '2013-07-17 21:17:01.598065', "updated_at" = '2013-07-17 21:17:01.598065', "auth_token" = 'yqMQXMdPHkMy4Bs315y8' WHERE "public"."cadenero_members"."id" = 722  (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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Z5V0CH9aDxE6xkVNjje44eADmlbRz2NN9bmx.Djw/tbXXKUHpBoeW"], ["updated_at", Wed, 17 Jul 2013 21:17:01 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.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", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 722], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Hhj2GLyCS4Tphz9SnRPi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 722, "created_at" = '2013-07-17 21:17:01.743922', "updated_at" = '2013-07-17 21:17:01.743922', "authentication_token" = 'Hhj2GLyCS4Tphz9SnRPi' WHERE "public"."cadenero_accounts"."id" = 583  (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", 583], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["user_id", 722]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WmFvDGVpNivio3rLo41R' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 583, "user_id" = 722, "created_at" = '2013-07-17 21:17:01.749262', "updated_at" = '2013-07-17 21:17:01.749262', "auth_token" = 'WmFvDGVpNivio3rLo41R' WHERE "public"."cadenero_members"."id" = 723  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 582 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$llBABermoPgvDX2fBPByh.9D42O8t.2vH4n098jVodwh/vqD5lUHa"], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 723], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W4baQ6Vhp6K15sMB3BYV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 723, "created_at" = '2013-07-17 21:17:01.949479', "updated_at" = '2013-07-17 21:17:01.949479', "authentication_token" = 'W4baQ6Vhp6K15sMB3BYV' WHERE "public"."cadenero_accounts"."id" = 584  (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", 584], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:01 UTC +00:00], ["user_id", 723]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'A1LEBCz2myuUNrxpuZQK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 584, "user_id" = 723, "created_at" = '2013-07-17 21:17:01.955124', "updated_at" = '2013-07-17 21:17:01.955124', "auth_token" = 'A1LEBCz2myuUNrxpuZQK' WHERE "public"."cadenero_members"."id" = 724  (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.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, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17: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-17 16:17: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 ('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" = 584 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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$YRV/xbIZqpUsSebA043ZOOKo48KYQEMLxpQPlJQsOlEGLc5kcRF6K"], ["updated_at", Wed, 17 Jul 2013 21:17: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" = '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", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 724], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9fV1vt3Tqxg1xToRzpRs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 724, "created_at" = '2013-07-17 21:17:02.127170', "updated_at" = '2013-07-17 21:17:02.127170', "authentication_token" = '9fV1vt3Tqxg1xToRzpRs' WHERE "public"."cadenero_accounts"."id" = 585  (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", 585], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["user_id", 724]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Pj884UxTcLHnFxBuE8w7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 585, "user_id" = 724, "created_at" = '2013-07-17 21:17:02.132970', "updated_at" = '2013-07-17 21:17:02.132970', "auth_token" = 'Pj884UxTcLHnFxBuE8w7' WHERE "public"."cadenero_members"."id" = 725  (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.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.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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) 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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:17:02 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (2.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$I/MhN1apTMf8w1QXDT74bOi6nLqgBarbhej5MBTMa3o5x6xXzmjm."], ["updated_at", Wed, 17 Jul 2013 21:17: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", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 725], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '867wNq9FcnEyWzaHmAqf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 725, "created_at" = '2013-07-17 21:17:02.298120', "updated_at" = '2013-07-17 21:17:02.298120', "authentication_token" = '867wNq9FcnEyWzaHmAqf' WHERE "public"."cadenero_accounts"."id" = 586  (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", 586], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["user_id", 725]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fRxQZRuktQ58meyUTArh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 586, "user_id" = 725, "created_at" = '2013-07-17 21:17:02.303532', "updated_at" = '2013-07-17 21:17:02.303532', "auth_token" = 'fRxQZRuktQ58meyUTArh' WHERE "public"."cadenero_members"."id" = 726  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (3.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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.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.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-17 16:17: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-17 16:17:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 586 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.4ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$3nv1izGtysp.aXhnZEKxOOcQJzvKxc0lgr.f.KgN/1ummPmZ6SUWq"], ["updated_at", Wed, 17 Jul 2013 21:17:02 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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 726], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SWqC8Mi4zt6s3389DxQz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 726, "created_at" = '2013-07-17 21:17:02.488601', "updated_at" = '2013-07-17 21:17:02.488601', "authentication_token" = 'SWqC8Mi4zt6s3389DxQz' WHERE "public"."cadenero_accounts"."id" = 587  (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", 587], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:17:02 UTC +00:00], ["user_id", 726]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LAsArUkdnHJf2sv8dfLp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 587, "user_id" = 726, "created_at" = '2013-07-17 21:17:02.494302', "updated_at" = '2013-07-17 21:17:02.494302', "auth_token" = 'LAsArUkdnHJf2sv8dfLp' WHERE "public"."cadenero_members"."id" = 727  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:17: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.6ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 726 Started GET "/v1?auth_token[]=LAsArUkdnHJf2sv8dfLp" for 127.0.0.1 at 2013-07-17 16:17:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["LAsArUkdnHJf2sv8dfLp"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (4.8ms) ROLLBACK Connecting to database specified by database.yml  (3.0ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (9.3ms) SAVEPOINT active_record_1 SQL (18.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$JplmVqrv5L.qnTE4ue0yw.rtdZiXnA2lx32OMRgBghiSdc/4eApum"], ["updated_at", Wed, 17 Jul 2013 21:18:03 UTC +00:00]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (2.9ms) 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 (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", Wed, 17 Jul 2013 21:18:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 727], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:18:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9HVsqzHvthRTkMqMYynB' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 727, "created_at" = '2013-07-17 21:18:03.445670', "updated_at" = '2013-07-17 21:18:03.445670', "authentication_token" = '9HVsqzHvthRTkMqMYynB' WHERE "public"."cadenero_accounts"."id" = 588  (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", 588], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:03 UTC +00:00], ["user_id", 727]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fQ1dX4JpwzpkJtN2pKCA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 588, "user_id" = 727, "created_at" = '2013-07-17 21:18:03.593597', "updated_at" = '2013-07-17 21:18:03.593597', "auth_token" = 'fQ1dX4JpwzpkJtN2pKCA' WHERE "public"."cadenero_members"."id" = 728  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (20.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)   (17.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")  (13.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.3ms) 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")  (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.2ms) 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.4ms) 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')  (6.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18: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 (3.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" = 588 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" = 727 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 727 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 727 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" = 727 Completed 201 Created in 202ms (Views: 66.5ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 588 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"727", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 727 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (6.6ms) ROLLBACK  (2.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$PZsEWjEP4oG5mA39w51kLOKm2PK2Sx0CjarWakjX3AiyYy9LYns7C"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 728], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x8KnmFbqgdU67sWT2rD3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 728, "created_at" = '2013-07-17 21:18:04.134730', "updated_at" = '2013-07-17 21:18:04.134730', "authentication_token" = 'x8KnmFbqgdU67sWT2rD3' WHERE "public"."cadenero_accounts"."id" = 589  (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", 589], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["user_id", 728]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XcExyHFEdAiGSMpvm5vR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 589, "user_id" = 728, "created_at" = '2013-07-17 21:18:04.140182', "updated_at" = '2013-07-17 21:18:04.140182', "auth_token" = 'XcExyHFEdAiGSMpvm5vR' WHERE "public"."cadenero_members"."id" = 729  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.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.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.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18:04 -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.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" = 589 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" = 728 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 728 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 728 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 728 Completed 201 Created in 114ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 589 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:04 -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" = 728 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.8ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$cCYweeoZYQjHlmVoK2blkevvsNXgJbeUpmkKbgpUPxUh9.7hb.SWu"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 729], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hsWF8KLucdMnpQizkZ4R' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 729, "created_at" = '2013-07-17 21:18:04.465033', "updated_at" = '2013-07-17 21:18:04.465033', "authentication_token" = 'hsWF8KLucdMnpQizkZ4R' WHERE "public"."cadenero_accounts"."id" = 590  (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", 590], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["user_id", 729]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R5KCzsyezSfDjMDUaA2c' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 590, "user_id" = 729, "created_at" = '2013-07-17 21:18:04.470743', "updated_at" = '2013-07-17 21:18:04.470743', "auth_token" = 'R5KCzsyezSfDjMDUaA2c' WHERE "public"."cadenero_members"."id" = 730  (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.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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:18:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$6DuDnOQNrsjuugvmbDiQxeITi1EvWsvFthBlbj2qPxAmCWqIpkbmi"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 590], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["user_id", 730]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N4JVhnzqCuATgRArLcdk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 590, "user_id" = 730, "created_at" = '2013-07-17 21:18:04.641791', "updated_at" = '2013-07-17 21:18:04.641791', "auth_token" = 'N4JVhnzqCuATgRArLcdk' WHERE "public"."cadenero_members"."id" = 731  (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" = 730 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 730 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 730 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 730 Completed 201 Created in 122ms (Views: 6.6ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/730" for 127.0.0.1 at 2013-07-17 16:18:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"730"} 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.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" = 590 AND "public"."cadenero_users"."id" = 730 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 730 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 730 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 730 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 730 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18: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" = 730 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 730 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 730 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 730 Completed 201 Created in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:04 -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" = 730 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.5ms) ROLLBACK  (2.0ms) BEGIN  (4.4ms) COMMIT  (4.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ZSuGZVQNAs9YxQUXYuAU6uAJX61V9iDUKfUZ6/KJZSskrAiBLSDHa"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 731], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B72n1Mghtx93zGB9iRWz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 731, "created_at" = '2013-07-17 21:18:04.835043', "updated_at" = '2013-07-17 21:18:04.835043', "authentication_token" = 'B72n1Mghtx93zGB9iRWz' WHERE "public"."cadenero_accounts"."id" = 591  (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", 591], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:04 UTC +00:00], ["user_id", 731]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tEc8AJyfFyFVWGphqMLX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 591, "user_id" = 731, "created_at" = '2013-07-17 21:18:04.840459', "updated_at" = '2013-07-17 21:18:04.840459', "auth_token" = 'tEc8AJyfFyFVWGphqMLX' WHERE "public"."cadenero_members"."id" = 732  (0.1ms) 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)  (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.6ms) 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.6ms) 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 ('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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 591 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" = 731 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 731 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 731 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" = 731 Completed 201 Created in 108ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 591 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"731", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 731 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18: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-17 16:18: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.2ms) 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", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$tF5QI/EgRWruy3kWdcDQ8.Rtl.eOTlB56HNhbonm/NadJBQJiWd5i"], ["updated_at", Wed, 17 Jul 2013 21:18:05 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", 591], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["user_id", 732]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oH62Cc8iKRZitXJmNDyh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 591, "user_id" = 732, "created_at" = '2013-07-17 21:18:05.145242', "updated_at" = '2013-07-17 21:18:05.145242', "auth_token" = 'oH62Cc8iKRZitXJmNDyh' WHERE "public"."cadenero_members"."id" = 733  (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" = 732 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 732 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 732 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 732 Completed 201 Created in 119ms (Views: 5.8ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/732" for 127.0.0.1 at 2013-07-17 16:18:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"732"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.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" = 591 AND "public"."cadenero_users"."id" = 732 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 732 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 732 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 732 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 732 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 732 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 732 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 732 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 732 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$0lvWonymjtWOHWGnI1xVuOjVeqDWXexqhn8zexPe5N7XNh32pFzKe"], ["updated_at", Wed, 17 Jul 2013 21:18: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" = '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", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 733], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CfGidHS7Xfx5VExJeEF8' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 733, "created_at" = '2013-07-17 21:18:05.300742', "updated_at" = '2013-07-17 21:18:05.300742', "authentication_token" = 'CfGidHS7Xfx5VExJeEF8' WHERE "public"."cadenero_accounts"."id" = 592  (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", 592], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["user_id", 733]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5gKpFHWF1zRm2GiJpSv8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 592, "user_id" = 733, "created_at" = '2013-07-17 21:18:05.307309', "updated_at" = '2013-07-17 21:18:05.307309', "auth_token" = '5gKpFHWF1zRm2GiJpSv8' WHERE "public"."cadenero_members"."id" = 734  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (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.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (44.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (15.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$erEEeG5/x2vydfcbrPzz7OGCMyBNdOUpamwdojvORf6LcwjLhglIK"], ["updated_at", Wed, 17 Jul 2013 21:18:05 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.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", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 734], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kRSfXDzw8q7xfkscrxDQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 734, "created_at" = '2013-07-17 21:18:05.564867', "updated_at" = '2013-07-17 21:18:05.564867', "authentication_token" = 'kRSfXDzw8q7xfkscrxDQ' WHERE "public"."cadenero_accounts"."id" = 593  (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", 593], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["user_id", 734]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sSq78aKzLRYv182Vt5H4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 593, "user_id" = 734, "created_at" = '2013-07-17 21:18:05.570080', "updated_at" = '2013-07-17 21:18:05.570080', "auth_token" = 'sSq78aKzLRYv182Vt5H4' WHERE "public"."cadenero_members"."id" = 735  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18: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-17 16:18:05 -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" = 592 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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kVJ8gVmCV4xRTZEDTH4tHeXhzQxh3wHdbKaUP/jDbJtEQTcnQnfnm"], ["updated_at", Wed, 17 Jul 2013 21:18: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.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", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 735], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8nTEdPY9pozyCqZpVqtk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 735, "created_at" = '2013-07-17 21:18:05.751630', "updated_at" = '2013-07-17 21:18:05.751630', "authentication_token" = '8nTEdPY9pozyCqZpVqtk' WHERE "public"."cadenero_accounts"."id" = 594  (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", 594], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["user_id", 735]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xfoCzysD9uioVDzLqkZL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 594, "user_id" = 735, "created_at" = '2013-07-17 21:18:05.757135', "updated_at" = '2013-07-17 21:18:05.757135', "auth_token" = 'xfoCzysD9uioVDzLqkZL' WHERE "public"."cadenero_members"."id" = 736  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 594 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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$WgyQZiPQewxVJ7F.XZxwzOoeLCDzNpKg1wYZEqOeE7y7HbMLahGiS"], ["updated_at", Wed, 17 Jul 2013 21:18: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.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", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 736], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SN3L5sKE5bfeGGqjaT2x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 736, "created_at" = '2013-07-17 21:18:05.937774', "updated_at" = '2013-07-17 21:18:05.937774', "authentication_token" = 'SN3L5sKE5bfeGGqjaT2x' WHERE "public"."cadenero_accounts"."id" = 595  (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", 595], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:05 UTC +00:00], ["user_id", 736]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'np9x8txeSvFEKdfK56Rx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 595, "user_id" = 736, "created_at" = '2013-07-17 21:18:05.943783', "updated_at" = '2013-07-17 21:18:05.943783', "auth_token" = 'np9x8txeSvFEKdfK56Rx' WHERE "public"."cadenero_members"."id" = 737  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (2.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)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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-17 16:18: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-17 16:18: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 ('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" = 595 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xYy9eq/5yGh/XaIl4HkuCuDoororozulNSWg5WaZvdeL55sfPGyha"], ["updated_at", Wed, 17 Jul 2013 21:18: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" = '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", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 737], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eDqKsDQfKq9Tb4DZx11s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 737, "created_at" = '2013-07-17 21:18:06.140050', "updated_at" = '2013-07-17 21:18:06.140050', "authentication_token" = 'eDqKsDQfKq9Tb4DZx11s' WHERE "public"."cadenero_accounts"."id" = 596  (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", 596], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["user_id", 737]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pDR1spGNReTG7N5RsmQD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 596, "user_id" = 737, "created_at" = '2013-07-17 21:18:06.145394', "updated_at" = '2013-07-17 21:18:06.145394', "auth_token" = 'pDR1spGNReTG7N5RsmQD' WHERE "public"."cadenero_members"."id" = 738  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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.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.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:18:06 -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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$R5Xbp7r6o6fcGE.D9GKq9e.XteSJltOvQikfVa3uDNE91rSLXyevO"], ["updated_at", Wed, 17 Jul 2013 21:18: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" = '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", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 738], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JpSqCb655zBDiYoDQiLv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 738, "created_at" = '2013-07-17 21:18:06.306625', "updated_at" = '2013-07-17 21:18:06.306625', "authentication_token" = 'JpSqCb655zBDiYoDQiLv' WHERE "public"."cadenero_accounts"."id" = 597  (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", 597], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:06 UTC +00:00], ["user_id", 738]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2q3kPppf5crs6aDLB4QT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 597, "user_id" = 738, "created_at" = '2013-07-17 21:18:06.312049', "updated_at" = '2013-07-17 21:18:06.312049', "auth_token" = '2q3kPppf5crs6aDLB4QT' WHERE "public"."cadenero_members"."id" = 739  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.3ms) 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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:18:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 738 Started GET "/v1?auth_token[]=2q3kPppf5crs6aDLB4QT" for 127.0.0.1 at 2013-07-17 16:18:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["2q3kPppf5crs6aDLB4QT"], "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 Connecting to database specified by database.yml  (0.9ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (122.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:18:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$vNu2K84F1DJnRLMsIlWzQ.dtP5pIvqUIYHmblp7TKV6Ie5y6OJDC2"], ["updated_at", Wed, 17 Jul 2013 21:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.1ms) 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 (10.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", Wed, 17 Jul 2013 21:18:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 739], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:18:59 UTC +00:00]] Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qmgyPqemsrbxyhDpftH1' LIMIT 1  (8.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 739, "created_at" = '2013-07-17 21:18:59.813401', "updated_at" = '2013-07-17 21:18:59.813401', "authentication_token" = 'qmgyPqemsrbxyhDpftH1' WHERE "public"."cadenero_accounts"."id" = 598  (10.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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", 598], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:18:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:18:59 UTC +00:00], ["user_id", 739]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uD8CMsvrn3WSq3RWK45M' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 598, "user_id" = 739, "created_at" = '2013-07-17 21:18:59.947845', "updated_at" = '2013-07-17 21:18:59.947845', "auth_token" = 'uD8CMsvrn3WSq3RWK45M' WHERE "public"."cadenero_members"."id" = 740  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (3.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")  (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.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")  (2.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.9ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:19: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 (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 598 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 739 LIMIT 1 Cadenero::Member Load (6.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 739 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 739 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" = 739 Completed 201 Created in 285ms (Views: 122.5ms | ActiveRecord: 17.8ms) Cadenero::V1::Account Load (2.0ms) 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" = 598 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:19:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"739", "default"=>:json} Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 739 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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)  (19.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (20.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$9Wo5yJwCwFrw4anIQfH.H.0dxJCbqkNOlMI.HjnymIXfM4nk5pQWu"], ["updated_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (6.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (17.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", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 740], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fv1HR7kavDJPzPZif15q' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 740, "created_at" = '2013-07-17 21:19:00.644334', "updated_at" = '2013-07-17 21:19:00.644334', "authentication_token" = 'fv1HR7kavDJPzPZif15q' WHERE "public"."cadenero_accounts"."id" = 599  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 599], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["user_id", 740]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CuUu1hgbyv2keecKWspS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 599, "user_id" = 740, "created_at" = '2013-07-17 21:19:00.668273', "updated_at" = '2013-07-17 21:19:00.668273', "auth_token" = 'CuUu1hgbyv2keecKWspS' WHERE "public"."cadenero_members"."id" = 741  (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)  (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.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")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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-17 16:19:00 -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" = 599 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" = 740 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 740 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 740 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 740 Completed 201 Created in 123ms (Views: 5.7ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 599 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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" = 740 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$pLanBGtOtAP03FZLsnYLruPRHIwg78Xf.C9y391hYLGSCq1dtTXUa"], ["updated_at", Wed, 17 Jul 2013 21:19:00 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 741], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oFw77cjwu5k2jmtvngmz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 741, "created_at" = '2013-07-17 21:19:00.979111', "updated_at" = '2013-07-17 21:19:00.979111', "authentication_token" = 'oFw77cjwu5k2jmtvngmz' WHERE "public"."cadenero_accounts"."id" = 600  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 600], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:00 UTC +00:00], ["user_id", 741]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qy4546V4q9UowDcAygfx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 600, "user_id" = 741, "created_at" = '2013-07-17 21:19:00.984753', "updated_at" = '2013-07-17 21:19:00.984753', "auth_token" = 'Qy4546V4q9UowDcAygfx' WHERE "public"."cadenero_members"."id" = 742  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:19: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 600 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" = 741 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 741 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 741 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 741 Completed 201 Created in 115ms (Views: 5.6ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 600 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-17 16:19:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"741", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 741 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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-17 16:19: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" = '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", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$1FT/z6HVkI0jmM/opwJBf.yJ67ffL6TWJPUEcIqYUkofOyQjNHyZq"], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 600], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["user_id", 742]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vHV5p8mMxr4y8Pu6qc5M' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 600, "user_id" = 742, "created_at" = '2013-07-17 21:19:01.299422', "updated_at" = '2013-07-17 21:19:01.299422', "auth_token" = 'vHV5p8mMxr4y8Pu6qc5M' WHERE "public"."cadenero_members"."id" = 743  (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" = 742 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 742 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 742 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 742 Completed 201 Created in 141ms (Views: 6.2ms | 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/742" for 127.0.0.1 at 2013-07-17 16:19:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"742"} 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" = 600 AND "public"."cadenero_users"."id" = 742 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 742 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 742 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 742 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" = 742 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:19: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 742 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 742 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 742 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" = 742 Completed 201 Created in 8ms (Views: 5.5ms | 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' LIMIT 1  (23.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$MNIGxvRIgNJQe1K3evZIDOvmMT7QiSR2wdnfpHwf015YjUlZ3noCG"], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 743], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TDiQXRdQuQh9BkY2T3SU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 743, "created_at" = '2013-07-17 21:19:01.501665', "updated_at" = '2013-07-17 21:19:01.501665', "authentication_token" = 'TDiQXRdQuQh9BkY2T3SU' WHERE "public"."cadenero_accounts"."id" = 601  (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", 601], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["user_id", 743]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zukd6pDJsuescfHLyFzp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 601, "user_id" = 743, "created_at" = '2013-07-17 21:19:01.507021', "updated_at" = '2013-07-17 21:19:01.507021', "auth_token" = 'zukd6pDJsuescfHLyFzp' WHERE "public"."cadenero_members"."id" = 744  (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)   (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.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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/users" for 127.0.0.1 at 2013-07-17 16:19: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.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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$6atuA1JY4stzrt3cLSaIt.xf/rPs6Klddwe5amoEFJEYG9ly.uegS"], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 601], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["user_id", 744]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '29bmp2KzpPZoxFp8ULba' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 601, "user_id" = 744, "created_at" = '2013-07-17 21:19:01.676183', "updated_at" = '2013-07-17 21:19:01.676183', "auth_token" = '29bmp2KzpPZoxFp8ULba' WHERE "public"."cadenero_members"."id" = 745  (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" = 744 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 744 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 744 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 744 Completed 201 Created in 131ms (Views: 5.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/744" for 127.0.0.1 at 2013-07-17 16:19:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"744"} 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.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" = 601 AND "public"."cadenero_users"."id" = 744 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 744 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 744 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 744 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 744 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:19: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 744 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 744 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 744 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" = 744 Completed 201 Created in 8ms (Views: 5.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19:01 -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" = 744 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$viiPC4i68oCT5fBZL4VDKendGWv8Pj27IAEbXTaZsOIsgT3iXIAG6"], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 745], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FSVL8E6cYMPF3wjTVzxk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 745, "created_at" = '2013-07-17 21:19:01.944646', "updated_at" = '2013-07-17 21:19:01.944646', "authentication_token" = 'FSVL8E6cYMPF3wjTVzxk' WHERE "public"."cadenero_accounts"."id" = 602  (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", 602], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:01 UTC +00:00], ["user_id", 745]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PFDheyGrbQsHwGVqo2ai' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 602, "user_id" = 745, "created_at" = '2013-07-17 21:19:01.950485', "updated_at" = '2013-07-17 21:19:01.950485', "auth_token" = 'PFDheyGrbQsHwGVqo2ai' WHERE "public"."cadenero_members"."id" = 746  (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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Lxtrjw3Tf3LkE954/DdUdeLM1RoDJBDtfQvou61t7t3co1ha.jpnC"], ["updated_at", Wed, 17 Jul 2013 21:19:02 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", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 746], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ghZMNTjgrTWFD2qsA2xU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 746, "created_at" = '2013-07-17 21:19:02.097324', "updated_at" = '2013-07-17 21:19:02.097324', "authentication_token" = 'ghZMNTjgrTWFD2qsA2xU' WHERE "public"."cadenero_accounts"."id" = 603  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 603], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["user_id", 746]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xSyySkABx26huE2qfCRy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 603, "user_id" = 746, "created_at" = '2013-07-17 21:19:02.102642', "updated_at" = '2013-07-17 21:19:02.102642', "auth_token" = 'xSyySkABx26huE2qfCRy' WHERE "public"."cadenero_members"."id" = 747  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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-17 16:19: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 ('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" = 602 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$6zDmD3pcYif5wG3imkE76etaHvHaEMwbHL/GoV7pFMyvsS1t1J8hq"], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 747], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '636KYVs2uzzUppipunJZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 747, "created_at" = '2013-07-17 21:19:02.279819', "updated_at" = '2013-07-17 21:19:02.279819', "authentication_token" = '636KYVs2uzzUppipunJZ' WHERE "public"."cadenero_accounts"."id" = 604  (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", 604], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["user_id", 747]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Aby2LPMhsbERtqaUEK6b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 604, "user_id" = 747, "created_at" = '2013-07-17 21:19:02.285329', "updated_at" = '2013-07-17 21:19:02.285329', "auth_token" = 'Aby2LPMhsbERtqaUEK6b' WHERE "public"."cadenero_members"."id" = 748  (0.2ms) 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)   (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")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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-17 16:19:02 -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.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" = 604 AND "public"."cadenero_users"."email" = 'user@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  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$inpaEvW22mLzcx80mYSjcu9AkBjI.LKmhTe06jTqeE6ZBkfmi3.Oe"], ["updated_at", Wed, 17 Jul 2013 21:19: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" = '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", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 748], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qLxoybHebJZzCRcmLsVZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 748, "created_at" = '2013-07-17 21:19:02.454860', "updated_at" = '2013-07-17 21:19:02.454860', "authentication_token" = 'qLxoybHebJZzCRcmLsVZ' WHERE "public"."cadenero_accounts"."id" = 605  (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", 605], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["user_id", 748]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'paL7XHXyXwdba2QVDjzS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 605, "user_id" = 748, "created_at" = '2013-07-17 21:19:02.460332', "updated_at" = '2013-07-17 21:19:02.460332', "auth_token" = 'paL7XHXyXwdba2QVDjzS' WHERE "public"."cadenero_members"."id" = 749  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (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-17 16:19:02 -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  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$30bNEh0WKMezDiSgu/CAkOqQAeckvfs8Dbr1UNg/gWNEx03ADjc6u"], ["updated_at", Wed, 17 Jul 2013 21:19: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", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 749], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pZs45avwn6eAjwqKwKkE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 749, "created_at" = '2013-07-17 21:19:02.622273', "updated_at" = '2013-07-17 21:19:02.622273', "authentication_token" = 'pZs45avwn6eAjwqKwKkE' WHERE "public"."cadenero_accounts"."id" = 606  (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", 606], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["user_id", 749]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TApF5eUM5LeEbyj8B2Qy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 606, "user_id" = 749, "created_at" = '2013-07-17 21:19:02.627704', "updated_at" = '2013-07-17 21:19:02.627704', "auth_token" = 'TApF5eUM5LeEbyj8B2Qy' WHERE "public"."cadenero_members"."id" = 750  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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-17 16:19: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 ('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" = 606 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$WytqbVG1Z.Y26CBAxPljkOcxKZrn3.sH1jsyqFXvogdIoh62ltyQm"], ["updated_at", Wed, 17 Jul 2013 21:19: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" = '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", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 750], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vqokGpRa4xM7Tcwb196p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 750, "created_at" = '2013-07-17 21:19:02.793669', "updated_at" = '2013-07-17 21:19:02.793669', "authentication_token" = 'vqokGpRa4xM7Tcwb196p' WHERE "public"."cadenero_accounts"."id" = 607  (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", 607], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:19:02 UTC +00:00], ["user_id", 750]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'emEsUHVoyx7pFMaxoR3J' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 607, "user_id" = 750, "created_at" = '2013-07-17 21:19:02.799128', "updated_at" = '2013-07-17 21:19:02.799128', "auth_token" = 'emEsUHVoyx7pFMaxoR3J' WHERE "public"."cadenero_members"."id" = 751  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:19: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 750 Started GET "/v1?auth_token[]=emEsUHVoyx7pFMaxoR3J" for 127.0.0.1 at 2013-07-17 16:19:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["emEsUHVoyx7pFMaxoR3J"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.8ms) ROLLBACK Connecting to database specified by database.yml  (1.9ms) BEGIN  (0.2ms) COMMIT  (2.0ms) BEGIN  (6.1ms) SAVEPOINT active_record_1 SQL (19.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:29 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$BjvwJwnyc30ET7g1VBqOr.hVcJ8.8UO87pKlB6nl6Ko2pdVAu/S.e"], ["updated_at", Wed, 17 Jul 2013 21:20:29 UTC +00:00]]  (5.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (14.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", Wed, 17 Jul 2013 21:20:29 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 751], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:20:29 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ps4AygjA2xVyp9SYMGUk' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 751, "created_at" = '2013-07-17 21:20:29.905908', "updated_at" = '2013-07-17 21:20:29.905908', "authentication_token" = 'Ps4AygjA2xVyp9SYMGUk' WHERE "public"."cadenero_accounts"."id" = 608  (0.1ms) RELEASE SAVEPOINT active_record_1  (14.2ms) 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", 608], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["user_id", 751]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gnt5sSAB9vj9zTPpXqBj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 608, "user_id" = 751, "created_at" = '2013-07-17 21:20:30.084706', "updated_at" = '2013-07-17 21:20:30.084706', "auth_token" = 'Gnt5sSAB9vj9zTPpXqBj' WHERE "public"."cadenero_members"."id" = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (6.2ms) 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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.3ms) 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.5ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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.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" = 608 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" = 751 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 751 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 751 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" = 751 Completed 201 Created in 211ms (Views: 89.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 608 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-17 16:20:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"751", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 751 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20: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/users" for 127.0.0.1 at 2013-07-17 16:20: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$BsDIqbxJavAFTnoc9YJb3ORu.RuNF5Punu6cjuAradNtSQA5wWFBG"], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00]] SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 608], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["user_id", 752]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wXgyB8wENN1bssk9gAMf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 608, "user_id" = 752, "created_at" = '2013-07-17 21:20:30.595010', "updated_at" = '2013-07-17 21:20:30.595010', "auth_token" = 'wXgyB8wENN1bssk9gAMf' WHERE "public"."cadenero_members"."id" = 753  (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" = 752 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 752 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 752 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 752 Completed 201 Created in 124ms (Views: 7.7ms | 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/752" for 127.0.0.1 at 2013-07-17 16:20:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"752"} 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" = 608 AND "public"."cadenero_users"."id" = 752 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 752 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 752 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 752 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 752 Completed 200 OK in 16ms (Views: 7.4ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 752 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 752 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 752 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 752 Completed 201 Created in 16ms (Views: 10.5ms | 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  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$aAU.lIjDHjhK07rYaXdMfOwnq.cZyWz3Znsyo4BCNC4kymf.Bamdi"], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 753], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UqwqJpts3gzwYRVhWsxk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 753, "created_at" = '2013-07-17 21:20:30.783928', "updated_at" = '2013-07-17 21:20:30.783928', "authentication_token" = 'UqwqJpts3gzwYRVhWsxk' WHERE "public"."cadenero_accounts"."id" = 609  (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", 609], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["user_id", 753]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xY62QMmFWTsM2FrEHajG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 609, "user_id" = 753, "created_at" = '2013-07-17 21:20:30.789388', "updated_at" = '2013-07-17 21:20:30.789388', "auth_token" = 'xY62QMmFWTsM2FrEHajG' WHERE "public"."cadenero_members"."id" = 754  (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.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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20: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/users" for 127.0.0.1 at 2013-07-17 16:20: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 (1.1ms) 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", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$jgkla3X2nEOOOrtPatO4HOK2QTPLRY2v7IFXm1j31KoW5./gT6lQa"], ["updated_at", Wed, 17 Jul 2013 21:20:30 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", 609], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:30 UTC +00:00], ["user_id", 754]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'brQhcpcreq4e6SqLrXxY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 609, "user_id" = 754, "created_at" = '2013-07-17 21:20:30.974020', "updated_at" = '2013-07-17 21:20:30.974020', "auth_token" = 'brQhcpcreq4e6SqLrXxY' WHERE "public"."cadenero_members"."id" = 755  (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" = 754 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 754 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 754 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 754 Completed 201 Created in 133ms (Views: 5.9ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/754" for 127.0.0.1 at 2013-07-17 16:20:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"754"} 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" = 609 AND "public"."cadenero_users"."id" = 754 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 754 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 754 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 754 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" = 754 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 754 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 754 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 754 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 754 Completed 201 Created in 9ms (Views: 6.8ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (12.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-17 16:20:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 754 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$TC9dsJ49drbtkM6rfDNege/rxaIqNrpoXaz48YwnFjIAOYARMgmwa"], ["updated_at", Wed, 17 Jul 2013 21:20: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" = '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", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 755], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'udc2ASectywj5FMUpyfd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 755, "created_at" = '2013-07-17 21:20:31.158832', "updated_at" = '2013-07-17 21:20:31.158832', "authentication_token" = 'udc2ASectywj5FMUpyfd' WHERE "public"."cadenero_accounts"."id" = 610  (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", 610], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["user_id", 755]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RRcwLGmXqsm8Da9yRcqt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 610, "user_id" = 755, "created_at" = '2013-07-17 21:20:31.165189', "updated_at" = '2013-07-17 21:20:31.165189', "auth_token" = 'RRcwLGmXqsm8Da9yRcqt' WHERE "public"."cadenero_members"."id" = 756  (0.3ms) 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)  (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")  (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, "auth_token" character varying(255))   (2.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")  (2.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)   (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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 610 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" = 755 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 755 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 755 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 755 Completed 201 Created in 113ms (Views: 9.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 610 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20: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" = 755 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (3.4ms) ROLLBACK  (0.8ms) BEGIN  (17.7ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ZOfGLTlsnifLXlsBh9XKp.ZLEpQs0uoPLorknJ/qVv2kodbMFh0zi"], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 756], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BSL97WHaXyKsiaPCxhMf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 756, "created_at" = '2013-07-17 21:20:31.505948', "updated_at" = '2013-07-17 21:20:31.505948', "authentication_token" = 'BSL97WHaXyKsiaPCxhMf' WHERE "public"."cadenero_accounts"."id" = 611  (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", 611], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["user_id", 756]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cQ1sNEDmAtEZaGWFNzSx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 611, "user_id" = 756, "created_at" = '2013-07-17 21:20:31.515339', "updated_at" = '2013-07-17 21:20:31.515339', "auth_token" = 'cQ1sNEDmAtEZaGWFNzSx' WHERE "public"."cadenero_members"."id" = 757  (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")  (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, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) 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 ('20130715174857')  (0.4ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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.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" = 611 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" = 756 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 756 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 756 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 756 Completed 201 Created in 113ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 611 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20:31 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"756", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 756 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (13.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Xga.CQQoMnCiG6sVy9uXHuT5KEc.i1QClT4UysjPENTgWjFGvwzee"], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 757], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LqjG9ixns8vbzhjB4K5B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 757, "created_at" = '2013-07-17 21:20:31.847542', "updated_at" = '2013-07-17 21:20:31.847542', "authentication_token" = 'LqjG9ixns8vbzhjB4K5B' WHERE "public"."cadenero_accounts"."id" = 612  (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", 612], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:31 UTC +00:00], ["user_id", 757]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9tXps8D5sAJBkqD5xGwC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 612, "user_id" = 757, "created_at" = '2013-07-17 21:20:31.853022', "updated_at" = '2013-07-17 21:20:31.853022', "auth_token" = '9tXps8D5sAJBkqD5xGwC' WHERE "public"."cadenero_members"."id" = 758  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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")  (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, "auth_token" character varying(255))   (1.7ms) 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")  (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)  (3.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 ('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-17 16:20:31 -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  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.IXGj7NoiqKME95VaC0VcuFFE9K8jL2TK2X5jR4/C2dyQn3SwW0ey"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 758], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qkznn2B6d2gTPomAqDPk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 758, "created_at" = '2013-07-17 21:20:32.061075', "updated_at" = '2013-07-17 21:20:32.061075', "authentication_token" = 'qkznn2B6d2gTPomAqDPk' WHERE "public"."cadenero_accounts"."id" = 613  (0.2ms) 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", 613], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["user_id", 758]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'F2nSqHVZMJpJi2yskpC8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 613, "user_id" = 758, "created_at" = '2013-07-17 21:20:32.203367', "updated_at" = '2013-07-17 21:20:32.203367', "auth_token" = 'F2nSqHVZMJpJi2yskpC8' WHERE "public"."cadenero_members"."id" = 759  (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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (17.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-17 16:20:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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 ('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" = 613 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | 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  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$DcehHS2NT8euXNWkgoOK..onTLECGd5ajg4yQ77J9/TlgOHn2CiFe"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 759], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g3NeXU87X9AqhGjTwaQw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 759, "created_at" = '2013-07-17 21:20:32.407576', "updated_at" = '2013-07-17 21:20:32.407576', "authentication_token" = 'g3NeXU87X9AqhGjTwaQw' WHERE "public"."cadenero_accounts"."id" = 614  (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", 614], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["user_id", 759]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ypzhVfo3VquPrTVYVqzv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 614, "user_id" = 759, "created_at" = '2013-07-17 21:20:32.412898', "updated_at" = '2013-07-17 21:20:32.412898', "auth_token" = 'ypzhVfo3VquPrTVYVqzv' WHERE "public"."cadenero_members"."id" = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.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, "auth_token" character varying(255))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20: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.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 614 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.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  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$UD7/2wFFr5N/7J.5LmRjnudLq4y4t3CiwAsnaiBf0C5TID2qxEZN2"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 760], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nm2e4Upg9jfWQ1GrsnMp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 760, "created_at" = '2013-07-17 21:20:32.611780', "updated_at" = '2013-07-17 21:20:32.611780', "authentication_token" = 'nm2e4Upg9jfWQ1GrsnMp' WHERE "public"."cadenero_accounts"."id" = 615  (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", 615], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["user_id", 760]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kj4BTp7sm36LErYxc6KV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 615, "user_id" = 760, "created_at" = '2013-07-17 21:20:32.617042', "updated_at" = '2013-07-17 21:20:32.617042', "auth_token" = 'Kj4BTp7sm36LErYxc6KV' WHERE "public"."cadenero_members"."id" = 761  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$3BCMV34ruXNZ/tBaYExzw.MdmVSEGGVpsVwWVZ5MHn1ALnxyHEYXe"], ["updated_at", Wed, 17 Jul 2013 21: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" = '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", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 761], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'shEGU5FedN3h5HtDLrwp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 761, "created_at" = '2013-07-17 21:20:32.795059', "updated_at" = '2013-07-17 21:20:32.795059', "authentication_token" = 'shEGU5FedN3h5HtDLrwp' WHERE "public"."cadenero_accounts"."id" = 616  (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", 616], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["user_id", 761]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xFzy2hz2mpzJkxNoEtuW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 616, "user_id" = 761, "created_at" = '2013-07-17 21:20:32.800151', "updated_at" = '2013-07-17 21:20:32.800151', "auth_token" = 'xFzy2hz2mpzJkxNoEtuW' WHERE "public"."cadenero_members"."id" = 762  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:20: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 615 AND "public"."cadenero_users"."email" = 'user9@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  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) 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", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$a0ZNBwFBS8/Opw4oe7afYubE4iz8UJ19CZzD6J7oqeFRsia21GLge"], ["updated_at", Wed, 17 Jul 2013 21: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 762], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bXiBzJDpRsQjG8F5wEd7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 762, "created_at" = '2013-07-17 21:20:32.933256', "updated_at" = '2013-07-17 21:20:32.933256', "authentication_token" = 'bXiBzJDpRsQjG8F5wEd7' WHERE "public"."cadenero_accounts"."id" = 617  (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", 617], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:20:32 UTC +00:00], ["user_id", 762]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SDvHRvdesNTjopma6JjT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 617, "user_id" = 762, "created_at" = '2013-07-17 21:20:32.939506', "updated_at" = '2013-07-17 21:20:32.939506', "auth_token" = 'SDvHRvdesNTjopma6JjT' WHERE "public"."cadenero_members"."id" = 763  (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.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.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.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")  (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)   (4.0ms) 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:20: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 762 Started GET "/v1?auth_token[]=SDvHRvdesNTjopma6JjT" for 127.0.0.1 at 2013-07-17 16:20:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["SDvHRvdesNTjopma6JjT"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.9ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) BEGIN  (4.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 21:21:17 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$bUernBdFPU8xNFb3xa8SA.CIq7YejsBIcnI5qn9fA3NN8pvB4TPKu"], ["updated_at", Wed, 17 Jul 2013 21:21:17 UTC +00:00]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 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", Wed, 17 Jul 2013 21:21:17 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 763], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:21:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yXxQGHxssQHuJq3gBKRq' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 763, "created_at" = '2013-07-17 21:21:17.674635', "updated_at" = '2013-07-17 21:21:17.674635', "authentication_token" = 'yXxQGHxssQHuJq3gBKRq' WHERE "public"."cadenero_accounts"."id" = 618  (2.2ms) 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", 618], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:17 UTC +00:00], ["user_id", 763]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'i662X8sgEwWKcpLe5bze' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 618, "user_id" = 763, "created_at" = '2013-07-17 21:21:17.848426', "updated_at" = '2013-07-17 21:21:17.848426', "auth_token" = 'i662X8sgEwWKcpLe5bze' WHERE "public"."cadenero_members"."id" = 764  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)   (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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21:17 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21:17 -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.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" = 618 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" = 763 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 763 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 763 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" = 763 Completed 201 Created in 160ms (Views: 44.1ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 618 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 763 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (5.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$/6zeP2GktfPTYJLFAlwrJOEoa/H1301BgMikZPBk7f8BxqxKGKm5S"], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 764], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aR2LJj3U8KDnGgNyfxMj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 764, "created_at" = '2013-07-17 21:21:18.320869', "updated_at" = '2013-07-17 21:21:18.320869', "authentication_token" = 'aR2LJj3U8KDnGgNyfxMj' WHERE "public"."cadenero_accounts"."id" = 619  (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", 619], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["user_id", 764]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ri1zTdTandix3JizHK9a' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 619, "user_id" = 764, "created_at" = '2013-07-17 21:21:18.326587', "updated_at" = '2013-07-17 21:21:18.326587', "auth_token" = 'ri1zTdTandix3JizHK9a' WHERE "public"."cadenero_members"."id" = 765  (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")  (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))   (2.7ms) 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")  (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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.2ms) 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" = 619 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 764 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 764 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 764 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 764 Completed 201 Created in 121ms (Views: 5.7ms | ActiveRecord: 6.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 619 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"764", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 764 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$421MqnfU4j2uqWVgZx2nU.RDxHDHqCDbUfJNlgZTKL2JgP5BhJFlm"], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 765], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XsHT47quXCL3EdXLJ8xt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 765, "created_at" = '2013-07-17 21:21:18.667383', "updated_at" = '2013-07-17 21:21:18.667383', "authentication_token" = 'XsHT47quXCL3EdXLJ8xt' WHERE "public"."cadenero_accounts"."id" = 620  (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", 620], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["user_id", 765]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6ztGDzqyC7bF3hkqZHmR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 620, "user_id" = 765, "created_at" = '2013-07-17 21:21:18.672745', "updated_at" = '2013-07-17 21:21:18.672745', "auth_token" = '6ztGDzqyC7bF3hkqZHmR' WHERE "public"."cadenero_members"."id" = 766  (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")  (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.7ms) 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")  (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)  (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.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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) 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" = 620 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" = 765 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 765 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 765 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 765 Completed 201 Created in 107ms (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" = 620 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-17 16:21:18 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"765", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 765 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:21: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" = '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", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$HOREej38kMG66rwbBiFc3.MhTkWXJNSBuQCNHDKg6sDm2G.RA6Ih2"], ["updated_at", Wed, 17 Jul 2013 21:21: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", 620], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:18 UTC +00:00], ["user_id", 766]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W7FU1VrW7B4Z7EkjWv6i' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 620, "user_id" = 766, "created_at" = '2013-07-17 21:21:18.963026', "updated_at" = '2013-07-17 21:21:18.963026', "auth_token" = 'W7FU1VrW7B4Z7EkjWv6i' WHERE "public"."cadenero_members"."id" = 767  (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" = 766 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 766 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 766 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" = 766 Completed 201 Created in 116ms (Views: 5.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/766" for 127.0.0.1 at 2013-07-17 16:21:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"766"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 620 AND "public"."cadenero_users"."id" = 766 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 766 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 766 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 766 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 766 Completed 200 OK in 14ms (Views: 6.0ms | ActiveRecord: 3.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21: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" = 766 LIMIT 1 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 766 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 766 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" = 766 Completed 201 Created in 10ms (Views: 5.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  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$C2imKH2xfMzOXqmfTrvJeeo9kbRl2p68m.MPOyw21QBv32xfD8cDq"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 767], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qrRYD1vLXrFFkwJguEJ3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 767, "created_at" = '2013-07-17 21:21:19.138952', "updated_at" = '2013-07-17 21:21:19.138952', "authentication_token" = 'qrRYD1vLXrFFkwJguEJ3' WHERE "public"."cadenero_accounts"."id" = 621  (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", 621], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["user_id", 767]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iWM6RG8yJRTyM5BnwVQG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 621, "user_id" = 767, "created_at" = '2013-07-17 21:21:19.144442', "updated_at" = '2013-07-17 21:21:19.144442', "auth_token" = 'iWM6RG8yJRTyM5BnwVQG' WHERE "public"."cadenero_members"."id" = 768  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (2.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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.6ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21: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-17 16:21: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" = '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", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$pek0UeDluS8kBkhAVdOPc.oHrP0VuTq4Tzkks//vudYtwFcQfA.bW"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 621], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["user_id", 768]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'deqPcDvycCCE5PyA4rpv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 621, "user_id" = 768, "created_at" = '2013-07-17 21:21:19.334922', "updated_at" = '2013-07-17 21:21:19.334922', "auth_token" = 'deqPcDvycCCE5PyA4rpv' WHERE "public"."cadenero_members"."id" = 769  (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" = 768 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 768 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 768 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" = 768 Completed 201 Created in 131ms (Views: 6.4ms | 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/768" for 127.0.0.1 at 2013-07-17 16:21:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"768"} 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" = 621 AND "public"."cadenero_users"."id" = 768 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 768 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 768 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 768 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 768 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21: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" = 768 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 768 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 768 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" = 768 Completed 201 Created in 9ms (Views: 5.7ms | 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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:21: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" = 768 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$gy.iHWoZOKGQkYg.qEQWg.B1WDrdw0gPBfD1OSvOl/baL5HS25VJ2"], ["updated_at", Wed, 17 Jul 2013 21:21: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" = '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", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 769], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '62k1sf1xyVbgx2mz4Jou' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 769, "created_at" = '2013-07-17 21:21:19.504852', "updated_at" = '2013-07-17 21:21:19.504852', "authentication_token" = '62k1sf1xyVbgx2mz4Jou' WHERE "public"."cadenero_accounts"."id" = 622  (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", 622], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["user_id", 769]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LxJBVZQuQyqxmVNAZ6BC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 622, "user_id" = 769, "created_at" = '2013-07-17 21:21:19.510305', "updated_at" = '2013-07-17 21:21:19.510305', "auth_token" = 'LxJBVZQuQyqxmVNAZ6BC' WHERE "public"."cadenero_members"."id" = 770  (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.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.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")  (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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21: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-17 16:21:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 622 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  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$zKFyg3k9sSMUgsKvbpA6euRhIEgBGtb4/RGwU8rcDPaKHc7Uz9mSm"], ["updated_at", Wed, 17 Jul 2013 21:21: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" = '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", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 770], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wdQfVrHpqoEKLPuDaPMQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 770, "created_at" = '2013-07-17 21:21:19.737800', "updated_at" = '2013-07-17 21:21:19.737800', "authentication_token" = 'wdQfVrHpqoEKLPuDaPMQ' WHERE "public"."cadenero_accounts"."id" = 623  (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", 623], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["user_id", 770]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sEzpxxEphCBS2LC3J4wh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 623, "user_id" = 770, "created_at" = '2013-07-17 21:21:19.743456', "updated_at" = '2013-07-17 21:21:19.743456', "auth_token" = 'sEzpxxEphCBS2LC3J4wh' WHERE "public"."cadenero_members"."id" = 771  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)   (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, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$1IKN8yPFovX1L0mqa3FCI.3kIXKdOyxRONXC2K9YvCu5OWFsvC5W6"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 771], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oH7e8NngRL7s8URsxBty' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 771, "created_at" = '2013-07-17 21:21:19.908240', "updated_at" = '2013-07-17 21:21:19.908240', "authentication_token" = 'oH7e8NngRL7s8URsxBty' WHERE "public"."cadenero_accounts"."id" = 624  (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", 624], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:19 UTC +00:00], ["user_id", 771]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nwNTyXrJh3xKQSnPqpTo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 624, "user_id" = 771, "created_at" = '2013-07-17 21:21:19.913805', "updated_at" = '2013-07-17 21:21:19.913805', "auth_token" = 'nwNTyXrJh3xKQSnPqpTo' WHERE "public"."cadenero_members"."id" = 772  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21: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-17 16:21: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 (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" = 623 AND "public"."cadenero_users"."email" = 'user7@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  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$rYfC7CRTjAbGaeSMEN01tOgKNBa27/OchR.rE8lRDFJYGrhtejpIC"], ["updated_at", Wed, 17 Jul 2013 21:21: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.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", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 772], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ekdBSFBW9cHtHx3y4z85' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 772, "created_at" = '2013-07-17 21:21:20.076001', "updated_at" = '2013-07-17 21:21:20.076001', "authentication_token" = 'ekdBSFBW9cHtHx3y4z85' WHERE "public"."cadenero_accounts"."id" = 625  (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", 625], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["user_id", 772]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DJuUr5hDqGjxjaq4PryD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 625, "user_id" = 772, "created_at" = '2013-07-17 21:21:20.081598', "updated_at" = '2013-07-17 21:21:20.081598', "auth_token" = 'DJuUr5hDqGjxjaq4PryD' WHERE "public"."cadenero_members"."id" = 773  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (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.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) 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-17 16:21: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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$GaKRreR9fkIqdcjSxhPwVeqDKw2QWYXpBxVtJ5fkRAuAPMN/ddVFO"], ["updated_at", Wed, 17 Jul 2013 21:21: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.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", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 773], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XyVqpttBtpzALhxMTXjz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 773, "created_at" = '2013-07-17 21:21:20.245521', "updated_at" = '2013-07-17 21:21:20.245521', "authentication_token" = 'XyVqpttBtpzALhxMTXjz' WHERE "public"."cadenero_accounts"."id" = 626  (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", 626], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["user_id", 773]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FjLHyd1XWp2sf8sMx1gj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 626, "user_id" = 773, "created_at" = '2013-07-17 21:21:20.250928', "updated_at" = '2013-07-17 21:21:20.250928', "auth_token" = 'FjLHyd1XWp2sf8sMx1gj' WHERE "public"."cadenero_members"."id" = 774  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:21: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 626 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$N3ZywZzvFMS2hwvmDc/R3u0gcMBxZgPWdw.MTQqcEU1hh3xinYdES"], ["updated_at", Wed, 17 Jul 2013 21:21: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" = '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", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 774], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ajtHDFGNvipCtbpptkrG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 774, "created_at" = '2013-07-17 21:21:20.428703', "updated_at" = '2013-07-17 21:21:20.428703', "authentication_token" = 'ajtHDFGNvipCtbpptkrG' WHERE "public"."cadenero_accounts"."id" = 627  (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", 627], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:21:20 UTC +00:00], ["user_id", 774]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZCXHTqy3vq6BMydsJGWV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 627, "user_id" = 774, "created_at" = '2013-07-17 21:21:20.434090', "updated_at" = '2013-07-17 21:21:20.434090', "auth_token" = 'ZCXHTqy3vq6BMydsJGWV' WHERE "public"."cadenero_members"."id" = 775  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:21: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 774 Started GET "/v1?auth_token[]=ZCXHTqy3vq6BMydsJGWV" for 127.0.0.1 at 2013-07-17 16:21:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ZCXHTqy3vq6BMydsJGWV"], "default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.7ms) ROLLBACK Connecting to database specified by database.yml  (1.6ms) BEGIN  (0.2ms) COMMIT  (1.3ms) BEGIN  (3.7ms) SAVEPOINT active_record_1 SQL (13.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$YA.zZF0kbruhyBs4wP/kl.42Lfn.3nxYz/fRzrwLC50XUUTXPJVmq"], ["updated_at", Wed, 17 Jul 2013 21:22:27 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" = 'test1' 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", Wed, 17 Jul 2013 21:22:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 775], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:22:27 UTC +00:00]] Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8qz6sNxPGG6MwTJkqVeA' LIMIT 1  (11.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 775, "created_at" = '2013-07-17 21:22:27.362029', "updated_at" = '2013-07-17 21:22:27.362029', "authentication_token" = '8qz6sNxPGG6MwTJkqVeA' WHERE "public"."cadenero_accounts"."id" = 628  (2.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (15.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", 628], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:27 UTC +00:00], ["user_id", 775]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zVzoxVUBWWCBiToVCPkB' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 628, "user_id" = 775, "created_at" = '2013-07-17 21:22:27.530956', "updated_at" = '2013-07-17 21:22:27.530956', "auth_token" = 'zVzoxVUBWWCBiToVCPkB' WHERE "public"."cadenero_members"."id" = 776  (3.6ms) RELEASE SAVEPOINT active_record_1  (3.8ms) CREATE SCHEMA "test1"  (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)   (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")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (7.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:27 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (5.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 628 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" = 775 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 775 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 775 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" = 775 Completed 201 Created in 195ms (Views: 32.2ms | ActiveRecord: 8.8ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 628 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22:27 -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" = 775 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (13.6ms) ROLLBACK  (10.1ms) BEGIN  (6.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$HLQeNs1092DJ9RL9RbDAMetejWzh.6sVRbkpu8ifpzjSnfgwojn4u"], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 776], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nyrdzPSWu4NWAPHMGFp5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 776, "created_at" = '2013-07-17 21:22:28.184364', "updated_at" = '2013-07-17 21:22:28.184364', "authentication_token" = 'nyrdzPSWu4NWAPHMGFp5' WHERE "public"."cadenero_accounts"."id" = 629  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 629], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["user_id", 776]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DsonnJTHo7syxrjUWSsR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 629, "user_id" = 776, "created_at" = '2013-07-17 21:22:28.191785', "updated_at" = '2013-07-17 21:22:28.191785', "auth_token" = 'DsonnJTHo7syxrjUWSsR' WHERE "public"."cadenero_members"."id" = 777  (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)  (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.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.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:22:28 -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.8ms) 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", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$9yXFRGWLoafeUyprIcLEm.ai1/caEBgyri5dmBXF68Z7qZogQllQG"], ["updated_at", Wed, 17 Jul 2013 21:22:28 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", 629], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["user_id", 777]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QNLcRpmzR6zg2sjdRjCk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 629, "user_id" = 777, "created_at" = '2013-07-17 21:22:28.362141', "updated_at" = '2013-07-17 21:22:28.362141', "auth_token" = 'QNLcRpmzR6zg2sjdRjCk' WHERE "public"."cadenero_members"."id" = 778  (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" = 777 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 777 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 777 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" = 777 Completed 201 Created in 117ms (Views: 6.4ms | ActiveRecord: 6.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/777" for 127.0.0.1 at 2013-07-17 16:22:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"777"} 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" = 629 AND "public"."cadenero_users"."id" = 777 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 777 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 777 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 777 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 777 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:28 -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" = 777 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 777 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 777 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 777 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22:28 -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" = 777 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.8ms) ROLLBACK  (0.5ms) BEGIN  (1.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$mKiIF18Pl2B001gbq4pyf.C.pPDLnP9pY5hdyHiVBCN/iZEHoLxzm"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = '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", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 778], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9eCHytqcR4qtFSLqEMXn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 778, "created_at" = '2013-07-17 21:22:28.552092', "updated_at" = '2013-07-17 21:22:28.552092', "authentication_token" = '9eCHytqcR4qtFSLqEMXn' WHERE "public"."cadenero_accounts"."id" = 630  (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", 630], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["user_id", 778]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Mye2CugW32anK7hnhgyn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 630, "user_id" = 778, "created_at" = '2013-07-17 21:22:28.558329', "updated_at" = '2013-07-17 21:22:28.558329', "auth_token" = 'Mye2CugW32anK7hnhgyn' WHERE "public"."cadenero_members"."id" = 779  (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)   (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")  (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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) 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-17 16:22: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 630 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" = 778 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 778 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 778 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 778 Completed 201 Created in 110ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 630 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:28 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"778", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 778 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.3ms) ROLLBACK  (1.8ms) BEGIN  (8.2ms) COMMIT  (5.7ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$EooNY1fRfeHrCcYltLuFh.Wm0MeALPkguMfZzbCXxP/sjfycXViPe"], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 779], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'svR7xp2tqgw2z8siCyjm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 779, "created_at" = '2013-07-17 21:22:28.902982', "updated_at" = '2013-07-17 21:22:28.902982', "authentication_token" = 'svR7xp2tqgw2z8siCyjm' WHERE "public"."cadenero_accounts"."id" = 631  (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", 631], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:28 UTC +00:00], ["user_id", 779]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5U6kfAt8N3W2YeyG8qLA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 631, "user_id" = 779, "created_at" = '2013-07-17 21:22:28.908760', "updated_at" = '2013-07-17 21:22:28.908760', "auth_token" = '5U6kfAt8N3W2YeyG8qLA' WHERE "public"."cadenero_members"."id" = 780  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.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, "auth_token" character varying(255))   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:28 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 631 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 779 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 779 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 779 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 779 Completed 201 Created in 111ms (Views: 5.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 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 631 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"779", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 779 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:22:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$IRRgAsazLtvDeU5up7rHZ.w0/r971.tKhB.fm6S7j1u6p0BXqOdj2"], ["updated_at", Wed, 17 Jul 2013 21:22:29 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", 631], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["user_id", 780]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XqbCSQV5DDezpLKp6x3c' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 631, "user_id" = 780, "created_at" = '2013-07-17 21:22:29.207675', "updated_at" = '2013-07-17 21:22:29.207675', "auth_token" = 'XqbCSQV5DDezpLKp6x3c' WHERE "public"."cadenero_members"."id" = 781  (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" = 780 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 780 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 780 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 780 Completed 201 Created in 114ms (Views: 6.3ms | 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/780" for 127.0.0.1 at 2013-07-17 16:22:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"780"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.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" = 631 AND "public"."cadenero_users"."id" = 780 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 780 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 780 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 780 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" = 780 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:29 -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" = 780 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 780 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 780 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 780 Completed 201 Created in 8ms (Views: 5.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  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$G2VTqw56BFDldgAOpOKETO477yKMmD6dqHktngslPzRxKLs/ShaJi"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = 'test5' 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", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 781], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xaGyiatqmYVhRboqN9B7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 781, "created_at" = '2013-07-17 21:22:29.417795', "updated_at" = '2013-07-17 21:22:29.417795', "authentication_token" = 'xaGyiatqmYVhRboqN9B7' WHERE "public"."cadenero_accounts"."id" = 632  (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", 632], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["user_id", 781]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iw2VUmzyDWNKaX8mnqKj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 632, "user_id" = 781, "created_at" = '2013-07-17 21:22:29.431443', "updated_at" = '2013-07-17 21:22:29.431443', "auth_token" = 'iw2VUmzyDWNKaX8mnqKj' WHERE "public"."cadenero_members"."id" = 782  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (63.4ms) 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22: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-17 16:22: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 ('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" = 632 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (20.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$n.rrD/rTp4ekSVlyew1uv.l0rrToPnzxXRvedJxh4fhdf1qbKDqtq"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = '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", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 782], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GYhehC7RyiChyqsp6JzK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 782, "created_at" = '2013-07-17 21:22:29.773185', "updated_at" = '2013-07-17 21:22:29.773185', "authentication_token" = 'GYhehC7RyiChyqsp6JzK' WHERE "public"."cadenero_accounts"."id" = 633  (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", 633], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["user_id", 782]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KjvgRdTTxuzSDqjyCf4P' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 633, "user_id" = 782, "created_at" = '2013-07-17 21:22:29.778871', "updated_at" = '2013-07-17 21:22:29.778871', "auth_token" = 'KjvgRdTTxuzSDqjyCf4P' WHERE "public"."cadenero_members"."id" = 783  (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")  (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.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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22: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-17 16:22: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 ('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" = 633 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$D0d3OZeYFi8z2gaywCWgZejDzGBilnMyZOWRN6iY8kFYsJNr4pSJC"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = '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", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 783], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WLafXjpXZJeQHNJ4cZph' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 783, "created_at" = '2013-07-17 21:22:29.956446', "updated_at" = '2013-07-17 21:22:29.956446', "authentication_token" = 'WLafXjpXZJeQHNJ4cZph' WHERE "public"."cadenero_accounts"."id" = 634  (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", 634], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:29 UTC +00:00], ["user_id", 783]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kSMWfFZBTFzemnzWyXZb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 634, "user_id" = 783, "created_at" = '2013-07-17 21:22:29.961973', "updated_at" = '2013-07-17 21:22:29.961973', "auth_token" = 'kSMWfFZBTFzemnzWyXZb' WHERE "public"."cadenero_members"."id" = 784  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) 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.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)  (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')  (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", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$IWINthdlUziKAzRbVNQsxOgcN.XqBosHJTtAq1KmQiBU4moBHbaRq"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = '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", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 784], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2PTomTzEMMuVRuZ5VoB1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 784, "created_at" = '2013-07-17 21:22:30.111603', "updated_at" = '2013-07-17 21:22:30.111603', "authentication_token" = '2PTomTzEMMuVRuZ5VoB1' WHERE "public"."cadenero_accounts"."id" = 635  (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", 635], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["user_id", 784]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zLyaoZ259XxBzQnKwks4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 635, "user_id" = 784, "created_at" = '2013-07-17 21:22:30.116772', "updated_at" = '2013-07-17 21:22:30.116772', "auth_token" = 'zLyaoZ259XxBzQnKwks4' WHERE "public"."cadenero_members"."id" = 785  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22: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-17 16:22:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 634 AND "public"."cadenero_users"."email" = 'user8@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  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$kgkXh3nKQKIzvMvxxAQJYOXYrixEa9jhQPJ91wKJD8O8rtlEYSncS"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = '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", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 785], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PKDRHxsz9XCygxvD6shj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 785, "created_at" = '2013-07-17 21:22:30.247928', "updated_at" = '2013-07-17 21:22:30.247928', "authentication_token" = 'PKDRHxsz9XCygxvD6shj' WHERE "public"."cadenero_accounts"."id" = 636  (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", 636], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["user_id", 785]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fQpRyNnrgmedbsvDPGRw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 636, "user_id" = 785, "created_at" = '2013-07-17 21:22:30.253394', "updated_at" = '2013-07-17 21:22:30.253394', "auth_token" = 'fQpRyNnrgmedbsvDPGRw' WHERE "public"."cadenero_members"."id" = 786  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:22:30 -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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$p6psRdViJE7xOmd5MAyZTeIOjRCmBLRkA7yfRJ1P9hhDPeVSvlYxi"], ["updated_at", Wed, 17 Jul 2013 21:22: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" = '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", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 786], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zqApuyyp4tbgwbzQJiGj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 786, "created_at" = '2013-07-17 21:22:30.420983', "updated_at" = '2013-07-17 21:22:30.420983', "authentication_token" = 'zqApuyyp4tbgwbzQJiGj' WHERE "public"."cadenero_accounts"."id" = 637  (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", 637], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:22:30 UTC +00:00], ["user_id", 786]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FZZpPnm5NmkDgRvzVLkq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 637, "user_id" = 786, "created_at" = '2013-07-17 21:22:30.426639', "updated_at" = '2013-07-17 21:22:30.426639', "auth_token" = 'FZZpPnm5NmkDgRvzVLkq' WHERE "public"."cadenero_members"."id" = 787  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:22: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 786 Started GET "/v1?auth_token[]=FZZpPnm5NmkDgRvzVLkq" for 127.0.0.1 at 2013-07-17 16:22:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FZZpPnm5NmkDgRvzVLkq"], "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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 637 Completed 500 Internal Server Error in 5ms  (4.3ms) ROLLBACK Connecting to database specified by database.yml  (2.4ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (21.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$7VvFd6ZrDju.7ZQ97enV2ul6XlywWmlmDyVp5Eq1Jmp6gqVvK1Ttq"], ["updated_at", Wed, 17 Jul 2013 21:23:24 UTC +00:00]]  (5.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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 (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", Wed, 17 Jul 2013 21:23:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 787], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:23:24 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xoApP4TX2jdvJ31hPaSk' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 787, "created_at" = '2013-07-17 21:23:24.242906', "updated_at" = '2013-07-17 21:23:24.242906', "authentication_token" = 'xoApP4TX2jdvJ31hPaSk' WHERE "public"."cadenero_accounts"."id" = 638  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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", 638], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:24 UTC +00:00], ["user_id", 787]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x8Xd7HvAmCKvtZUfLUsE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 638, "user_id" = 787, "created_at" = '2013-07-17 21:23:24.431006', "updated_at" = '2013-07-17 21:23:24.431006', "auth_token" = 'x8Xd7HvAmCKvtZUfLUsE' WHERE "public"."cadenero_members"."id" = 788  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.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")  (11.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))  (4.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (18.7ms) 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")  (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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:23:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (6.8ms) 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" = 638 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" = 787 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 787 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 787 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" = 787 Completed 201 Created in 263ms (Views: 68.9ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 638 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-17 16:23:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"787", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 787 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16: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/users" for 127.0.0.1 at 2013-07-17 16:23:24 -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", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$C4yEq082ZuXCQzOVmtSf/uYnHoL2xwTd2Ik7bH3cUOPdebqsrxTuK"], ["updated_at", Wed, 17 Jul 2013 21:23:25 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", 638], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["user_id", 788]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bCE5ZVsbtmq9qCoXtWoZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 638, "user_id" = 788, "created_at" = '2013-07-17 21:23:25.005047', "updated_at" = '2013-07-17 21:23:25.005047', "auth_token" = 'bCE5ZVsbtmq9qCoXtWoZ' WHERE "public"."cadenero_members"."id" = 789  (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" = 788 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 788 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 788 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 788 Completed 201 Created in 114ms (Views: 5.9ms | ActiveRecord: 3.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/788" for 127.0.0.1 at 2013-07-17 16:23:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"788"} 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.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" = 638 AND "public"."cadenero_users"."id" = 788 LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 788 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 788 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 788 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 788 Completed 200 OK in 14ms (Views: 6.2ms | ActiveRecord: 3.1ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:23:25 -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" = 788 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 788 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 788 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 788 Completed 201 Created in 7ms (Views: 4.8ms | 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.9ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$aE81cPk1i71VnHjNrkMMkuA/.ppWion6fQ2GCFdZXl9iYucmdhyfq"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 789], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mizdoQQs9uTgghf39BBp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 789, "created_at" = '2013-07-17 21:23:25.179113', "updated_at" = '2013-07-17 21:23:25.179113', "authentication_token" = 'mizdoQQs9uTgghf39BBp' WHERE "public"."cadenero_accounts"."id" = 639  (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", 639], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["user_id", 789]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oefXSCiV3qjsVaFwNyqg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 639, "user_id" = 789, "created_at" = '2013-07-17 21:23:25.184471', "updated_at" = '2013-07-17 21:23:25.184471', "auth_token" = 'oefXSCiV3qjsVaFwNyqg' WHERE "public"."cadenero_members"."id" = 790  (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.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.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")  (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.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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:23: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 (2.6ms) 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" = 639 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" = 789 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 789 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 789 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 789 Completed 201 Created in 111ms (Views: 5.7ms | 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' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 639 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:23:25 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"789", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 789 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$akyaoRDayKztpJNEdMNPduZThVg0aAA86VG0Ib1zWmq2bcyPUZR4S"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 790], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ivPCZwxgpx12261nmxMK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 790, "created_at" = '2013-07-17 21:23:25.488754', "updated_at" = '2013-07-17 21:23:25.488754', "authentication_token" = 'ivPCZwxgpx12261nmxMK' WHERE "public"."cadenero_accounts"."id" = 640  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 640], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["user_id", 790]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LS5eLw4i7XbdzayJ73MB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 640, "user_id" = 790, "created_at" = '2013-07-17 21:23:25.494420', "updated_at" = '2013-07-17 21:23:25.494420', "auth_token" = 'LS5eLw4i7XbdzayJ73MB' WHERE "public"."cadenero_members"."id" = 791  (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")  (5.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, "auth_token" character varying(255))   (3.8ms) 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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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/users" for 127.0.0.1 at 2013-07-17 16:23:25 -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", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$l8aRQEnG/iSdtuKH22chZOWd1AXZ8IUXodwbNjHpGyfUK75UD.UN2"], ["updated_at", Wed, 17 Jul 2013 21:23:25 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", 640], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["user_id", 791]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '68hew4fHuzDDb8GNRdRs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 640, "user_id" = 791, "created_at" = '2013-07-17 21:23:25.674708', "updated_at" = '2013-07-17 21:23:25.674708', "auth_token" = '68hew4fHuzDDb8GNRdRs' WHERE "public"."cadenero_members"."id" = 792  (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" = 791 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 791 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 791 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 791 Completed 201 Created in 116ms (Views: 6.0ms | 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/791" for 127.0.0.1 at 2013-07-17 16:23:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"791"} 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" = 640 AND "public"."cadenero_users"."id" = 791 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 791 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 791 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 791 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" = 791 Completed 200 OK in 11ms (Views: 5.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-17 16:23:25 -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" = 791 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 791 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 791 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 791 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-17 16:23:25 -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" = 791 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.5ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ts7YFrAz/5vQWW0K7ijJa.BgQzR1/XwT4u04bb4B5KwtoUrxShVii"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 792], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YqgQxzJWHDDcjYXeKobB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 792, "created_at" = '2013-07-17 21:23:25.849925', "updated_at" = '2013-07-17 21:23:25.849925', "authentication_token" = 'YqgQxzJWHDDcjYXeKobB' WHERE "public"."cadenero_accounts"."id" = 641  (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", 641], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:25 UTC +00:00], ["user_id", 792]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XamTKX7xutbpzU3tAnT3' LIMIT 1  (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 641, "user_id" = 792, "created_at" = '2013-07-17 21:23:25.855618', "updated_at" = '2013-07-17 21:23:25.855618', "auth_token" = 'XamTKX7xutbpzU3tAnT3' WHERE "public"."cadenero_members"."id" = 793  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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")  (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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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-17 16:23:25 -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.2ms) 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" = 641 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" = 792 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 792 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 792 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 792 Completed 201 Created in 115ms (Views: 6.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 641 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23:26 -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" = 792 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (10.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$LTMijwTy6YSljjRiUi7LnueBTg6tWqKRC4jkvQDrnlt8qz66jRnyC"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 793], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9zbRtprYpuNZvtqLwGmU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 793, "created_at" = '2013-07-17 21:23:26.177383', "updated_at" = '2013-07-17 21:23:26.177383', "authentication_token" = '9zbRtprYpuNZvtqLwGmU' WHERE "public"."cadenero_accounts"."id" = 642  (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", 642], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["user_id", 793]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fhR2L5ppWMydqTqLZEM3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 642, "user_id" = 793, "created_at" = '2013-07-17 21:23:26.182893', "updated_at" = '2013-07-17 21:23:26.182893', "auth_token" = 'fhR2L5ppWMydqTqLZEM3' WHERE "public"."cadenero_members"."id" = 794  (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.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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) 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.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:23:26 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$D1Pdgaj/9KAVtQ2LuZn8iuFq/HFNWKoQETkrKTh7GkPYkMdJ51TlS"], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 794], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8KEQHVhwYqNLGydZN4aR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 794, "created_at" = '2013-07-17 21:23:26.389992', "updated_at" = '2013-07-17 21:23:26.389992', "authentication_token" = '8KEQHVhwYqNLGydZN4aR' WHERE "public"."cadenero_accounts"."id" = 643  (0.2ms) 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", 643], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["user_id", 794]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'd9zkx1CSusUctXp7rd7w' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 643, "user_id" = 794, "created_at" = '2013-07-17 21:23:26.452287', "updated_at" = '2013-07-17 21:23:26.452287', "auth_token" = 'd9zkx1CSusUctXp7rd7w' WHERE "public"."cadenero_members"."id" = 795  (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.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.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.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')  (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", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kZ.kq4W2l0/eJf.ZJ1eXZOC9FnJE/T2c.1g.RCWTv5P17CUR2qAOi"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 795], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's2NzaFmHdcqxqvDuwdWf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 795, "created_at" = '2013-07-17 21:23:26.607139', "updated_at" = '2013-07-17 21:23:26.607139', "authentication_token" = 's2NzaFmHdcqxqvDuwdWf' WHERE "public"."cadenero_accounts"."id" = 644  (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", 644], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["user_id", 795]] Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'irJauqYGwH4Ck6rhtzgc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 644, "user_id" = 795, "created_at" = '2013-07-17 21:23:26.612438', "updated_at" = '2013-07-17 21:23:26.612438', "auth_token" = 'irJauqYGwH4Ck6rhtzgc' WHERE "public"."cadenero_members"."id" = 796  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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-17 16:23: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 643 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (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.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Fpbmw/ocRYwbpTGZY/amteCA3BhdD0oVcegIsIdb4UyaxpTLu6hha"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 796], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '12UsbgixyJz7MmgvLsxd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 796, "created_at" = '2013-07-17 21:23:26.744268', "updated_at" = '2013-07-17 21:23:26.744268', "authentication_token" = '12UsbgixyJz7MmgvLsxd' WHERE "public"."cadenero_accounts"."id" = 645  (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", 645], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["user_id", 796]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yL9cuz2budv4ePVWqRdi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 645, "user_id" = 796, "created_at" = '2013-07-17 21:23:26.749700', "updated_at" = '2013-07-17 21:23:26.749700', "auth_token" = 'yL9cuz2budv4ePVWqRdi' WHERE "public"."cadenero_members"."id" = 797  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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")  (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, "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")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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-17 16:23: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 645 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Q1/SgSpZwOV1d49rM5LZH.JYT6YUnY.RXgexz2L21J3WO68.ZFQBe"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 797], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dFTq3sc9xWhVrfXVqtgF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 797, "created_at" = '2013-07-17 21:23:26.930418', "updated_at" = '2013-07-17 21:23:26.930418', "authentication_token" = 'dFTq3sc9xWhVrfXVqtgF' WHERE "public"."cadenero_accounts"."id" = 646  (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", 646], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:26 UTC +00:00], ["user_id", 797]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UpZB3u9g5EdygMTRd5Hy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 646, "user_id" = 797, "created_at" = '2013-07-17 21:23:26.935929', "updated_at" = '2013-07-17 21:23:26.935929', "auth_token" = 'UpZB3u9g5EdygMTRd5Hy' WHERE "public"."cadenero_members"."id" = 798  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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.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")  (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)  (2.0ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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-17 16:23: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 ('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" = 646 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.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:23:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$QEt5eTwL6i0V0BCSlQv07.xazesrGvNXNkSSOBSW4D1HpL3oWpjBS"], ["updated_at", Wed, 17 Jul 2013 21:23: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" = '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", Wed, 17 Jul 2013 21:23:27 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 798], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:23:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BH2m4H8snr7Br8rjMUfp' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 798, "created_at" = '2013-07-17 21:23:27.116417', "updated_at" = '2013-07-17 21:23:27.116417', "authentication_token" = 'BH2m4H8snr7Br8rjMUfp' WHERE "public"."cadenero_accounts"."id" = 647  (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", 647], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:23:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:23:27 UTC +00:00], ["user_id", 798]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8f2ijN5aofbwgkQH7qXo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 647, "user_id" = 798, "created_at" = '2013-07-17 21:23:27.124661', "updated_at" = '2013-07-17 21:23:27.124661', "auth_token" = '8f2ijN5aofbwgkQH7qXo' WHERE "public"."cadenero_members"."id" = 799  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:23: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 798 Started GET "/v1?auth_token[]=8f2ijN5aofbwgkQH7qXo" for 127.0.0.1 at 2013-07-17 16:23:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["8f2ijN5aofbwgkQH7qXo"], "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 (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" = 647 AND ('auth_token') LIMIT 1 PG::Error: ERROR: invalid input syntax for type boolean: "auth_token" LINE 1: ...ublic"."cadenero_members"."account_id" = 647 AND ('auth_toke... ^ : SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 647 AND ('auth_token') LIMIT 1 Completed 500 Internal Server Error in 9ms PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SET search_path TO "public" Connecting to database specified by database.yml  (0.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (6.4ms) 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", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$rF5dH/tZpnjMm9QoLct4eOC17H9PNt89NE/wcVruA1hIiZQ1lx63e"], ["updated_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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 (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", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 799], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00]] Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uSiCEUNjXptE65jHxoYE' LIMIT 1  (1.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 799, "created_at" = '2013-07-17 21:24:24.221648', "updated_at" = '2013-07-17 21:24:24.221648', "authentication_token" = 'uSiCEUNjXptE65jHxoYE' WHERE "public"."cadenero_accounts"."id" = 648  (0.7ms) RELEASE SAVEPOINT active_record_1  (4.2ms) 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", 648], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["user_id", 799]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qxA4NdiTwSrYSvsAofuV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 648, "user_id" = 799, "created_at" = '2013-07-17 21:24:24.405915', "updated_at" = '2013-07-17 21:24:24.405915', "auth_token" = 'qxA4NdiTwSrYSvsAofuV' WHERE "public"."cadenero_members"."id" = 800  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:24:24 -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" = 648 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" = 799 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 799 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 799 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 799 Completed 201 Created in 144ms (Views: 29.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::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 648 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24: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" = 799 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (2.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8VjsMSOLJpwCKcCyizH3UuHKd/8kwIYmAKgxVgbPsDqlH9m.ZrN3u"], ["updated_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 800], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nCTBxnqf9zDN2k8NpRDF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 800, "created_at" = '2013-07-17 21:24:24.851664', "updated_at" = '2013-07-17 21:24:24.851664', "authentication_token" = 'nCTBxnqf9zDN2k8NpRDF' WHERE "public"."cadenero_accounts"."id" = 649  (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", 649], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:24 UTC +00:00], ["user_id", 800]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GBB7WHM8QCpUNvvavjF8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 649, "user_id" = 800, "created_at" = '2013-07-17 21:24:24.857704', "updated_at" = '2013-07-17 21:24:24.857704', "auth_token" = 'GBB7WHM8QCpUNvvavjF8' WHERE "public"."cadenero_members"."id" = 801  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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.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.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:24:24 -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", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CCT6.hoeJ5p00UNQBu/m8eaSlOO7Pz6iel33C/d2JuIxexq9ntRXy"], ["updated_at", Wed, 17 Jul 2013 21:24:25 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", 649], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["user_id", 801]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Tvi8YKdywtgoR8Epc1Eu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 649, "user_id" = 801, "created_at" = '2013-07-17 21:24:25.041106', "updated_at" = '2013-07-17 21:24:25.041106', "auth_token" = 'Tvi8YKdywtgoR8Epc1Eu' WHERE "public"."cadenero_members"."id" = 802  (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" = 801 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 801 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 801 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 801 Completed 201 Created in 117ms (Views: 6.0ms | 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/801" for 127.0.0.1 at 2013-07-17 16:24:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"801"} 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" = 649 AND "public"."cadenero_users"."id" = 801 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 801 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 801 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 801 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 801 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:24:25 -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" = 801 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 801 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 801 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" = 801 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24:25 -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" = 801 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$mraDfRP6lZq/KVvCESCsrOq7YtCOdigyBNcvo8r4kRFp/4bfLqIwG"], ["updated_at", Wed, 17 Jul 2013 21:24: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.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", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 802], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ixWMi4kFywF48Wh8HQoY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 802, "created_at" = '2013-07-17 21:24:25.210661', "updated_at" = '2013-07-17 21:24:25.210661', "authentication_token" = 'ixWMi4kFywF48Wh8HQoY' WHERE "public"."cadenero_accounts"."id" = 650  (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", 650], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["user_id", 802]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2pjDqr34sEG1xjjQcjys' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 650, "user_id" = 802, "created_at" = '2013-07-17 21:24:25.216093', "updated_at" = '2013-07-17 21:24:25.216093', "auth_token" = '2pjDqr34sEG1xjjQcjys' WHERE "public"."cadenero_members"."id" = 803  (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")  (2.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, "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")  (0.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)  (1.1ms) 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"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:24: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.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" = 650 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" = 802 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 802 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 802 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 802 Completed 201 Created in 111ms (Views: 5.5ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 650 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-17 16:24:25 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"802", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 802 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24: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/users" for 127.0.0.1 at 2013-07-17 16:24:25 -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" = '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", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$/fzeL5vXWu3KnvieKCaI2eEGoTiabSMgKeiAdQARArhb9U7fZpu6q"], ["updated_at", Wed, 17 Jul 2013 21:24:25 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", 650], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["user_id", 803]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x1Y8AX2JMzAhpGid6Qsb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 650, "user_id" = 803, "created_at" = '2013-07-17 21:24:25.517926', "updated_at" = '2013-07-17 21:24:25.517926', "auth_token" = 'x1Y8AX2JMzAhpGid6Qsb' WHERE "public"."cadenero_members"."id" = 804  (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" = 803 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 803 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 803 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" = 803 Completed 201 Created in 116ms (Views: 5.8ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/803" for 127.0.0.1 at 2013-07-17 16:24:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"803"} 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" = 650 AND "public"."cadenero_users"."id" = 803 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 803 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 803 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 803 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" = 803 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:24:25 -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" = 803 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 803 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 803 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 803 Completed 201 Created in 7ms (Views: 5.0ms | 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  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.7ms) 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", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$xGL1fYEZjFhVZNtyo7OIqe2zzfellxP4nZZwa6P6Lhwbvfrg5TpR."], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 804], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PTHhqaAn1H7j77MUqRc9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 804, "created_at" = '2013-07-17 21:24:25.693072', "updated_at" = '2013-07-17 21:24:25.693072', "authentication_token" = 'PTHhqaAn1H7j77MUqRc9' WHERE "public"."cadenero_accounts"."id" = 651  (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", 651], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["user_id", 804]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bu3CScFosYyUt7iSqePQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 651, "user_id" = 804, "created_at" = '2013-07-17 21:24:25.699104', "updated_at" = '2013-07-17 21:24:25.699104', "auth_token" = 'bu3CScFosYyUt7iSqePQ' WHERE "public"."cadenero_members"."id" = 805  (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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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-17 16:24:25 -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" = 651 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" = 804 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 804 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 804 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 804 Completed 201 Created in 108ms (Views: 5.5ms | 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" = 651 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:24:25 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"804", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 804 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24: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)  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Itu5eHR4Yjz9Yx/lRhb4kO56hTWAzShlXyjFvFLELZqCAqHOwHGNa"], ["updated_at", Wed, 17 Jul 2013 21:24: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 (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", Wed, 17 Jul 2013 21:24:25 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 805], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:24:25 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G96ysRgnzr4jz16ymQY2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 805, "created_at" = '2013-07-17 21:24:25.998460', "updated_at" = '2013-07-17 21:24:25.998460', "authentication_token" = 'G96ysRgnzr4jz16ymQY2' WHERE "public"."cadenero_accounts"."id" = 652  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", 652], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["user_id", 805]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gBsYucdiQsyCPErxTxD3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 652, "user_id" = 805, "created_at" = '2013-07-17 21:24:26.005034', "updated_at" = '2013-07-17 21:24:26.005034', "auth_token" = 'gBsYucdiQsyCPErxTxD3' WHERE "public"."cadenero_members"."id" = 806  (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)  (0.8ms) 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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (23.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)  (11.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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24: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-17 16:24: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 652 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.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$MWNbAYrjtzW33l4QYD4.OuJPyMlWqcdKzLzaxrZSmRvw5WiMEPnHS"], ["updated_at", Wed, 17 Jul 2013 21:24: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" = '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", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 806], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gm4dXzcwvhsypLz6dysx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 806, "created_at" = '2013-07-17 21:24:26.289496', "updated_at" = '2013-07-17 21:24:26.289496', "authentication_token" = 'gm4dXzcwvhsypLz6dysx' WHERE "public"."cadenero_accounts"."id" = 653  (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", 653], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["user_id", 806]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vperMq3GuwbWSWCu8Dvg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 653, "user_id" = 806, "created_at" = '2013-07-17 21:24:26.295225', "updated_at" = '2013-07-17 21:24:26.295225', "auth_token" = 'vperMq3GuwbWSWCu8Dvg' WHERE "public"."cadenero_members"."id" = 807  (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.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, "auth_token" character varying(255))  (3.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.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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24: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-17 16:24: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 653 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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$luuSqChTeReZSyv62l7pfOnYyIV.20oWMHoW2F3nK0Z4WiET39IAy"], ["updated_at", Wed, 17 Jul 2013 21:24: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" = '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", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 807], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jpd1Xo86ZX9R28vx7umx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 807, "created_at" = '2013-07-17 21:24:26.473537', "updated_at" = '2013-07-17 21:24:26.473537', "authentication_token" = 'jpd1Xo86ZX9R28vx7umx' WHERE "public"."cadenero_accounts"."id" = 654  (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", 654], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["user_id", 807]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eqjsSuqwjyxsLxHnF25V' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 654, "user_id" = 807, "created_at" = '2013-07-17 21:24:26.478977', "updated_at" = '2013-07-17 21:24:26.478977', "auth_token" = 'eqjsSuqwjyxsLxHnF25V' WHERE "public"."cadenero_members"."id" = 808  (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.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")  (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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:24:26 -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  (5.3ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$fsool7x6gYQPjU/gczMxUuAlqYg1GVzRjhPkxfNEZLr8bXJFK0JI2"], ["updated_at", Wed, 17 Jul 2013 21:24: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" = '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", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 808], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zeQoZJCHxuKXffQvxRxV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 808, "created_at" = '2013-07-17 21:24:26.646689', "updated_at" = '2013-07-17 21:24:26.646689', "authentication_token" = 'zeQoZJCHxuKXffQvxRxV' WHERE "public"."cadenero_accounts"."id" = 655  (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", 655], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["user_id", 808]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wSQwh7URRzUq9TsH5tVS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 655, "user_id" = 808, "created_at" = '2013-07-17 21:24:26.652122', "updated_at" = '2013-07-17 21:24:26.652122', "auth_token" = 'wSQwh7URRzUq9TsH5tVS' WHERE "public"."cadenero_members"."id" = 809  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.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.6ms) 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.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", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$AhhzURyyqpYqQAE3Fk4O0uHZ/NeLC251ytWSPkwttmkKlOb2YQf5q"], ["updated_at", Wed, 17 Jul 2013 21:24: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" = '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", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 809], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ym1HrRyZTYDeaKHQKix5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 809, "created_at" = '2013-07-17 21:24:26.800152', "updated_at" = '2013-07-17 21:24:26.800152', "authentication_token" = 'ym1HrRyZTYDeaKHQKix5' WHERE "public"."cadenero_accounts"."id" = 656  (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", 656], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["user_id", 809]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'c1QXASqsavBgebBYn8yj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 656, "user_id" = 809, "created_at" = '2013-07-17 21:24:26.805334', "updated_at" = '2013-07-17 21:24:26.805334', "auth_token" = 'c1QXASqsavBgebBYn8yj' WHERE "public"."cadenero_members"."id" = 810  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:24: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-17 16:24:26 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 655 AND "public"."cadenero_users"."email" = 'user9@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  (5.7ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$b22MJ.LArq9vMrQZASEfIOsRwzST5wVmU2ymbAMN26qkFRwCOwG8q"], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 810], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '16GfmGvqqeVazWmc2uBB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 810, "created_at" = '2013-07-17 21:24:26.935300', "updated_at" = '2013-07-17 21:24:26.935300', "authentication_token" = '16GfmGvqqeVazWmc2uBB' WHERE "public"."cadenero_accounts"."id" = 657  (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", 657], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:24:26 UTC +00:00], ["user_id", 810]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vkPvyzyVbC9eTKq2JQQh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 657, "user_id" = 810, "created_at" = '2013-07-17 21:24:26.940727', "updated_at" = '2013-07-17 21:24:26.940727', "auth_token" = 'vkPvyzyVbC9eTKq2JQQh' WHERE "public"."cadenero_members"."id" = 811  (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")  (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))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) 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-17 16:24: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 810 Started GET "/v1?auth_token[]=vkPvyzyVbC9eTKq2JQQh" for 127.0.0.1 at 2013-07-17 16:24:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["vkPvyzyVbC9eTKq2JQQh"], "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::Member Load (4.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 657 AND ('auth_token') LIMIT 1 PG::Error: ERROR: invalid input syntax for type boolean: "auth_token" LINE 1: ...ublic"."cadenero_members"."account_id" = 657 AND ('auth_toke... ^ : SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 657 AND ('auth_token') LIMIT 1 Completed 500 Internal Server Error in 8ms PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block : SET search_path TO "public" Connecting to database specified by database.yml  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (1.0ms) 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", Wed, 17 Jul 2013 21:25:11 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$nqsmRvKP1FzVuA70frEFBuehcYONPr8up/o9Oxoxw/BHS9xfVHpZq"], ["updated_at", Wed, 17 Jul 2013 21:25:11 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (7.0ms) 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.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", Wed, 17 Jul 2013 21:25:11 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 811], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:25:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pfiXLMAc2s6tD1b4x6Rz' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 811, "created_at" = '2013-07-17 21:25:11.992819', "updated_at" = '2013-07-17 21:25:11.992819', "authentication_token" = 'pfiXLMAc2s6tD1b4x6Rz' WHERE "public"."cadenero_accounts"."id" = 658  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.4ms) SAVEPOINT active_record_1 SQL (20.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", 658], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00], ["user_id", 811]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jztYY97ip3gGBgviBUMu' LIMIT 1  (11.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 658, "user_id" = 811, "created_at" = '2013-07-17 21:25:12.138076', "updated_at" = '2013-07-17 21:25:12.138076', "auth_token" = 'jztYY97ip3gGBgviBUMu' WHERE "public"."cadenero_members"."id" = 812  (10.4ms) 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)   (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.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))  (5.7ms) 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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 811 Started GET "/v1?auth_token[]=jztYY97ip3gGBgviBUMu" for 127.0.0.1 at 2013-07-17 16:25:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["jztYY97ip3gGBgviBUMu"], "default"=>:json} Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (8.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 658 AND "public"."cadenero_members"."auth_token" IN ('jztYY97ip3gGBgviBUMu') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 811 LIMIT 1 Completed in 131ms Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["jztYY97ip3gGBgviBUMu"], "default"=>:json} Completed 500 Internal Server Error in 1ms  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$z1cC7/It0/mqmsjAAvbJ5u2z21DhXlbmlQnZs8PvhGazPvWcrT7ga"], ["updated_at", Wed, 17 Jul 2013 21:25: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 812], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eNQdzqzdN5ZPUQYJvacj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 812, "created_at" = '2013-07-17 21:25:12.608053', "updated_at" = '2013-07-17 21:25:12.608053', "authentication_token" = 'eNQdzqzdN5ZPUQYJvacj' WHERE "public"."cadenero_accounts"."id" = 659  (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", 659], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:12 UTC +00:00], ["user_id", 812]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9wUhSMxdCExEqDsfQW9B' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 659, "user_id" = 812, "created_at" = '2013-07-17 21:25:12.613481', "updated_at" = '2013-07-17 21:25:12.613481', "auth_token" = '9wUhSMxdCExEqDsfQW9B' WHERE "public"."cadenero_members"."id" = 813  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (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.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"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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-17 16:25:12 -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.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" = 659 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" = 812 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 812 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 812 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" = 812 Completed 201 Created in 131ms (Views: 22.1ms | 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" = 659 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25:12 -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" = 812 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (3.0ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$u9woA8EAqYOS4uWmMa6maOq2wc2wv6jNKjlNNEL4ZsiejtWaILtle"], ["updated_at", Wed, 17 Jul 2013 21:25: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" = '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", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 813], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's2zBfFEZzZG4eEuTumA7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 813, "created_at" = '2013-07-17 21:25:13.012924', "updated_at" = '2013-07-17 21:25:13.012924', "authentication_token" = 's2zBfFEZzZG4eEuTumA7' WHERE "public"."cadenero_accounts"."id" = 660  (0.4ms) 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", 660], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["user_id", 813]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z2eTnWuC1sWKiigVc2ig' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 660, "user_id" = 813, "created_at" = '2013-07-17 21:25:13.018647', "updated_at" = '2013-07-17 21:25:13.018647', "auth_token" = 'z2eTnWuC1sWKiigVc2ig' WHERE "public"."cadenero_members"."id" = 814  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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")  (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)   (4.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:25: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.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" = 660 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 813 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 813 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 813 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 813 Completed 201 Created in 109ms (Views: 5.5ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 660 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-17 16:25:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"813", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 813 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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-17 16:25: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" = '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", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$.Vy75qRRPniO0XpB3NS1me1aenuEd/RdT8a5h6qzJ43Akdj1i72ri"], ["updated_at", Wed, 17 Jul 2013 21:25:13 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", 660], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["user_id", 814]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yv7m5YxKpQhoEt4LP1AK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 660, "user_id" = 814, "created_at" = '2013-07-17 21:25:13.364825', "updated_at" = '2013-07-17 21:25:13.364825', "auth_token" = 'Yv7m5YxKpQhoEt4LP1AK' WHERE "public"."cadenero_members"."id" = 815  (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" = 814 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 814 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 814 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 814 Completed 201 Created in 169ms (Views: 5.7ms | 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/814" for 127.0.0.1 at 2013-07-17 16:25:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"814"} 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" = 660 AND "public"."cadenero_users"."id" = 814 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 814 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 814 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 814 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" = 814 Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:25: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" = 814 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 814 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 814 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 814 Completed 201 Created in 8ms (Views: 4.9ms | ActiveRecord: 1.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  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$YiCyyytZTBPQIJW3svUE5uUQ0r18gLVm6xUX6f88ZQhIhESVj8Rcq"], ["updated_at", Wed, 17 Jul 2013 21:25:13 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" = '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", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 815], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'L6p5D4AtrkDPpGjf3nXR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 815, "created_at" = '2013-07-17 21:25:13.537375', "updated_at" = '2013-07-17 21:25:13.537375', "authentication_token" = 'L6p5D4AtrkDPpGjf3nXR' WHERE "public"."cadenero_accounts"."id" = 661  (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", 661], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["user_id", 815]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iZusSV9GqVbbJevAnzXE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 661, "user_id" = 815, "created_at" = '2013-07-17 21:25:13.542871', "updated_at" = '2013-07-17 21:25:13.542871', "auth_token" = 'iZusSV9GqVbbJevAnzXE' WHERE "public"."cadenero_members"."id" = 816  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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/users" for 127.0.0.1 at 2013-07-17 16:25: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" = '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", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$63vNJPfNUTIkluo0UlEz5eUOlhfavi7LD64uYF0xyXyqvB7bdQOmK"], ["updated_at", Wed, 17 Jul 2013 21:25: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", 661], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["user_id", 816]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rGH3tsW75zX3h8tVCqDJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 661, "user_id" = 816, "created_at" = '2013-07-17 21:25:13.704548', "updated_at" = '2013-07-17 21:25:13.704548', "auth_token" = 'rGH3tsW75zX3h8tVCqDJ' WHERE "public"."cadenero_members"."id" = 817  (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" = 816 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 816 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 816 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 816 Completed 201 Created in 112ms (Views: 5.6ms | 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/816" for 127.0.0.1 at 2013-07-17 16:25:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"816"} 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" = 661 AND "public"."cadenero_users"."id" = 816 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 816 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 816 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 816 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 816 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_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:25: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" = 816 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 816 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 816 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 816 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25:13 -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" = 816 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$na9.LGwxZ16wKyauOJi7r.YK0Xn9JlXSVOpJJpXz/bSdgGhtIJS82"], ["updated_at", Wed, 17 Jul 2013 21:25: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" = '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", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 817], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BW9eTRM9L9Cc5kXRcp37' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 817, "created_at" = '2013-07-17 21:25:13.883165', "updated_at" = '2013-07-17 21:25:13.883165', "authentication_token" = 'BW9eTRM9L9Cc5kXRcp37' WHERE "public"."cadenero_accounts"."id" = 662  (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", 662], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:13 UTC +00:00], ["user_id", 817]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j7HZsV3Z1ni3tyCAzVyv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 662, "user_id" = 817, "created_at" = '2013-07-17 21:25:13.890469', "updated_at" = '2013-07-17 21:25:13.890469', "auth_token" = 'j7HZsV3Z1ni3tyCAzVyv' WHERE "public"."cadenero_members"."id" = 818  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)   (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")  (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, "auth_token" character varying(255))  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:25:13 -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.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" = 662 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" = 817 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 817 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 817 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 817 Completed 201 Created in 113ms (Views: 5.8ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 662 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:25:14 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"817", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 817 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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.2ms | ActiveRecord: 0.0ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$m2mLldsJZK9N1a/hHJJ9BOuXOVaytMCIuMgmTZcGrNVA/zqcmdwse"], ["updated_at", Wed, 17 Jul 2013 21:25:14 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", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 818], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qtYfrmXt2dzqQgpDbazb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 818, "created_at" = '2013-07-17 21:25:14.199338', "updated_at" = '2013-07-17 21:25:14.199338', "authentication_token" = 'qtYfrmXt2dzqQgpDbazb' WHERE "public"."cadenero_accounts"."id" = 663  (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", 663], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["user_id", 818]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dymuPANppK5cdLFiyRo9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 663, "user_id" = 818, "created_at" = '2013-07-17 21:25:14.204874', "updated_at" = '2013-07-17 21:25:14.204874', "auth_token" = 'dymuPANppK5cdLFiyRo9' WHERE "public"."cadenero_members"."id" = 819  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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")  (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))   (3.6ms) 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")  (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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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-17 16:25: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.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" = 663 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$DbBUBZS8cTGR4nl7gScaKuiF1zXL6OJscbootGSNabO2ausTEv.Fi"], ["updated_at", Wed, 17 Jul 2013 21:25: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" = '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", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 819], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UPvLz948WzN2D4bQJ4Hs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 819, "created_at" = '2013-07-17 21:25:14.436415', "updated_at" = '2013-07-17 21:25:14.436415', "authentication_token" = 'UPvLz948WzN2D4bQJ4Hs' WHERE "public"."cadenero_accounts"."id" = 664  (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", 664], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["user_id", 819]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tV9s67AXRDqxUzkqbgYp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 664, "user_id" = 819, "created_at" = '2013-07-17 21:25:14.441939', "updated_at" = '2013-07-17 21:25:14.441939', "auth_token" = 'tV9s67AXRDqxUzkqbgYp' WHERE "public"."cadenero_members"."id" = 820  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) 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-17 16:25: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.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$9BWBNynnbivV8PtKX4Ql5ezzrvsWuzpJRZCI.jq6as/5oZx7A5ahq"], ["updated_at", Wed, 17 Jul 2013 21:25: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" = '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", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 820], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EoKziuxMfyACS4cNfaAc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 820, "created_at" = '2013-07-17 21:25:14.612012', "updated_at" = '2013-07-17 21:25:14.612012', "authentication_token" = 'EoKziuxMfyACS4cNfaAc' WHERE "public"."cadenero_accounts"."id" = 665  (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", 665], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["user_id", 820]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tWZL1q3xqxxJN5bYjPXR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 665, "user_id" = 820, "created_at" = '2013-07-17 21:25:14.617496', "updated_at" = '2013-07-17 21:25:14.617496', "auth_token" = 'tWZL1q3xqxxJN5bYjPXR' WHERE "public"."cadenero_members"."id" = 821  (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.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, "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")  (2.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.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 ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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-17 16:25: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 ('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" = 665 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$n3e8Rt/COsBXSXNK4kZVCeqy8yTOdGm5S4yVlhbZZ5UK4UCKl11mG"], ["updated_at", Wed, 17 Jul 2013 21:25: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 (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", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 821], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'H4S8dk2XRBYbtumvsmxZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 821, "created_at" = '2013-07-17 21:25:14.794970', "updated_at" = '2013-07-17 21:25:14.794970', "authentication_token" = 'H4S8dk2XRBYbtumvsmxZ' WHERE "public"."cadenero_accounts"."id" = 666  (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", 666], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["user_id", 821]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XpXixguncsJCrxtJk3YF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 666, "user_id" = 821, "created_at" = '2013-07-17 21:25:14.800402', "updated_at" = '2013-07-17 21:25:14.800402', "auth_token" = 'XpXixguncsJCrxtJk3YF' WHERE "public"."cadenero_members"."id" = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.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) 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", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$jNDHjLzvRNslEc0eCJ0du.B9a7yi8x/FQEDW5G49nl0ctb.CgAOVC"], ["updated_at", Wed, 17 Jul 2013 21:25: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" = '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", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 822], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TM9Bvb6h2Lkwqn7J8e5B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 822, "created_at" = '2013-07-17 21:25:14.950996', "updated_at" = '2013-07-17 21:25:14.950996', "authentication_token" = 'TM9Bvb6h2Lkwqn7J8e5B' WHERE "public"."cadenero_accounts"."id" = 667  (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", 667], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:25:14 UTC +00:00], ["user_id", 822]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xrdYQvihdiEEDSUbyRZX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 667, "user_id" = 822, "created_at" = '2013-07-17 21:25:14.956173', "updated_at" = '2013-07-17 21:25:14.956173', "auth_token" = 'xrdYQvihdiEEDSUbyRZX' WHERE "public"."cadenero_members"."id" = 823  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:25: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:25:14 -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" = 666 AND "public"."cadenero_users"."email" = 'user10@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 Connecting to database specified by database.yml  (0.3ms) BEGIN  (0.3ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$NGCBSI/fmdv4omqjjOOqcOjHGQ63QI2u1xj893bLU0bSjAvAErE0i"], ["updated_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00]]  (0.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" = '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", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 823], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gq8LJJhy8Sfuq4bijrJ2' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 823, "created_at" = '2013-07-17 21:26:53.247092', "updated_at" = '2013-07-17 21:26:53.247092', "authentication_token" = 'gq8LJJhy8Sfuq4bijrJ2' WHERE "public"."cadenero_accounts"."id" = 668  (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", 668], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["user_id", 823]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zeMSvCz9Ttg9BfoSPzqy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 668, "user_id" = 823, "created_at" = '2013-07-17 21:26:53.357866', "updated_at" = '2013-07-17 21:26:53.357866', "auth_token" = 'zeMSvCz9Ttg9BfoSPzqy' WHERE "public"."cadenero_members"."id" = 824  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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, "auth_token" character varying(255))  (1.3ms) 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")  (0.8ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 823 Started GET "/v1?auth_token[]=zeMSvCz9Ttg9BfoSPzqy" for 127.0.0.1 at 2013-07-17 16:26:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zeMSvCz9Ttg9BfoSPzqy"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 668 AND "public"."cadenero_members"."auth_token" IN ('zeMSvCz9Ttg9BfoSPzqy') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 823 LIMIT 1 Completed in 139ms Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zeMSvCz9Ttg9BfoSPzqy"], "default"=>:json} Completed 500 Internal Server Error in 0ms  (6.3ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$7etmrOh7lTJhR/qD.RwhgeYUmL/2jt7zxEwr.HFIsYHwQNbpqGmie"], ["updated_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 824], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B1cro9vs3yCpBBHmkKLt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 824, "created_at" = '2013-07-17 21:26:53.816815', "updated_at" = '2013-07-17 21:26:53.816815', "authentication_token" = 'B1cro9vs3yCpBBHmkKLt' WHERE "public"."cadenero_accounts"."id" = 669  (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", 669], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:53 UTC +00:00], ["user_id", 824]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DTWq8y7cW8DbotxpbmWs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 669, "user_id" = 824, "created_at" = '2013-07-17 21:26:53.822501', "updated_at" = '2013-07-17 21:26:53.822501', "auth_token" = 'DTWq8y7cW8DbotxpbmWs' WHERE "public"."cadenero_members"."id" = 825  (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)   (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.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))  (6.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.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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:53 -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.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" = 669 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" = 824 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 824 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 824 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" = 824 Completed 201 Created in 135ms (Views: 22.0ms | ActiveRecord: 4.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" = 669 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"824", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 824 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$L4OSsMYMzPT6FWpWVPMBq.zxoUteeWgymeE17.Cit3eSSC42ZBtme"], ["updated_at", Wed, 17 Jul 2013 21:26: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", 669], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["user_id", 825]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kp8TxRU98h4JecaZWVb9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 669, "user_id" = 825, "created_at" = '2013-07-17 21:26:54.147502', "updated_at" = '2013-07-17 21:26:54.147502', "auth_token" = 'Kp8TxRU98h4JecaZWVb9' WHERE "public"."cadenero_members"."id" = 826  (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" = 825 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 825 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 825 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 825 Completed 201 Created in 114ms (Views: 5.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/825" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"825"} 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" = 669 AND "public"."cadenero_users"."id" = 825 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 825 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 825 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 825 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" = 825 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 825 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 825 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 825 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" = 825 Completed 201 Created in 7ms (Views: 4.8ms | 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.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$3b27Be5u082ECwlJA6FKuuD6gi2uhCby5UpFs9D3X17oX1nizQbka"], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 826], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oVxc6dFqQn4ZTJSAzdpo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 826, "created_at" = '2013-07-17 21:26:54.326894', "updated_at" = '2013-07-17 21:26:54.326894', "authentication_token" = 'oVxc6dFqQn4ZTJSAzdpo' WHERE "public"."cadenero_accounts"."id" = 670  (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", 670], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["user_id", 826]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dxGqK5TsMEQQw2sBxDx8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 670, "user_id" = 826, "created_at" = '2013-07-17 21:26:54.332194', "updated_at" = '2013-07-17 21:26:54.332194', "auth_token" = 'dxGqK5TsMEQQw2sBxDx8' WHERE "public"."cadenero_members"."id" = 827  (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.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, "auth_token" character varying(255))  (4.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")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:54 -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.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" = 670 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" = 826 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 826 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 826 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 826 Completed 201 Created in 107ms (Views: 5.5ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 670 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"826", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 826 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ffgghvzX2CkLB7wdro6l2eEgmi.RaFMMaqL7SjDmoiNwJnDakm5XO"], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 827], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PrpyyRxpoFEo7Fsxm3zL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 827, "created_at" = '2013-07-17 21:26:54.663494', "updated_at" = '2013-07-17 21:26:54.663494', "authentication_token" = 'PrpyyRxpoFEo7Fsxm3zL' WHERE "public"."cadenero_accounts"."id" = 671  (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", 671], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["user_id", 827]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rmgiCBs8X7JPCFiCabks' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 671, "user_id" = 827, "created_at" = '2013-07-17 21:26:54.669276', "updated_at" = '2013-07-17 21:26:54.669276', "auth_token" = 'rmgiCBs8X7JPCFiCabks' WHERE "public"."cadenero_members"."id" = 828  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) 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", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$nJakSFxJxfeHbo3CeyK4XeVSZtfgu6kcmVyKQg9aymjV8.TjpBmYG"], ["updated_at", Wed, 17 Jul 2013 21:26: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", 671], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["user_id", 828]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1dEcxn1yLbCnRDKytJue' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 671, "user_id" = 828, "created_at" = '2013-07-17 21:26:54.840365', "updated_at" = '2013-07-17 21:26:54.840365', "auth_token" = '1dEcxn1yLbCnRDKytJue' WHERE "public"."cadenero_members"."id" = 829  (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" = 828 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 828 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 828 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 828 Completed 201 Created in 113ms (Views: 5.7ms | ActiveRecord: 4.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/828" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"828"} 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" = 671 AND "public"."cadenero_users"."id" = 828 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 828 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 828 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 828 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 828 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 828 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 828 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 828 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 828 Completed 201 Created in 7ms (Views: 4.7ms | 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-17 16:26:54 -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" = 828 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (9.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$dvSmtqOXI5jx.dBsWRgjrOmDWmeXamqrlnY1oxFZ7KC/ixzmdVmFq"], ["updated_at", Wed, 17 Jul 2013 21:26:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 829], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yio5fFmKuXYdsoppmtff' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 829, "created_at" = '2013-07-17 21:26:55.000878', "updated_at" = '2013-07-17 21:26:55.000878', "authentication_token" = 'yio5fFmKuXYdsoppmtff' WHERE "public"."cadenero_accounts"."id" = 672  (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", 672], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["user_id", 829]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bxcBgq3YxWLnNks2Vsyu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 672, "user_id" = 829, "created_at" = '2013-07-17 21:26:55.006473', "updated_at" = '2013-07-17 21:26:55.006473', "auth_token" = 'bxcBgq3YxWLnNks2Vsyu' WHERE "public"."cadenero_members"."id" = 830  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:55 -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" = 672 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 829 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 829 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 829 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 829 Completed 201 Created in 153ms (Views: 52.2ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 672 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:55 -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" = 829 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$8SgPIm4vPDQ85ioE018wZujoB3ZIXkPIx6HBnD3PCJsgJ6jSjFQxG"], ["updated_at", Wed, 17 Jul 2013 21:26: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" = '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", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 830], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rxPeSWNardA9fsfP9JMp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 830, "created_at" = '2013-07-17 21:26:55.347714', "updated_at" = '2013-07-17 21:26:55.347714', "authentication_token" = 'rxPeSWNardA9fsfP9JMp' WHERE "public"."cadenero_accounts"."id" = 673  (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", 673], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["user_id", 830]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's4omqie3K1wy5SDK4L3r' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 673, "user_id" = 830, "created_at" = '2013-07-17 21:26:55.353218', "updated_at" = '2013-07-17 21:26:55.353218', "auth_token" = 's4omqie3K1wy5SDK4L3r' WHERE "public"."cadenero_members"."id" = 831  (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.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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.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.6ms) 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-17 16:26:55 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$uLYlSIwdlzZSVKszUXNEiOey8duVw21xvAEO.Dq1So0yl/oBF31B6"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 831], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pxYVQemQaRchhpqb5k2x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 831, "created_at" = '2013-07-17 21:26:55.525373', "updated_at" = '2013-07-17 21:26:55.525373', "authentication_token" = 'pxYVQemQaRchhpqb5k2x' WHERE "public"."cadenero_accounts"."id" = 674  (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", 674], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["user_id", 831]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UiBpppQyzmcj6bvV67pr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 674, "user_id" = 831, "created_at" = '2013-07-17 21:26:55.531436', "updated_at" = '2013-07-17 21:26:55.531436', "auth_token" = 'UiBpppQyzmcj6bvV67pr' WHERE "public"."cadenero_members"."id" = 832  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.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.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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$31/DA/EAhcFVNyGy8f.lcet8ibiEYV7KdAwCdrKust5ks1hocbuja"], ["updated_at", Wed, 17 Jul 2013 21:26: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.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", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 832], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oL3sVUASY16yvBpeVuXt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 832, "created_at" = '2013-07-17 21:26:55.685614', "updated_at" = '2013-07-17 21:26:55.685614', "authentication_token" = 'oL3sVUASY16yvBpeVuXt' WHERE "public"."cadenero_accounts"."id" = 675  (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", 675], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["user_id", 832]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'spczsghxztYQjG219iii' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 675, "user_id" = 832, "created_at" = '2013-07-17 21:26:55.690752', "updated_at" = '2013-07-17 21:26:55.690752', "auth_token" = 'spczsghxztYQjG219iii' WHERE "public"."cadenero_members"."id" = 833  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 674 AND "public"."cadenero_users"."email" = 'user8@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  (3.6ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$jPInKdSoWh829fYrxAxYaugc0sWQpSugHKYWgfaQo1L729m5IkrbS"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 833], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'u5tyhiqPXH5rowxun9uW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 833, "created_at" = '2013-07-17 21:26:55.822556', "updated_at" = '2013-07-17 21:26:55.822556', "authentication_token" = 'u5tyhiqPXH5rowxun9uW' WHERE "public"."cadenero_accounts"."id" = 676  (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", 676], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["user_id", 833]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vEFmj4Lr9KR5f2shYix6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 676, "user_id" = 833, "created_at" = '2013-07-17 21:26:55.828012', "updated_at" = '2013-07-17 21:26:55.828012', "auth_token" = 'vEFmj4Lr9KR5f2shYix6' WHERE "public"."cadenero_members"."id" = 834  (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.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.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.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 676 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$BPYp804gsoMk9MNAiMcXrewPbFRIRgSFPKDIMb02DtGzhwoO45cla"], ["updated_at", Wed, 17 Jul 2013 21:26:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:26:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 834], ["subdomain", "test10"], ["updated_at", Wed, 17 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" = 'Pqtf7VZozTu1sgxtBBUR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 834, "created_at" = '2013-07-17 21:26:56.002469', "updated_at" = '2013-07-17 21:26:56.002469', "authentication_token" = 'Pqtf7VZozTu1sgxtBBUR' WHERE "public"."cadenero_accounts"."id" = 677  (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", 677], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:26:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:26:56 UTC +00:00], ["user_id", 834]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dZAj1E99z6ZKdCYh8YJd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 677, "user_id" = 834, "created_at" = '2013-07-17 21:26:56.007870', "updated_at" = '2013-07-17 21:26:56.007870', "auth_token" = 'dZAj1E99z6ZKdCYh8YJd' WHERE "public"."cadenero_members"."id" = 835  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:26:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:26:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 677 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  (5.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (27.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$CIh.WrqA6sif0lxHaZ8PzuLpKm8qyLdWgwyUEvyeaT794cKIdfLPK"], ["updated_at", Wed, 17 Jul 2013 21:34:47 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (10.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (8.2ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 835], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:34:47 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yNjjSdoYMbbQKdqMeyCb' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 835, "created_at" = '2013-07-17 21:34:47.898676', "updated_at" = '2013-07-17 21:34:47.898676', "authentication_token" = 'yNjjSdoYMbbQKdqMeyCb' WHERE "public"."cadenero_accounts"."id" = 678  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.8ms) 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", 678], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["user_id", 835]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sBqKZakoqvzXEfM7zDXf' LIMIT 1  (8.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 678, "user_id" = 835, "created_at" = '2013-07-17 21:34:48.074484', "updated_at" = '2013-07-17 21:34:48.074484', "auth_token" = 'sBqKZakoqvzXEfM7zDXf' WHERE "public"."cadenero_members"."id" = 836  (9.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test1"  (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)   (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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 835 Started GET "/v1?auth_token[]=sBqKZakoqvzXEfM7zDXf" for 127.0.0.1 at 2013-07-17 16:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["sBqKZakoqvzXEfM7zDXf"], "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::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 678 AND "public"."cadenero_members"."auth_token" IN ('sBqKZakoqvzXEfM7zDXf') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 835 LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 15ms (Views: 0.3ms | ActiveRecord: 1.3ms)  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (9.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$yur8a.7ag3DjD3sH.lRZWur/bEWemGhQ81YjY4dXWu/3QfLQQHM9O"], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 836], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6zVJCkBXqrSSRVHqThPH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 836, "created_at" = '2013-07-17 21:34:48.443044', "updated_at" = '2013-07-17 21:34:48.443044', "authentication_token" = '6zVJCkBXqrSSRVHqThPH' WHERE "public"."cadenero_accounts"."id" = 679  (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", 679], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["user_id", 836]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Dpa5DHSPpgzYSmtpqQR8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 679, "user_id" = 836, "created_at" = '2013-07-17 21:34:48.448536', "updated_at" = '2013-07-17 21:34:48.448536', "auth_token" = 'Dpa5DHSPpgzYSmtpqQR8' WHERE "public"."cadenero_members"."id" = 837  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.5ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:48 -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 (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" = 679 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" = 836 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 836 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 836 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" = 836 Completed 201 Created in 148ms (Views: 23.9ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 679 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:48 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"836", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 836 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.5ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$LrJuv9oBzLZ.IMJxUEx46efUtmRMAPCpge9NSUfQ4zXE8Z7iQAb4i"], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 837], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Es2a3rAKtRrqMT3zsphr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 837, "created_at" = '2013-07-17 21:34:48.800415', "updated_at" = '2013-07-17 21:34:48.800415', "authentication_token" = 'Es2a3rAKtRrqMT3zsphr' WHERE "public"."cadenero_accounts"."id" = 680  (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", 680], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["user_id", 837]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Sivz7zHiooapMQQ29bv4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 680, "user_id" = 837, "created_at" = '2013-07-17 21:34:48.805771', "updated_at" = '2013-07-17 21:34:48.805771', "auth_token" = 'Sivz7zHiooapMQQ29bv4' WHERE "public"."cadenero_members"."id" = 838  (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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) 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 ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:34:48 -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", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$xu9ma9vp4NfASTfEGJjPJe1vnV2c9Bzqzr2fZJ0XykGNU1GamVvIK"], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 680], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:48 UTC +00:00], ["user_id", 838]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kGhSPsxFMNVTn5MAnzkk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 680, "user_id" = 838, "created_at" = '2013-07-17 21:34:48.979617', "updated_at" = '2013-07-17 21:34:48.979617', "auth_token" = 'kGhSPsxFMNVTn5MAnzkk' WHERE "public"."cadenero_members"."id" = 839  (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" = 838 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 838 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 838 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" = 838 Completed 201 Created in 117ms (Views: 6.1ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/838" for 127.0.0.1 at 2013-07-17 16:34:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"838"} 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.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" = 680 AND "public"."cadenero_users"."id" = 838 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 838 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 838 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 838 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" = 838 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:49 -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" = 838 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 838 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 838 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" = 838 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:49 -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" = 838 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (1.7ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$POkFNFhHtHKqmIrlj0XiseTAmqVWFdSim3KDIFXCykCK/L3VJaqE2"], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 839], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uaUBWGwjbp2NmKmssam2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 839, "created_at" = '2013-07-17 21:34:49.149885', "updated_at" = '2013-07-17 21:34:49.149885', "authentication_token" = 'uaUBWGwjbp2NmKmssam2' WHERE "public"."cadenero_accounts"."id" = 681  (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", 681], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["user_id", 839]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wF2ebXHaSasPhUn6ECyK' LIMIT 1  (3.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 681, "user_id" = 839, "created_at" = '2013-07-17 21:34:49.155990', "updated_at" = '2013-07-17 21:34:49.155990', "auth_token" = 'wF2ebXHaSasPhUn6ECyK' WHERE "public"."cadenero_members"."id" = 840  (4.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.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.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (3.7ms) 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.3ms) 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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34: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.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" = 681 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" = 839 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 839 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 839 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 839 Completed 201 Created in 119ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 681 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:49 -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" = 839 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$z04YwzBoEjz/VZ73RT/w7uq03EryO5uFUzwsxE97CjhcWjjKkQtuK"], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 840], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yyMNMcwZGtXENssfXVhq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 840, "created_at" = '2013-07-17 21:34:49.496872', "updated_at" = '2013-07-17 21:34:49.496872', "authentication_token" = 'yyMNMcwZGtXENssfXVhq' WHERE "public"."cadenero_accounts"."id" = 682  (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", 682], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["user_id", 840]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TYqVzNxHehgsvRxrpWYs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 682, "user_id" = 840, "created_at" = '2013-07-17 21:34:49.502187', "updated_at" = '2013-07-17 21:34:49.502187', "auth_token" = 'TYqVzNxHehgsvRxrpWYs' WHERE "public"."cadenero_members"."id" = 841  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) 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")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:49 -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" = 682 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 840 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 840 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 840 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" = 840 Completed 201 Created in 112ms (Views: 5.6ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 682 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"840", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 840 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:34:49 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$kwPNQ9yYipuzis5sSjxineH/Q9G/9LQ3T.peIag2jbcjiRRMkcWda"], ["updated_at", Wed, 17 Jul 2013 21:34:49 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", 682], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:49 UTC +00:00], ["user_id", 841]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vG8eXLLnnEVv7ymuzbsW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 682, "user_id" = 841, "created_at" = '2013-07-17 21:34:49.812551', "updated_at" = '2013-07-17 21:34:49.812551', "auth_token" = 'vG8eXLLnnEVv7ymuzbsW' WHERE "public"."cadenero_members"."id" = 842  (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" = 841 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 841 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 841 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 841 Completed 201 Created in 122ms (Views: 7.4ms | 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/841" for 127.0.0.1 at 2013-07-17 16:34:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"841"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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" = 682 AND "public"."cadenero_users"."id" = 841 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 841 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 841 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 841 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 841 Completed 200 OK in 61ms (Views: 55.3ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:49 -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" = 841 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 841 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 841 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 841 Completed 201 Created in 7ms (Views: 5.0ms | 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  (14.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$2xl5svt7gOHxNSI9Zly1ou4igcluqpp3UDZCidIWcWIoaZBCBYPP."], ["updated_at", Wed, 17 Jul 2013 21:34:50 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", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 842], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sGofnVxExCuSa3FBnNcS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 842, "created_at" = '2013-07-17 21:34:50.052442', "updated_at" = '2013-07-17 21:34:50.052442', "authentication_token" = 'sGofnVxExCuSa3FBnNcS' WHERE "public"."cadenero_accounts"."id" = 683  (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", 683], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["user_id", 842]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SkqbRSSUssP1MLuzd9mm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 683, "user_id" = 842, "created_at" = '2013-07-17 21:34:50.057905', "updated_at" = '2013-07-17 21:34:50.057905', "auth_token" = 'SkqbRSSUssP1MLuzd9mm' WHERE "public"."cadenero_members"."id" = 843  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.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.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.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$D1O69q6HQySzBKAU6TUg4uuS6kOfZ7AmaEfzEuXPUWP3vgM..N/1e"], ["updated_at", Wed, 17 Jul 2013 21:34: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" = '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", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 843], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XFUQCGYq5WhtnStouVxd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 843, "created_at" = '2013-07-17 21:34:50.217483', "updated_at" = '2013-07-17 21:34:50.217483', "authentication_token" = 'XFUQCGYq5WhtnStouVxd' WHERE "public"."cadenero_accounts"."id" = 684  (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", 684], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["user_id", 843]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6ezuo3YzhzPUb2DTzpMz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 684, "user_id" = 843, "created_at" = '2013-07-17 21:34:50.222779', "updated_at" = '2013-07-17 21:34:50.222779', "auth_token" = '6ezuo3YzhzPUb2DTzpMz' WHERE "public"."cadenero_members"."id" = 844  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34: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-17 16:34: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 683 AND "public"."cadenero_users"."email" = 'user7@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  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$qeLOgrEW/hEDHQhlt0S3duFl6Lyno65ftr01enPYZtE5G/Oyu5ChO"], ["updated_at", Wed, 17 Jul 2013 21:34: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" = '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", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 844], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zxq36o6x7WRVY85Stedo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 844, "created_at" = '2013-07-17 21:34:50.365174', "updated_at" = '2013-07-17 21:34:50.365174', "authentication_token" = 'zxq36o6x7WRVY85Stedo' WHERE "public"."cadenero_accounts"."id" = 685  (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", 685], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["user_id", 844]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sEwNq5sCXBqdDYVAFWhA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 685, "user_id" = 844, "created_at" = '2013-07-17 21:34:50.370760', "updated_at" = '2013-07-17 21:34:50.370760', "auth_token" = 'sEwNq5sCXBqdDYVAFWhA' WHERE "public"."cadenero_members"."id" = 845  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.2ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34: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-17 16:34:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 685 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  (6.0ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xd1QrpONLWF.JiOko4KXe.UxDIh54n/wlc5fhhgGz5kxIv0G8u3eC"], ["updated_at", Wed, 17 Jul 2013 21:34: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" = '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", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 845], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dVNsEttpSCn9Yp1jpknG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 845, "created_at" = '2013-07-17 21:34:50.557993', "updated_at" = '2013-07-17 21:34:50.557993', "authentication_token" = 'dVNsEttpSCn9Yp1jpknG' WHERE "public"."cadenero_accounts"."id" = 686  (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", 686], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["user_id", 845]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ues4upVQjvcHyTVxch85' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 686, "user_id" = 845, "created_at" = '2013-07-17 21:34:50.563446', "updated_at" = '2013-07-17 21:34:50.563446', "auth_token" = 'ues4upVQjvcHyTVxch85' WHERE "public"."cadenero_members"."id" = 846  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) 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")  (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.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:34: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-17 16:34: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 686 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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$oA6NDlcNv1Qt0iZu2ll6S.crG7QKdr5hDrbCWw1SJC.G2rlCcVsde"], ["updated_at", Wed, 17 Jul 2013 21:34: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" = '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", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 846], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QyzuC7K6ZF17xqSp8qGV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 846, "created_at" = '2013-07-17 21:34:50.746389', "updated_at" = '2013-07-17 21:34:50.746389', "authentication_token" = 'QyzuC7K6ZF17xqSp8qGV' WHERE "public"."cadenero_accounts"."id" = 687  (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", 687], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:34:50 UTC +00:00], ["user_id", 846]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qbkrTttQBsAEAZ9xjbdx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 687, "user_id" = 846, "created_at" = '2013-07-17 21:34:50.751871', "updated_at" = '2013-07-17 21:34:50.751871', "auth_token" = 'qbkrTttQBsAEAZ9xjbdx' WHERE "public"."cadenero_members"."id" = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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.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.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.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 ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:34:50 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.6ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (3.9ms) 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", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$UFLznsD2IpD01G2BYDUpkuGO8T7KK5YDNlHKPs8lPrxm43Wt.maO2"], ["updated_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00]]  (4.6ms) RELEASE SAVEPOINT active_record_1  (4.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (11.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 847], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cJDnw7LLnjEbKpPaocgd' LIMIT 1  (4.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 847, "created_at" = '2013-07-17 21:35:57.171652', "updated_at" = '2013-07-17 21:35:57.171652', "authentication_token" = 'cJDnw7LLnjEbKpPaocgd' WHERE "public"."cadenero_accounts"."id" = 688  (2.8ms) RELEASE SAVEPOINT active_record_1  (4.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 688], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["user_id", 847]] Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZRnrxk6StqmxnG8LwYgF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 688, "user_id" = 847, "created_at" = '2013-07-17 21:35:57.323987', "updated_at" = '2013-07-17 21:35:57.323987', "auth_token" = 'ZRnrxk6StqmxnG8LwYgF' WHERE "public"."cadenero_members"."id" = 848  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) 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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 847 Started GET "/v1?auth_token[]=ZRnrxk6StqmxnG8LwYgF" for 127.0.0.1 at 2013-07-17 16:35:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ZRnrxk6StqmxnG8LwYgF"], "default"=>:json} Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 688 AND "public"."cadenero_members"."auth_token" IN ('ZRnrxk6StqmxnG8LwYgF') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 847 LIMIT 1 Completed 500 Internal Server Error in 21ms  (28.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$eS2clOlCEXBMy.K85ECX9.sf9nKtAD7S13D2E8q6T/eTKNDoSDjmG"], ["updated_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 848], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PRw3nRqFq1ydsCt2eCpY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 848, "created_at" = '2013-07-17 21:35:57.785235', "updated_at" = '2013-07-17 21:35:57.785235', "authentication_token" = 'PRw3nRqFq1ydsCt2eCpY' WHERE "public"."cadenero_accounts"."id" = 689  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 689], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:57 UTC +00:00], ["user_id", 848]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KfsgMBtmPqrQQ7pc6cCy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 689, "user_id" = 848, "created_at" = '2013-07-17 21:35:57.790858', "updated_at" = '2013-07-17 21:35:57.790858', "auth_token" = 'KfsgMBtmPqrQQ7pc6cCy' WHERE "public"."cadenero_members"."id" = 849  (0.1ms) 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)   (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.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.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")  (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)  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:35:57 -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 (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" = 689 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" = 848 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 848 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 848 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 848 Completed 201 Created in 134ms (Views: 22.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 689 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:35:57 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"848", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 848 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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)  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$R0HYMK5wwg9ZlDytidZzF.2klJtQzTGawZQFAEwhCSINwnlizR33W"], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 849], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ld9fjrBXoXpWpvco66U1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 849, "created_at" = '2013-07-17 21:35:58.133612', "updated_at" = '2013-07-17 21:35:58.133612', "authentication_token" = 'Ld9fjrBXoXpWpvco66U1' WHERE "public"."cadenero_accounts"."id" = 690  (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", 690], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["user_id", 849]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ofyfsTApLRBM829yQxsN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 690, "user_id" = 849, "created_at" = '2013-07-17 21:35:58.138861', "updated_at" = '2013-07-17 21:35:58.138861', "auth_token" = 'ofyfsTApLRBM829yQxsN' WHERE "public"."cadenero_members"."id" = 850  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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")  (8.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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.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.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')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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.5ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ElM3hAOm2EDcZQAqgKlqNuGOPnxVXFgJrEbbFgXFMnwq19NFyIA9."], ["updated_at", Wed, 17 Jul 2013 21:35: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", 690], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["user_id", 850]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iDnhdpzFCqWGPouMxgxp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 690, "user_id" = 850, "created_at" = '2013-07-17 21:35:58.324267', "updated_at" = '2013-07-17 21:35:58.324267', "auth_token" = 'iDnhdpzFCqWGPouMxgxp' WHERE "public"."cadenero_members"."id" = 851  (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" = 850 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 850 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 850 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 850 Completed 201 Created in 125ms (Views: 5.7ms | 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/850" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"850"} 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" = 690 AND "public"."cadenero_users"."id" = 850 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 850 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 850 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 850 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" = 850 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 850 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 850 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 850 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 850 Completed 201 Created in 8ms (Views: 5.1ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35:58 -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" = 850 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.8ms) ROLLBACK  (1.3ms) BEGIN  (0.8ms) COMMIT  (1.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$woLJxkMYNxA2I5B1mcA3teq008Z46Hw4Gwu9YPxSnQBtobtGa46y."], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 851], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wvoz9H9vufvuxssxup2b' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 851, "created_at" = '2013-07-17 21:35:58.504919', "updated_at" = '2013-07-17 21:35:58.504919', "authentication_token" = 'wvoz9H9vufvuxssxup2b' WHERE "public"."cadenero_accounts"."id" = 691  (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", 691], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["user_id", 851]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W6qQkY8vHa2RacnFszqm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 691, "user_id" = 851, "created_at" = '2013-07-17 21:35:58.510705', "updated_at" = '2013-07-17 21:35:58.510705', "auth_token" = 'W6qQkY8vHa2RacnFszqm' WHERE "public"."cadenero_members"."id" = 852  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.7ms) 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.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")  (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.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.5ms) 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-17 16:35: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 (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 691 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" = 851 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 851 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 851 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 851 Completed 201 Created in 124ms (Views: 6.2ms | ActiveRecord: 10.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" = 691 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"851", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 851 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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/users" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$z74nzvu.r9E1STmXHs1EY.Vrw7u2L7HDyDh1R2t0.lNdmBMElFHDu"], ["updated_at", Wed, 17 Jul 2013 21:35: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", 691], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["user_id", 852]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tGWvBKjNsqSqmKMhsBuz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 691, "user_id" = 852, "created_at" = '2013-07-17 21:35:58.807522', "updated_at" = '2013-07-17 21:35:58.807522', "auth_token" = 'tGWvBKjNsqSqmKMhsBuz' WHERE "public"."cadenero_members"."id" = 853  (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" = 852 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 852 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 852 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 852 Completed 201 Created in 113ms (Views: 5.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/852" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"852"} 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" = 691 AND "public"."cadenero_users"."id" = 852 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 852 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 852 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 852 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 852 Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:35:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 852 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 852 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 852 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 852 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$P4Y0gnVcM6PiWnBcdvzWS.QFbFYhSRdQZoY2pyrajcFgyoj8KHODu"], ["updated_at", Wed, 17 Jul 2013 21:35: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" = '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", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 853], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pf4UJdorZXCDmk2yX3f9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 853, "created_at" = '2013-07-17 21:35:58.963982', "updated_at" = '2013-07-17 21:35:58.963982', "authentication_token" = 'Pf4UJdorZXCDmk2yX3f9' WHERE "public"."cadenero_accounts"."id" = 692  (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", 692], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:58 UTC +00:00], ["user_id", 853]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KpAsEcsDHDWy9ezvWk1q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 692, "user_id" = 853, "created_at" = '2013-07-17 21:35:58.969452', "updated_at" = '2013-07-17 21:35:58.969452', "auth_token" = 'KpAsEcsDHDWy9ezvWk1q' WHERE "public"."cadenero_members"."id" = 854  (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")  (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.4ms) 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")  (18.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.5ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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-17 16:35:59 -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.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" = 692 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" = 853 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 853 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 853 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 853 Completed 201 Created in 114ms (Views: 5.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 692 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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" = 853 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$PinUPzpXYI3qJ4Pb0hPrqOU3xg3z32ykTzNUdeXswQY8HliOTcCe2"], ["updated_at", Wed, 17 Jul 2013 21:35: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" = 'test6' 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", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 854], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tqBTrHag9bQghpbY9Cnx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 854, "created_at" = '2013-07-17 21:35:59.342634', "updated_at" = '2013-07-17 21:35:59.342634', "authentication_token" = 'tqBTrHag9bQghpbY9Cnx' WHERE "public"."cadenero_accounts"."id" = 693  (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", 693], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["user_id", 854]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WefpCFNohpydB8zzANCn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 693, "user_id" = 854, "created_at" = '2013-07-17 21:35:59.348263', "updated_at" = '2013-07-17 21:35:59.348263', "auth_token" = 'WefpCFNohpydB8zzANCn' WHERE "public"."cadenero_members"."id" = 855  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.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", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$GFIDqZdKC473a7I50wRMrOsVtMDF8ZKPiqtFvmlr4Md.vS4G4kY0a"], ["updated_at", Wed, 17 Jul 2013 21:35: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" = '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", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 855], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qQTy2SvcFaHGcKg2vAxE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 855, "created_at" = '2013-07-17 21:35:59.500852', "updated_at" = '2013-07-17 21:35:59.500852', "authentication_token" = 'qQTy2SvcFaHGcKg2vAxE' WHERE "public"."cadenero_accounts"."id" = 694  (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", 694], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["user_id", 855]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x3qy2BZzcBhFzSqtmNif' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 694, "user_id" = 855, "created_at" = '2013-07-17 21:35:59.506028', "updated_at" = '2013-07-17 21:35:59.506028', "auth_token" = 'x3qy2BZzcBhFzSqtmNif' WHERE "public"."cadenero_members"."id" = 856  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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-17 16:35:59 -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" = 693 AND "public"."cadenero_users"."email" = 'user7@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  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$i3epg6cl0ru22/bQj8C24e3rR482K6qZxBuDrV7FcQVbHG1Y5HXeq"], ["updated_at", Wed, 17 Jul 2013 21:35: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" = '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", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 856], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2FPa1Zj6oYW3yYp2UsCq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 856, "created_at" = '2013-07-17 21:35:59.639393', "updated_at" = '2013-07-17 21:35:59.639393', "authentication_token" = '2FPa1Zj6oYW3yYp2UsCq' WHERE "public"."cadenero_accounts"."id" = 695  (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", 695], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["user_id", 856]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qa3zodJxEmNHmytTq697' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 695, "user_id" = 856, "created_at" = '2013-07-17 21:35:59.644851', "updated_at" = '2013-07-17 21:35:59.644851', "auth_token" = 'Qa3zodJxEmNHmytTq697' WHERE "public"."cadenero_members"."id" = 857  (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")  (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))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:35: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-17 16:35: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 ('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" = 695 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$IQma3HKX3witzoj6SGXK7eyUhPF6nAkMGhZ4haGGpVChnXZ0ykUXi"], ["updated_at", Wed, 17 Jul 2013 21:35: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" = '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", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 857], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LE57LafB5EEgHcswgevt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 857, "created_at" = '2013-07-17 21:35:59.818087', "updated_at" = '2013-07-17 21:35:59.818087', "authentication_token" = 'LE57LafB5EEgHcswgevt' WHERE "public"."cadenero_accounts"."id" = 696  (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", 696], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["user_id", 857]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MFQfD45GT4qUQCuTkH6q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 696, "user_id" = 857, "created_at" = '2013-07-17 21:35:59.823478', "updated_at" = '2013-07-17 21:35:59.823478', "auth_token" = 'MFQfD45GT4qUQCuTkH6q' WHERE "public"."cadenero_members"."id" = 858  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (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.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:35:59 -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  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$5xpz.jOY3/zSX.ro1o9oTOW9CNXB/W1V19.SFJebn0PdId/0hDJAa"], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 858], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XabU42hCwD7PpiPSb5Ho' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 858, "created_at" = '2013-07-17 21:35:59.991770', "updated_at" = '2013-07-17 21:35:59.991770', "authentication_token" = 'XabU42hCwD7PpiPSb5Ho' WHERE "public"."cadenero_accounts"."id" = 697  (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", 697], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:35:59 UTC +00:00], ["user_id", 858]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Rz8yWErVYsEVGgmpmEWM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 697, "user_id" = 858, "created_at" = '2013-07-17 21:35:59.997102', "updated_at" = '2013-07-17 21:35:59.997102', "auth_token" = 'Rz8yWErVYsEVGgmpmEWM' WHERE "public"."cadenero_members"."id" = 859  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (3.3ms) 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, "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.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.2ms) 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36: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-17 16:36: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 ('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" = 697 AND "public"."cadenero_users"."email" = 'user@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 Connecting to database specified by database.yml  (1.0ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (17.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:44 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$xRS8pImkvG9074/NPHvC9OAXohKKd2Eedb3CUWem45ic32uEkRRAK"], ["updated_at", Wed, 17 Jul 2013 21:36:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 859], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jisMv6qHZgwH1RGf253A' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 859, "created_at" = '2013-07-17 21:36:45.120466', "updated_at" = '2013-07-17 21:36:45.120466', "authentication_token" = 'jisMv6qHZgwH1RGf253A' WHERE "public"."cadenero_accounts"."id" = 698  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) 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", 698], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["user_id", 859]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5UaE6aqs7prvWXxykGHq' LIMIT 1  (2.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 698, "user_id" = 859, "created_at" = '2013-07-17 21:36:45.287130', "updated_at" = '2013-07-17 21:36:45.287130', "auth_token" = '5UaE6aqs7prvWXxykGHq' WHERE "public"."cadenero_members"."id" = 860  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (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.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.1ms) 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")  (4.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.9ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:45 -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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 698 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" = 859 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 859 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 859 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 859 Completed 201 Created in 224ms (Views: 67.9ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 698 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-17 16:36:45 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"859", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 859 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36: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/users" for 127.0.0.1 at 2013-07-17 16:36:45 -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", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$LRu36OGi922gY4sztGyh/.Zra6lu1zexxRbA16atvkorl77VNGusa"], ["updated_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 698], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["user_id", 860]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fsZBUNrUupAz7osqtTDH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 698, "user_id" = 860, "created_at" = '2013-07-17 21:36:45.774079', "updated_at" = '2013-07-17 21:36:45.774079', "auth_token" = 'fsZBUNrUupAz7osqtTDH' WHERE "public"."cadenero_members"."id" = 861  (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" = 860 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 860 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 860 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 860 Completed 201 Created in 116ms (Views: 7.6ms | 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/860" for 127.0.0.1 at 2013-07-17 16:36:45 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"860"} 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" = 698 AND "public"."cadenero_users"."id" = 860 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 860 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 860 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 860 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 860 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:45 -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" = 860 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 860 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 860 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 860 Completed 201 Created in 7ms (Views: 5.1ms | 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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$f7uLJfMNPPkCQkarHayWYeq83LETKSB4vvWkv1oQEkfY.hvhuCtv2"], ["updated_at", Wed, 17 Jul 2013 21:36:45 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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 861], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2jPucAKxxpsyiBZNJkJq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 861, "created_at" = '2013-07-17 21:36:45.952013', "updated_at" = '2013-07-17 21:36:45.952013', "authentication_token" = '2jPucAKxxpsyiBZNJkJq' WHERE "public"."cadenero_accounts"."id" = 699  (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", 699], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:45 UTC +00:00], ["user_id", 861]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'maxSuxHRbmVU8HqYCcDF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 699, "user_id" = 861, "created_at" = '2013-07-17 21:36:45.957495', "updated_at" = '2013-07-17 21:36:45.957495', "auth_token" = 'maxSuxHRbmVU8HqYCcDF' WHERE "public"."cadenero_members"."id" = 862  (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)   (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.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")  (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")  (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)   (0.8ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:36:46 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$SonOLLk0cmMAamJYZ7I/L.B5FPjdiHbc4nur0fTqidO0tHX7OxlMm"], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 699], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["user_id", 862]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pn7gX4se2eMSySBnfF7p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 699, "user_id" = 862, "created_at" = '2013-07-17 21:36:46.122687', "updated_at" = '2013-07-17 21:36:46.122687', "auth_token" = 'pn7gX4se2eMSySBnfF7p' WHERE "public"."cadenero_members"."id" = 863  (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" = 862 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 862 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 862 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 862 Completed 201 Created in 114ms (Views: 6.8ms | 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/862" for 127.0.0.1 at 2013-07-17 16:36:46 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"862"} 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" = 699 AND "public"."cadenero_users"."id" = 862 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 862 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 862 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 862 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" = 862 Completed 200 OK in 10ms (Views: 5.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-17 16:36:46 -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" = 862 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 862 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 862 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" = 862 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36:46 -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" = 862 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$crb7fjllVpC.jd7ESrGwNer9l3KNSPsucynrp1a46L2GDMHJJ.eHO"], ["updated_at", Wed, 17 Jul 2013 21:36: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" = '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", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 863], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R6BAwMjRDsRWMfsrRx2F' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 863, "created_at" = '2013-07-17 21:36:46.299268', "updated_at" = '2013-07-17 21:36:46.299268', "authentication_token" = 'R6BAwMjRDsRWMfsrRx2F' WHERE "public"."cadenero_accounts"."id" = 700  (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", 700], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["user_id", 863]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AckXm9eJC3qsEbkQj4ko' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 700, "user_id" = 863, "created_at" = '2013-07-17 21:36:46.304818', "updated_at" = '2013-07-17 21:36:46.304818', "auth_token" = 'AckXm9eJC3qsEbkQj4ko' WHERE "public"."cadenero_members"."id" = 864  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.4ms) 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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36: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-17 16:36:46 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 700 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" = 863 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 863 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 863 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 863 Completed 201 Created in 117ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 700 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36:46 -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" = 863 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$1FQ4LJsh94eAAdTcCudqxeYjuUeQmPbrwBLwNWdb39r81NeqZAgD."], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 864], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nz46oSgPVzppXKnsnVVq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 864, "created_at" = '2013-07-17 21:36:46.631257', "updated_at" = '2013-07-17 21:36:46.631257', "authentication_token" = 'nz46oSgPVzppXKnsnVVq' WHERE "public"."cadenero_accounts"."id" = 701  (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", 701], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["user_id", 864]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cwUMusSPCvctHFAmtX8p' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 701, "user_id" = 864, "created_at" = '2013-07-17 21:36:46.637015', "updated_at" = '2013-07-17 21:36:46.637015', "auth_token" = 'cwUMusSPCvctHFAmtX8p' WHERE "public"."cadenero_members"."id" = 865  (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)   (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")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:46 -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 (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" = 701 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (6.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 864 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 864 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 864 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 864 Completed 201 Created in 114ms (Views: 5.5ms | ActiveRecord: 8.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" = 701 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:46 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"864", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 864 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36: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)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Adkv2hoM3nw8mZJEzwmkPeoAL8k.or5eO5CyMz86qh9DhYvCa/owS"], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 865], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xpLf6esNJumQxqcCZZt4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 865, "created_at" = '2013-07-17 21:36:46.945375', "updated_at" = '2013-07-17 21:36:46.945375', "authentication_token" = 'xpLf6esNJumQxqcCZZt4' WHERE "public"."cadenero_accounts"."id" = 702  (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", 702], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:46 UTC +00:00], ["user_id", 865]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nym5Aq1TKFJwUnvqfhfM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 702, "user_id" = 865, "created_at" = '2013-07-17 21:36:46.951346', "updated_at" = '2013-07-17 21:36:46.951346', "auth_token" = 'nym5Aq1TKFJwUnvqfhfM' WHERE "public"."cadenero_members"."id" = 866  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (8.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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:47 -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  (12.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$EcIx/i/G9BMuGsmkhjnJ3uExfke/PKMEx9W18j/Qyi.yeX3sMIFa6"], ["updated_at", Wed, 17 Jul 2013 21:36: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" = '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", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 866], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iaJ7CHLSpzCmQq8DG63K' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 866, "created_at" = '2013-07-17 21:36:47.187644', "updated_at" = '2013-07-17 21:36:47.187644', "authentication_token" = 'iaJ7CHLSpzCmQq8DG63K' WHERE "public"."cadenero_accounts"."id" = 703  (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", 703], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["user_id", 866]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't1cDSjWsDu7PuS85s3zp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 703, "user_id" = 866, "created_at" = '2013-07-17 21:36:47.193245', "updated_at" = '2013-07-17 21:36:47.193245', "auth_token" = 't1cDSjWsDu7PuS85s3zp' WHERE "public"."cadenero_members"."id" = 867  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:47 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 703 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Mo8R2mp9uDrH/YXmmabrM.FXQdWsc66.pPXM/zY3wmWwAJ1WWG7SC"], ["updated_at", Wed, 17 Jul 2013 21:36: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" = '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", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 867], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rL6NuZQKyHT63yGwwUhJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 867, "created_at" = '2013-07-17 21:36:47.372632', "updated_at" = '2013-07-17 21:36:47.372632', "authentication_token" = 'rL6NuZQKyHT63yGwwUhJ' WHERE "public"."cadenero_accounts"."id" = 704  (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", 704], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["user_id", 867]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'r3rW2WZzBEgpg3Ad4Uv2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 704, "user_id" = 867, "created_at" = '2013-07-17 21:36:47.378151', "updated_at" = '2013-07-17 21:36:47.378151', "auth_token" = 'r3rW2WZzBEgpg3Ad4Uv2' WHERE "public"."cadenero_members"."id" = 868  (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.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")  (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))   (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")  (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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36: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 ('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" = 704 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$KP4e9aK25gqcJHWds.OWoeEO41d8DHmidb4gyEMRrHiT8.govhk9y"], ["updated_at", Wed, 17 Jul 2013 21:36: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" = '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", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 868], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZDS8MuseWsvvsC1p71Qc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 868, "created_at" = '2013-07-17 21:36:47.551794', "updated_at" = '2013-07-17 21:36:47.551794', "authentication_token" = 'ZDS8MuseWsvvsC1p71Qc' WHERE "public"."cadenero_accounts"."id" = 705  (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", 705], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["user_id", 868]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wzdpfKxAyP8cnfaTuXfX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 705, "user_id" = 868, "created_at" = '2013-07-17 21:36:47.557198', "updated_at" = '2013-07-17 21:36:47.557198', "auth_token" = 'wzdpfKxAyP8cnfaTuXfX' WHERE "public"."cadenero_members"."id" = 869  (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)   (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")  (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, "auth_token" character varying(255))  (1.1ms) 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.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 ('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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$ZYAOnCp26Mg1LJ5kbr0aB.dM4EEgftcnkjg001BR3YnvR8oRZECHO"], ["updated_at", Wed, 17 Jul 2013 21:36: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.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", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 869], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wHzgULpkhqFeos6zPj4D' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 869, "created_at" = '2013-07-17 21:36:47.714127', "updated_at" = '2013-07-17 21:36:47.714127', "authentication_token" = 'wHzgULpkhqFeos6zPj4D' WHERE "public"."cadenero_accounts"."id" = 706  (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", 706], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["user_id", 869]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yEjNnCopWx7pxwh2ksTm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 706, "user_id" = 869, "created_at" = '2013-07-17 21:36:47.719275', "updated_at" = '2013-07-17 21:36:47.719275', "auth_token" = 'yEjNnCopWx7pxwh2ksTm' WHERE "public"."cadenero_members"."id" = 870  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:36:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 705 AND "public"."cadenero_users"."email" = 'user9@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  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$1xuP5YovXaA21PWjRlRP4Ozl1QqInuD6yBwPu0M0ePBZ/RhsgfwnG"], ["updated_at", Wed, 17 Jul 2013 21:36: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" = '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", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 870], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5VteCx9WukiZLtpLqw3z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 870, "created_at" = '2013-07-17 21:36:47.852825', "updated_at" = '2013-07-17 21:36:47.852825', "authentication_token" = '5VteCx9WukiZLtpLqw3z' WHERE "public"."cadenero_accounts"."id" = 707  (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", 707], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:36:47 UTC +00:00], ["user_id", 870]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qA72yGWeVuUZgPv8pcmt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 707, "user_id" = 870, "created_at" = '2013-07-17 21:36:47.858436', "updated_at" = '2013-07-17 21:36:47.858436', "auth_token" = 'qA72yGWeVuUZgPv8pcmt' WHERE "public"."cadenero_members"."id" = 871  (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")  (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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:36: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 870 Started GET "/v1?auth_token[]=qA72yGWeVuUZgPv8pcmt" for 127.0.0.1 at 2013-07-17 16:36:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["qA72yGWeVuUZgPv8pcmt"], "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 707 AND "public"."cadenero_members"."auth_token" IN ('qA72yGWeVuUZgPv8pcmt') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 870 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 870 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (4.1ms) ROLLBACK Connecting to database specified by database.yml  (2.2ms) BEGIN  (0.3ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$oXQ5qmV.kvllrF7uJY73W.Pr3SLO3uJIq1W9llfzI4b46h0NwunrS"], ["updated_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 871], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00]] Cadenero::V1::Account Load (7.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oX2tV5nWDaSiCE1vAyq4' LIMIT 1  (6.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 871, "created_at" = '2013-07-17 21:37:31.166983', "updated_at" = '2013-07-17 21:37:31.166983', "authentication_token" = 'oX2tV5nWDaSiCE1vAyq4' WHERE "public"."cadenero_accounts"."id" = 708  (3.8ms) RELEASE SAVEPOINT active_record_1  (7.1ms) SAVEPOINT active_record_1 SQL (7.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", 708], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["user_id", 871]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xP4ZiBsPm6nQDwyzpv1x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 708, "user_id" = 871, "created_at" = '2013-07-17 21:37:31.348014', "updated_at" = '2013-07-17 21:37:31.348014', "auth_token" = 'xP4ZiBsPm6nQDwyzpv1x' WHERE "public"."cadenero_members"."id" = 872  (5.4ms) RELEASE SAVEPOINT active_record_1  (1.1ms) 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.4ms) 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")  (10.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))  (4.1ms) 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.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)   (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 708 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" = 871 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 871 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 871 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 871 Completed 201 Created in 141ms (Views: 29.1ms | 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::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 708 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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" = 871 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Ntohnxb5X9F3lRzXQgwHHeUpxQEiWXj9dzIDEYBXvZM3ySaEUm29a"], ["updated_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 872], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'T9i4mwvoUPmy6mKgJUqd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 872, "created_at" = '2013-07-17 21:37:31.898669', "updated_at" = '2013-07-17 21:37:31.898669', "authentication_token" = 'T9i4mwvoUPmy6mKgJUqd' WHERE "public"."cadenero_accounts"."id" = 709  (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", 709], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:31 UTC +00:00], ["user_id", 872]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XyxFqvxEiY6n6chu7p1o' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 709, "user_id" = 872, "created_at" = '2013-07-17 21:37:31.905107', "updated_at" = '2013-07-17 21:37:31.905107', "auth_token" = 'XyxFqvxEiY6n6chu7p1o' WHERE "public"."cadenero_members"."id" = 873  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37: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.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" = 709 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 872 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 872 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 872 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 872 Completed 201 Created in 110ms (Views: 6.2ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 709 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"872", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 872 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$1OcBWs2MRf0uzydjnLTrnOQw8Gfoe8XFSp/0GmjbaEQSLTSygL8ty"], ["updated_at", Wed, 17 Jul 2013 21:37: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" = '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", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 873], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VcpqWqCpp43LfEpmecVD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 873, "created_at" = '2013-07-17 21:37:32.204440', "updated_at" = '2013-07-17 21:37:32.204440', "authentication_token" = 'VcpqWqCpp43LfEpmecVD' WHERE "public"."cadenero_accounts"."id" = 710  (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", 710], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["user_id", 873]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zwhk27EyzvEQpsssheRn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 710, "user_id" = 873, "created_at" = '2013-07-17 21:37:32.209830', "updated_at" = '2013-07-17 21:37:32.209830', "auth_token" = 'zwhk27EyzvEQpsssheRn' WHERE "public"."cadenero_members"."id" = 874  (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)   (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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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/users" for 127.0.0.1 at 2013-07-17 16:37: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" = '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", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$q3ewjM03su.3DhtzVtBJpOYFsHfazaoqhcllxiC.p2y2ykdUe/GpS"], ["updated_at", Wed, 17 Jul 2013 21:37:32 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", 710], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["user_id", 874]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6mhEjN1K3JELYyKsq3k5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 710, "user_id" = 874, "created_at" = '2013-07-17 21:37:32.384285', "updated_at" = '2013-07-17 21:37:32.384285', "auth_token" = '6mhEjN1K3JELYyKsq3k5' WHERE "public"."cadenero_members"."id" = 875  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 874 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 874 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 874 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 874 Completed 201 Created in 118ms (Views: 5.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 Started GET "/v1/users/874" for 127.0.0.1 at 2013-07-17 16:37:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"874"} 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" = 710 AND "public"."cadenero_users"."id" = 874 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 874 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 874 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 874 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 874 Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 1.6ms) 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-17 16:37: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" = 874 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 874 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 874 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" = 874 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-17 16:37:32 -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" = 874 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (10.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$tnUfYkYC2lN4UqtPS5Pv/ezrdga10MoR8Ub/ek3Ari.7iifswe1m."], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 875], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'twLx15bGpVsM5UvCnzhD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 875, "created_at" = '2013-07-17 21:37:32.567393', "updated_at" = '2013-07-17 21:37:32.567393', "authentication_token" = 'twLx15bGpVsM5UvCnzhD' WHERE "public"."cadenero_accounts"."id" = 711  (4.6ms) 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", 711], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["user_id", 875]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9PkCZXpPHYaSMoioPnHL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 711, "user_id" = 875, "created_at" = '2013-07-17 21:37:32.578074', "updated_at" = '2013-07-17 21:37:32.578074', "auth_token" = '9PkCZXpPHYaSMoioPnHL' WHERE "public"."cadenero_members"."id" = 876  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (5.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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.0ms) 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 ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37: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.5ms) 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" = 711 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" = 875 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 875 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 875 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 875 Completed 201 Created in 111ms (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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 711 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"875", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 875 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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-17 16:37: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.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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$BePpWnaf9BNphpWSQEygHOZ1ZlDC.1v/SxcQfBCJZ.g2VrAI9sD4m"], ["updated_at", Wed, 17 Jul 2013 21:37:32 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", 711], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:32 UTC +00:00], ["user_id", 876]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nQpDw4TVGy9pPyH5aicw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 711, "user_id" = 876, "created_at" = '2013-07-17 21:37:32.869951', "updated_at" = '2013-07-17 21:37:32.869951', "auth_token" = 'nQpDw4TVGy9pPyH5aicw' WHERE "public"."cadenero_members"."id" = 877  (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" = 876 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 876 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 876 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 876 Completed 201 Created in 113ms (Views: 5.8ms | 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/876" for 127.0.0.1 at 2013-07-17 16:37:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"876"} 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" = 711 AND "public"."cadenero_users"."id" = 876 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 876 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 876 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 876 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 876 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37: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" = 876 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 876 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 876 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 876 Completed 201 Created in 9ms (Views: 5.6ms | 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  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Ymsg/fRm3jplbNoNHZAO3O42Y6qh6cCvY/cnbhoWlYUCu73bGOD6K"], ["updated_at", Wed, 17 Jul 2013 21: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" = '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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 877], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yuTZzyriBfVhy1zyYbiV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 877, "created_at" = '2013-07-17 21:37:33.027253', "updated_at" = '2013-07-17 21:37:33.027253', "authentication_token" = 'yuTZzyriBfVhy1zyYbiV' WHERE "public"."cadenero_accounts"."id" = 712  (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", 712], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["user_id", 877]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pPm21PaewH3xAux4NvD3' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 712, "user_id" = 877, "created_at" = '2013-07-17 21:37:33.032781', "updated_at" = '2013-07-17 21:37:33.032781', "auth_token" = 'pPm21PaewH3xAux4NvD3' WHERE "public"."cadenero_members"."id" = 878  (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)  (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.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.6ms) 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"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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-17 16:37: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 ('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" = 712 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (20.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$9tAC5EAkYHIM8eFX366pA.IdlcKql2UR9gZa3XRZ/ZGxoenFWDksq"], ["updated_at", Wed, 17 Jul 2013 21:37: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" = '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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 878], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KKT9NpkDq5W5XVa8d7p5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 878, "created_at" = '2013-07-17 21:37:33.339394', "updated_at" = '2013-07-17 21:37:33.339394', "authentication_token" = 'KKT9NpkDq5W5XVa8d7p5' WHERE "public"."cadenero_accounts"."id" = 713  (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", 713], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["user_id", 878]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XYy3PdtcxH1szDfDjQkf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 713, "user_id" = 878, "created_at" = '2013-07-17 21:37:33.344956', "updated_at" = '2013-07-17 21:37:33.344956', "auth_token" = 'XYy3PdtcxH1szDfDjQkf' WHERE "public"."cadenero_members"."id" = 879  (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")  (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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$AVKEEfI.KEdzIKkVUZkhLugtJYYfwbMrGFfjo7/./jjF3n7X0s.bC"], ["updated_at", Wed, 17 Jul 2013 21: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" = '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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 879], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tHKraYvTUMxuz1PXd5o8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 879, "created_at" = '2013-07-17 21:37:33.494569', "updated_at" = '2013-07-17 21:37:33.494569', "authentication_token" = 'tHKraYvTUMxuz1PXd5o8' WHERE "public"."cadenero_accounts"."id" = 714  (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", 714], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["user_id", 879]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5yZhEcEx6vNSb6LLzSMJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 714, "user_id" = 879, "created_at" = '2013-07-17 21:37:33.499927', "updated_at" = '2013-07-17 21:37:33.499927', "auth_token" = '5yZhEcEx6vNSb6LLzSMJ' WHERE "public"."cadenero_members"."id" = 880  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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-17 16:37:33 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 713 AND "public"."cadenero_users"."email" = 'user7@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  (6.2ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) COMMIT  (1.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$.2LhdOwQsTDCx8Q3ZKImAOiXhiTW.fc0cC47YA.Tkdd.8Ex0QzRQW"], ["updated_at", Wed, 17 Jul 2013 21: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" = '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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 880], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SUUC64nzANcjJv1MYqR4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 880, "created_at" = '2013-07-17 21:37:33.635256', "updated_at" = '2013-07-17 21:37:33.635256', "authentication_token" = 'SUUC64nzANcjJv1MYqR4' WHERE "public"."cadenero_accounts"."id" = 715  (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", 715], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["user_id", 880]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JW7YDMm1pcCbG8Moepjh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 715, "user_id" = 880, "created_at" = '2013-07-17 21:37:33.640649', "updated_at" = '2013-07-17 21:37:33.640649', "auth_token" = 'JW7YDMm1pcCbG8Moepjh' WHERE "public"."cadenero_members"."id" = 881  (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)  (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")  (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.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")  (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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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-17 16:37: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 (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" = 715 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$6swcnMZRWX3T7Qa63yOkSeNj/K9d8Wiz4H3f7NXkZqaULnT2IZZMC"], ["updated_at", Wed, 17 Jul 2013 21: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 (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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 881], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pQXdmfZz2yewPczXDsVC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 881, "created_at" = '2013-07-17 21:37:33.821945', "updated_at" = '2013-07-17 21:37:33.821945', "authentication_token" = 'pQXdmfZz2yewPczXDsVC' WHERE "public"."cadenero_accounts"."id" = 716  (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", 716], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["user_id", 881]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZkMGjrYGiAQzFa9p2Ysb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 716, "user_id" = 881, "created_at" = '2013-07-17 21:37:33.827341', "updated_at" = '2013-07-17 21:37:33.827341', "auth_token" = 'ZkMGjrYGiAQzFa9p2Ysb' WHERE "public"."cadenero_members"."id" = 882  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "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.2ms) 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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:37:33 -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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$oS5SIlQPHhC2ZktWvznQ/OMF8ZIAVLzkqRPGGp4awfMWxXBN4gkwG"], ["updated_at", Wed, 17 Jul 2013 21: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" = '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", Wed, 17 Jul 2013 21:37:33 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 882], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:37:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Hd41h9qsYsZejWZi5Yhw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 882, "created_at" = '2013-07-17 21:37:33.996962', "updated_at" = '2013-07-17 21:37:33.996962', "authentication_token" = 'Hd41h9qsYsZejWZi5Yhw' WHERE "public"."cadenero_accounts"."id" = 717  (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", 717], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:37:34 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:37:34 UTC +00:00], ["user_id", 882]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4MsLj2yBxRiphTewCvxC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 717, "user_id" = 882, "created_at" = '2013-07-17 21:37:34.002330', "updated_at" = '2013-07-17 21:37:34.002330', "auth_token" = '4MsLj2yBxRiphTewCvxC' WHERE "public"."cadenero_members"."id" = 883  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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.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")  (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.2ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:37: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 882 Started GET "/v1?auth_token[]=4MsLj2yBxRiphTewCvxC" for 127.0.0.1 at 2013-07-17 16:37:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["4MsLj2yBxRiphTewCvxC"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 717 AND "public"."cadenero_members"."auth_token" IN ('4MsLj2yBxRiphTewCvxC') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 882 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 882 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (5.0ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (12.0ms) COMMIT  (5.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (27.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$qu3UtofYMBqk/X1/bAp18eZEchKcRyE1OF1YhKkNH0ePAxIBl1Ckq"], ["updated_at", Wed, 17 Jul 2013 21:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.1ms) 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 (20.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", Wed, 17 Jul 2013 21:42:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 883], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:42:04 UTC +00:00]] Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qpzjmwaijsiyhuRV77g9' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 883, "created_at" = '2013-07-17 21:42:04.974201', "updated_at" = '2013-07-17 21:42:04.974201', "authentication_token" = 'qpzjmwaijsiyhuRV77g9' WHERE "public"."cadenero_accounts"."id" = 718  (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", 718], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00], ["user_id", 883]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z4N67eXdqY6YsXscy4Xb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 718, "user_id" = 883, "created_at" = '2013-07-17 21:42:05.120417', "updated_at" = '2013-07-17 21:42:05.120417', "auth_token" = 'Z4N67eXdqY6YsXscy4Xb' WHERE "public"."cadenero_members"."id" = 884  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (4.1ms) 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, "auth_token" character varying(255))  (9.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (18.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42: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 (2.8ms) 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" = 718 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" = 883 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 883 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 883 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" = 883 Completed 201 Created in 205ms (Views: 30.8ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 718 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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" = 883 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$axngm0waR47GOUhacNKh9OCeq7VF2jpdy/2ATfS6.qAJ6cuq0IMY2"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 884], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1LV3yW2vQ5bwKRcqfiAj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 884, "created_at" = '2013-07-17 21:42:05.706052', "updated_at" = '2013-07-17 21:42:05.706052', "authentication_token" = '1LV3yW2vQ5bwKRcqfiAj' WHERE "public"."cadenero_accounts"."id" = 719  (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", 719], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:05 UTC +00:00], ["user_id", 884]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'agL4XoZ9WZpgkBjUFex1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 719, "user_id" = 884, "created_at" = '2013-07-17 21:42:05.711791', "updated_at" = '2013-07-17 21:42:05.711791', "auth_token" = 'agL4XoZ9WZpgkBjUFex1' WHERE "public"."cadenero_members"."id" = 885  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.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.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.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")  (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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42: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 (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 719 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" = 884 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 884 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 884 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 884 Completed 201 Created in 116ms (Views: 5.8ms | 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" = 719 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"884", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 884 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$zCItoKRGlMWDXawCbHxmiuE4d7sigK5Sw4QzhlhDIrLh3OgemtMPC"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 885], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'koPxP9qZyhwCYCAPzzMJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 885, "created_at" = '2013-07-17 21:42:06.050032', "updated_at" = '2013-07-17 21:42:06.050032', "authentication_token" = 'koPxP9qZyhwCYCAPzzMJ' WHERE "public"."cadenero_accounts"."id" = 720  (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", 720], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["user_id", 885]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dZe8WeYZBasfwYH8X6yz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 720, "user_id" = 885, "created_at" = '2013-07-17 21:42:06.055361', "updated_at" = '2013-07-17 21:42:06.055361', "auth_token" = 'dZe8WeYZBasfwYH8X6yz' WHERE "public"."cadenero_members"."id" = 886  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (0.8ms) 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")  (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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (13.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (17.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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/users" for 127.0.0.1 at 2013-07-17 16:42: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.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", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$LAery68ib6hrF40Xgh3xf.ur7/yXi.9gnm8lr.GZIHsGCWA8.0wf6"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 720], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["user_id", 886]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u8jsier2oqHnp334ABc6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 720, "user_id" = 886, "created_at" = '2013-07-17 21:42:06.263583', "updated_at" = '2013-07-17 21:42:06.263583', "auth_token" = 'u8jsier2oqHnp334ABc6' WHERE "public"."cadenero_members"."id" = 887  (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" = 886 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 886 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 886 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" = 886 Completed 201 Created in 123ms (Views: 5.7ms | 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/886" for 127.0.0.1 at 2013-07-17 16:42:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"886"} 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" = 720 AND "public"."cadenero_users"."id" = 886 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 886 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 886 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 886 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" = 886 Completed 200 OK in 13ms (Views: 6.1ms | 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-17 16:42: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 886 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 886 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 886 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" = 886 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42:06 -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" = 886 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$20XGjcsn8jSxgH7w.pxTAuYGLAXpZIkJtHkWLxCMPpHIJqKZ53Ls6"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 887], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e7wYVCj5TQZDhnpiv4hp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 887, "created_at" = '2013-07-17 21:42:06.440356', "updated_at" = '2013-07-17 21:42:06.440356', "authentication_token" = 'e7wYVCj5TQZDhnpiv4hp' WHERE "public"."cadenero_accounts"."id" = 721  (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", 721], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["user_id", 887]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ypH38eVrsoSdvHyqn2Jx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 721, "user_id" = 887, "created_at" = '2013-07-17 21:42:06.445739', "updated_at" = '2013-07-17 21:42:06.445739', "auth_token" = 'ypH38eVrsoSdvHyqn2Jx' WHERE "public"."cadenero_members"."id" = 888  (0.1ms) 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)  (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")  (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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) 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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42:06 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 721 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" = 887 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 887 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 887 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 887 Completed 201 Created in 110ms (Views: 5.6ms | 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' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 721 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42:06 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"887", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 887 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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/users" for 127.0.0.1 at 2013-07-17 16:42: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.5ms) 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", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$JjAnsKILhSIP4ko9fFfvbeq/bMZAeS4Jl/0gYWS9hAmhFbzInR3Hi"], ["updated_at", Wed, 17 Jul 2013 21:42:06 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", 721], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["user_id", 888]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vvm3iZt8pByedr18yDgw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 721, "user_id" = 888, "created_at" = '2013-07-17 21:42:06.780916', "updated_at" = '2013-07-17 21:42:06.780916', "auth_token" = 'vvm3iZt8pByedr18yDgw' WHERE "public"."cadenero_members"."id" = 889  (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" = 888 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 888 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 888 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 888 Completed 201 Created in 114ms (Views: 5.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/888" for 127.0.0.1 at 2013-07-17 16:42:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"888"} 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" = 721 AND "public"."cadenero_users"."id" = 888 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 888 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 888 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 888 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 888 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_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42: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" = 888 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 888 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 888 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" = 888 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$v7nrrxxroFNWCcNbRSjKIOr6QI.3MF.8ZuYO0IhJ4MQ/dakTd7oc6"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 889], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AwBMdkpHBr2fRCQgZW6y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 889, "created_at" = '2013-07-17 21:42:06.974715', "updated_at" = '2013-07-17 21:42:06.974715', "authentication_token" = 'AwBMdkpHBr2fRCQgZW6y' WHERE "public"."cadenero_accounts"."id" = 722  (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", 722], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:06 UTC +00:00], ["user_id", 889]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qGAMfFUz7axxhCjakBaL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 722, "user_id" = 889, "created_at" = '2013-07-17 21:42:06.980635', "updated_at" = '2013-07-17 21:42:06.980635', "auth_token" = 'qGAMfFUz7axxhCjakBaL' WHERE "public"."cadenero_members"."id" = 890  (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")  (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, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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-17 16:42: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.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" = 722 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.6ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$6ayDQ6hX4hOcG5JS7oozPOQAh0Fqzz692E98NUVzbXAGqOKXa5TBO"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = '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", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 890], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BBL1sDgaFzmmoaLrxKjs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 890, "created_at" = '2013-07-17 21:42:07.160005', "updated_at" = '2013-07-17 21:42:07.160005', "authentication_token" = 'BBL1sDgaFzmmoaLrxKjs' WHERE "public"."cadenero_accounts"."id" = 723  (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", 723], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["user_id", 890]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y8uM6NgrCyyVzsbBmCpS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 723, "user_id" = 890, "created_at" = '2013-07-17 21:42:07.166239', "updated_at" = '2013-07-17 21:42:07.166239', "auth_token" = 'y8uM6NgrCyyVzsbBmCpS' WHERE "public"."cadenero_members"."id" = 891  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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.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")  (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")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$urqM637BjAn0avY987uuZudNVOG1bydNNXg4nnvV4GsfD5zy9CN1a"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = '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", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 891], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gDEqXJk6NQDnKK13ssAq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 891, "created_at" = '2013-07-17 21:42:07.318114', "updated_at" = '2013-07-17 21:42:07.318114', "authentication_token" = 'gDEqXJk6NQDnKK13ssAq' WHERE "public"."cadenero_accounts"."id" = 724  (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", 724], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["user_id", 891]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MtFYPnsXbxyukHynyK7Q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 724, "user_id" = 891, "created_at" = '2013-07-17 21:42:07.323222', "updated_at" = '2013-07-17 21:42:07.323222', "auth_token" = 'MtFYPnsXbxyukHynyK7Q' WHERE "public"."cadenero_members"."id" = 892  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 723 AND "public"."cadenero_users"."email" = 'user7@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  (7.6ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$WaWqeOocFDLGuzPzUd0sueYUWWtP9AyQ1SZwrMWnNw5HwyMWVcPze"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = '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", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 892], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jSKomyPsngLtTVYe5irt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 892, "created_at" = '2013-07-17 21:42:07.458727', "updated_at" = '2013-07-17 21:42:07.458727', "authentication_token" = 'jSKomyPsngLtTVYe5irt' WHERE "public"."cadenero_accounts"."id" = 725  (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", 725], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["user_id", 892]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xyBWFEpxvsqss6skLGx7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 725, "user_id" = 892, "created_at" = '2013-07-17 21:42:07.464154', "updated_at" = '2013-07-17 21:42:07.464154', "auth_token" = 'xyBWFEpxvsqss6skLGx7' WHERE "public"."cadenero_members"."id" = 893  (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.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.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.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.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.2ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:42: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.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" = 725 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.2ms) ROLLBACK  (1.6ms) BEGIN  (0.1ms) COMMIT  (12.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$QMKVQce9c7EldNBQsdYoA.njAV.pR3jRfLHPao97lFZmV/KgFJCTu"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = '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", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 893], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zdK8zjoxizxMu2XpYaAK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 893, "created_at" = '2013-07-17 21:42:07.660950', "updated_at" = '2013-07-17 21:42:07.660950', "authentication_token" = 'zdK8zjoxizxMu2XpYaAK' WHERE "public"."cadenero_accounts"."id" = 726  (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", 726], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["user_id", 893]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'h8BLvWGRXRAjanobpH5p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 726, "user_id" = 893, "created_at" = '2013-07-17 21:42:07.666375', "updated_at" = '2013-07-17 21:42:07.666375', "auth_token" = 'h8BLvWGRXRAjanobpH5p' WHERE "public"."cadenero_members"."id" = 894  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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-17 16:42:07 -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.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$xO57Um8UdwPWmtFyc9h3aOh1SER2oNiu8DZYhy6fsbzxKNY6OnQ0m"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = '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", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 894], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tQf5uhSnpWPxWXSzUcsE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 894, "created_at" = '2013-07-17 21:42:07.835402', "updated_at" = '2013-07-17 21:42:07.835402', "authentication_token" = 'tQf5uhSnpWPxWXSzUcsE' WHERE "public"."cadenero_accounts"."id" = 727  (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", 727], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:07 UTC +00:00], ["user_id", 894]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ujzUyXMiwSzkhs5Swqra' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 727, "user_id" = 894, "created_at" = '2013-07-17 21:42:07.840771', "updated_at" = '2013-07-17 21:42:07.840771', "auth_token" = 'ujzUyXMiwSzkhs5Swqra' WHERE "public"."cadenero_members"."id" = 895  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 894 Started GET "/v1?auth_token[]=ujzUyXMiwSzkhs5Swqra" for 127.0.0.1 at 2013-07-17 16:42:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ujzUyXMiwSzkhs5Swqra"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 727 AND "public"."cadenero_members"."auth_token" IN ('ujzUyXMiwSzkhs5Swqra') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 894 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 894 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$bJZrY/pLsLAgq2RgP149Ju07Q6CHgLc6yi0q1B1KsTr0TlGxrNCKS"], ["updated_at", Wed, 17 Jul 2013 21:42: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 895], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UrXWr3h79RPKgcyKSo3M' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 895, "created_at" = '2013-07-17 21:42:08.024382', "updated_at" = '2013-07-17 21:42:08.024382', "authentication_token" = 'UrXWr3h79RPKgcyKSo3M' WHERE "public"."cadenero_accounts"."id" = 728  (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", 728], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["user_id", 895]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LAvy8XyDbeP2gBSQJgJG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 728, "user_id" = 895, "created_at" = '2013-07-17 21:42:08.030042', "updated_at" = '2013-07-17 21:42:08.030042', "auth_token" = 'LAvy8XyDbeP2gBSQJgJG' WHERE "public"."cadenero_members"."id" = 896  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:42:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:42:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$xGkacrGI.3OLYptL89jvNOh1q7HNkD416n8kHT8wJWfCIABl6lzsW"], ["updated_at", Wed, 17 Jul 2013 21:42: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", 728], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:42:08 UTC +00:00], ["user_id", 896]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2xYckstTPUd9xyqpgLAq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 728, "user_id" = 896, "created_at" = '2013-07-17 21:42:08.186345', "updated_at" = '2013-07-17 21:42:08.186345', "auth_token" = '2xYckstTPUd9xyqpgLAq' WHERE "public"."cadenero_members"."id" = 897  (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" = 896 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 896 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 896 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 896 Completed 201 Created in 115ms (Views: 7.0ms | 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/896" for 127.0.0.1 at 2013-07-17 16:42:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"896"} Cadenero::V1::Account Load (0.5ms) 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" = 728 AND "public"."cadenero_users"."id" = 896 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 896 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 896 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 896 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 896 Completed 200 OK in 41ms (Views: 5.9ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 895 Started GET "/v1?auth_token[]=LAvy8XyDbeP2gBSQJgJG" for 127.0.0.1 at 2013-07-17 16:42:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["LAvy8XyDbeP2gBSQJgJG"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 728 AND "public"."cadenero_members"."auth_token" IN ('LAvy8XyDbeP2gBSQJgJG') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 895 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 895 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 896 Started GET "/v1?auth_token[]=2xYckstTPUd9xyqpgLAq" for 127.0.0.1 at 2013-07-17 16:42:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["2xYckstTPUd9xyqpgLAq"], "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 895 LIMIT 1 Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.5ms)  (6.0ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (14.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$tSYMmh7iKwpkMpJTcutfbe/4bUPo1TbPTE7PoGhlllNIbjj.Ex.1u"], ["updated_at", Wed, 17 Jul 2013 21:47:21 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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 (18.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", Wed, 17 Jul 2013 21:47:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 897], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:47:21 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4o3wEKrPfoNdGr4UFxzJ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 897, "created_at" = '2013-07-17 21:47:21.431035', "updated_at" = '2013-07-17 21:47:21.431035', "authentication_token" = '4o3wEKrPfoNdGr4UFxzJ' WHERE "public"."cadenero_accounts"."id" = 729  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.4ms) 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", 729], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:21 UTC +00:00], ["user_id", 897]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tqVY1kNWzsYrMpAJxUSi' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 729, "user_id" = 897, "created_at" = '2013-07-17 21:47:21.578593', "updated_at" = '2013-07-17 21:47:21.578593', "auth_token" = 'tqVY1kNWzsYrMpAJxUSi' WHERE "public"."cadenero_members"."id" = 898  (1.8ms) 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)   (0.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.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.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")  (0.8ms) 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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:47:21 -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.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 729 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" = 897 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 897 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 897 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" = 897 Completed 201 Created in 241ms (Views: 31.6ms | ActiveRecord: 5.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.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 729 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-17 16:47:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"897", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 897 LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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/users" for 127.0.0.1 at 2013-07-17 16:47:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$2di9.XpiuTbMiJzVDtYJQu092hzdiqqqVI4j3vLDUk4FzKNo5uvC6"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 729], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["user_id", 898]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M1xfeEkMGmwWpUnfr7ZQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 729, "user_id" = 898, "created_at" = '2013-07-17 21:47:22.070310', "updated_at" = '2013-07-17 21:47:22.070310', "auth_token" = 'M1xfeEkMGmwWpUnfr7ZQ' WHERE "public"."cadenero_members"."id" = 899  (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" = 898 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 898 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 898 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 898 Completed 201 Created in 114ms (Views: 6.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/898" for 127.0.0.1 at 2013-07-17 16:47:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"898"} 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.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" = 729 AND "public"."cadenero_users"."id" = 898 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 898 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 898 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 898 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" = 898 Completed 200 OK in 12ms (Views: 5.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-17 16:47: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 898 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 898 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 898 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 898 Completed 201 Created in 8ms (Views: 5.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  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$GIYfqw08R0xusEz5XCBJPOWM2dc6pbb/kmkKsQHIkZpNv7BJsF7jC"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 899], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]] Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3sx4fbyrbvWAVhA3s2AR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 899, "created_at" = '2013-07-17 21:47:22.234207', "updated_at" = '2013-07-17 21:47:22.234207', "authentication_token" = '3sx4fbyrbvWAVhA3s2AR' WHERE "public"."cadenero_accounts"."id" = 730  (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", 730], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["user_id", 899]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z37zY4Vt89RDjMgo3Kxb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 730, "user_id" = 899, "created_at" = '2013-07-17 21:47:22.241870', "updated_at" = '2013-07-17 21:47:22.241870', "auth_token" = 'Z37zY4Vt89RDjMgo3Kxb' WHERE "public"."cadenero_members"."id" = 900  (0.1ms) 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)   (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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-17 16:47: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.4ms) 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" = 730 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" = 899 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 899 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 899 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 899 Completed 201 Created in 112ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 730 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47:22 -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" = 899 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (1.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$FaJB4oPvBUT12juuZr4ZKe8eftl1f.mXv9.nPkvw0IFAMt9iBsqxS"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 900], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LDqqs3qVQ8iEpJ3UzcLD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 900, "created_at" = '2013-07-17 21:47:22.592638', "updated_at" = '2013-07-17 21:47:22.592638', "authentication_token" = 'LDqqs3qVQ8iEpJ3UzcLD' WHERE "public"."cadenero_accounts"."id" = 731  (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", 731], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["user_id", 900]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fLA2LHc8ZKR5sizZFaTy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 731, "user_id" = 900, "created_at" = '2013-07-17 21:47:22.598000', "updated_at" = '2013-07-17 21:47:22.598000', "auth_token" = 'fLA2LHc8ZKR5sizZFaTy' WHERE "public"."cadenero_members"."id" = 901  (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)  (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.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))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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/users" for 127.0.0.1 at 2013-07-17 16:47: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" = '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", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$LaX3SPTwJbktnVOtop5dp.FJnvtRyyL5bINyfyY1BhWlXxzLKu5S6"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 731], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["user_id", 901]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '85BRp1Q2zLtbquoezVss' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 731, "user_id" = 901, "created_at" = '2013-07-17 21:47:22.777106', "updated_at" = '2013-07-17 21:47:22.777106', "auth_token" = '85BRp1Q2zLtbquoezVss' WHERE "public"."cadenero_members"."id" = 902  (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" = 901 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 901 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 901 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 901 Completed 201 Created in 114ms (Views: 5.9ms | 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/901" for 127.0.0.1 at 2013-07-17 16:47:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"901"} 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" = 731 AND "public"."cadenero_users"."id" = 901 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 901 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 901 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 901 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" = 901 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:47: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 901 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 901 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 901 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" = 901 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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" = 901 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$HGUOgkkSeu1UQZClCQ6KjexeCtiCcF5IQuohEf3uISql8F3PR5Buu"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 902], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B4U5v8VkpnxLuGUBZ3wS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 902, "created_at" = '2013-07-17 21:47:22.948789', "updated_at" = '2013-07-17 21:47:22.948789', "authentication_token" = 'B4U5v8VkpnxLuGUBZ3wS' WHERE "public"."cadenero_accounts"."id" = 732  (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", 732], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:22 UTC +00:00], ["user_id", 902]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QjqRGxM3c4NzQuSkVPcX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 732, "user_id" = 902, "created_at" = '2013-07-17 21:47:22.954368', "updated_at" = '2013-07-17 21:47:22.954368', "auth_token" = 'QjqRGxM3c4NzQuSkVPcX' WHERE "public"."cadenero_members"."id" = 903  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.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, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:47: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 732 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" = 902 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 902 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 902 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 902 Completed 201 Created in 109ms (Views: 5.9ms | 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" = 732 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:47:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"902", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 902 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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)  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$A/N9PGdU4TeWucF5kMOYVeJU/VzfA4LunVzjcTXVbwf7MoKxkDWi."], ["updated_at", Wed, 17 Jul 2013 21:47: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" = '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", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 903], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pbpiToRm7UXsQYiGCd5i' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 903, "created_at" = '2013-07-17 21:47:23.315984', "updated_at" = '2013-07-17 21:47:23.315984', "authentication_token" = 'pbpiToRm7UXsQYiGCd5i' WHERE "public"."cadenero_accounts"."id" = 733  (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", 733], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["user_id", 903]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P2dJmDrPbyxxKYp4qczN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 733, "user_id" = 903, "created_at" = '2013-07-17 21:47:23.321927', "updated_at" = '2013-07-17 21:47:23.321927', "auth_token" = 'P2dJmDrPbyxxKYp4qczN' WHERE "public"."cadenero_members"."id" = 904  (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)  (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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:47:23 -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  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$0kNbyV2jMgefGjY2DWoDbu9s79romh0EAWMEiuKXVNZ3vzK.8XtVW"], ["updated_at", Wed, 17 Jul 2013 21:47: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" = '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", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 904], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cXkWzbdpPsNXzugqwFM3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 904, "created_at" = '2013-07-17 21:47:23.534473', "updated_at" = '2013-07-17 21:47:23.534473', "authentication_token" = 'cXkWzbdpPsNXzugqwFM3' WHERE "public"."cadenero_accounts"."id" = 734  (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", 734], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["user_id", 904]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tgMdD99LYQNgqXppep6p' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 734, "user_id" = 904, "created_at" = '2013-07-17 21:47:23.539990', "updated_at" = '2013-07-17 21:47:23.539990', "auth_token" = 'tgMdD99LYQNgqXppep6p' WHERE "public"."cadenero_members"."id" = 905  (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)   (0.8ms) 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.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.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")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:47: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 ('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" = 734 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$JK3wZ9LYnv3IsHD.f30ZeuJhhwvUtZW/edKNBLq89L6fQhF341fvy"], ["updated_at", Wed, 17 Jul 2013 21:47: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" = '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", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 905], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wVmHYNsWKEKutQ4qXeSp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 905, "created_at" = '2013-07-17 21:47:23.718008', "updated_at" = '2013-07-17 21:47:23.718008', "authentication_token" = 'wVmHYNsWKEKutQ4qXeSp' WHERE "public"."cadenero_accounts"."id" = 735  (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", 735], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["user_id", 905]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MzaHEsLuaV7FQD5ryYAu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 735, "user_id" = 905, "created_at" = '2013-07-17 21:47:23.723496', "updated_at" = '2013-07-17 21:47:23.723496', "auth_token" = 'MzaHEsLuaV7FQD5ryYAu' WHERE "public"."cadenero_members"."id" = 906  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.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, "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")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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-17 16:47: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 ('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" = 735 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.8ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$EA9fDL9N8M7LQbrOkb5akOYH8SYP5rFfWXuSZBMnDHdykQMks5Qpq"], ["updated_at", Wed, 17 Jul 2013 21:47: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" = '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", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 906], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7bgMMgpMG1bNdUvyeyCe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 906, "created_at" = '2013-07-17 21:47:23.901296', "updated_at" = '2013-07-17 21:47:23.901296', "authentication_token" = '7bgMMgpMG1bNdUvyeyCe' WHERE "public"."cadenero_accounts"."id" = 736  (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", 736], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:23 UTC +00:00], ["user_id", 906]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4WUgrqMX12yqLpV8Typi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 736, "user_id" = 906, "created_at" = '2013-07-17 21:47:23.906781', "updated_at" = '2013-07-17 21:47:23.906781', "auth_token" = '4WUgrqMX12yqLpV8Typi' WHERE "public"."cadenero_members"."id" = 907  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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')  (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", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$wtWX8xFXUXxRnX7A1cDlZeSqEKqCjDLFMe7/b7j1hOK02/VyuaKx."], ["updated_at", Wed, 17 Jul 2013 21:47: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" = '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", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 907], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qxuwVxtDZPp1JXqoizxz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 907, "created_at" = '2013-07-17 21:47:24.054972', "updated_at" = '2013-07-17 21:47:24.054972', "authentication_token" = 'qxuwVxtDZPp1JXqoizxz' WHERE "public"."cadenero_accounts"."id" = 737  (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", 737], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["user_id", 907]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x4Hz34hhpepx5yyEvdkP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 737, "user_id" = 907, "created_at" = '2013-07-17 21:47:24.060298', "updated_at" = '2013-07-17 21:47:24.060298', "auth_token" = 'x4Hz34hhpepx5yyEvdkP' WHERE "public"."cadenero_members"."id" = 908  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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-17 16:47:24 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 736 AND "public"."cadenero_users"."email" = 'user9@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  (6.6ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$xesf3I3zqWy2oJG4b.uG/uAgShQEIq921BYxpYjIf/rpxxsg.UpM."], ["updated_at", Wed, 17 Jul 2013 21:47: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" = '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", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 908], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7L87RWDs61AH86uCTzdT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 908, "created_at" = '2013-07-17 21:47:24.191323', "updated_at" = '2013-07-17 21:47:24.191323', "authentication_token" = '7L87RWDs61AH86uCTzdT' WHERE "public"."cadenero_accounts"."id" = 738  (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", 738], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["user_id", 908]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WrChGMtFsAtETVuqeWfK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 738, "user_id" = 908, "created_at" = '2013-07-17 21:47:24.196896', "updated_at" = '2013-07-17 21:47:24.196896', "auth_token" = 'WrChGMtFsAtETVuqeWfK' WHERE "public"."cadenero_members"."id" = 909  (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)  (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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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) Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 908 Started GET "/v1?auth_token[]=WrChGMtFsAtETVuqeWfK" for 127.0.0.1 at 2013-07-17 16:47:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["WrChGMtFsAtETVuqeWfK"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 738 AND "public"."cadenero_members"."auth_token" IN ('WrChGMtFsAtETVuqeWfK') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 908 LIMIT 1 Completed 500 Internal Server Error in 5ms  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$y5Nsxskw3hczKPhnHvhvyeIV3MN1APkxn0og0jPlF3ND.7wixtnSW"], ["updated_at", Wed, 17 Jul 2013 21:47: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 909], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kcVpfA2V1MT4Qx5Yo8A8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 909, "created_at" = '2013-07-17 21:47:24.374230', "updated_at" = '2013-07-17 21:47:24.374230', "authentication_token" = 'kcVpfA2V1MT4Qx5Yo8A8' WHERE "public"."cadenero_accounts"."id" = 739  (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", 739], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["user_id", 909]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sv4RW8NdNCefdGb4cdpY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 739, "user_id" = 909, "created_at" = '2013-07-17 21:47:24.379721', "updated_at" = '2013-07-17 21:47:24.379721', "auth_token" = 'sv4RW8NdNCefdGb4cdpY' WHERE "public"."cadenero_members"."id" = 910  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:47: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/users" for 127.0.0.1 at 2013-07-17 16:47:24 -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" = '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", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$mpWk5gfrZn3fxeR7NEiKDOElJN9l4v9ODnD.X3/ToPbIgZzOlHb7O"], ["updated_at", Wed, 17 Jul 2013 21:47:24 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", 739], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:47:24 UTC +00:00], ["user_id", 910]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '66HbY2DqzDkd2ny8x822' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 739, "user_id" = 910, "created_at" = '2013-07-17 21:47:24.538472', "updated_at" = '2013-07-17 21:47:24.538472', "auth_token" = '66HbY2DqzDkd2ny8x822' WHERE "public"."cadenero_members"."id" = 911  (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" = 910 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 910 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 910 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 910 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/910" for 127.0.0.1 at 2013-07-17 16:47:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"910"} 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" = 739 AND "public"."cadenero_users"."id" = 910 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 910 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 910 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 910 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 910 Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 909 Started GET "/v1?auth_token[]=sv4RW8NdNCefdGb4cdpY" for 127.0.0.1 at 2013-07-17 16:47:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["sv4RW8NdNCefdGb4cdpY"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 739 AND "public"."cadenero_members"."auth_token" IN ('sv4RW8NdNCefdGb4cdpY') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 909 LIMIT 1 Completed 500 Internal Server Error in 6ms  (6.1ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.7ms) BEGIN  (7.5ms) 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", Wed, 17 Jul 2013 21:53:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$CpWpkFaDBusnnRCZWj03.e9DPqQ4BjW9QiJtFmwItGCLxQeTur9Tq"], ["updated_at", Wed, 17 Jul 2013 21:53: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" = '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", Wed, 17 Jul 2013 21:53:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 911], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 21:53:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SHPxrzzKYQWJGGwGzXfj' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 911, "created_at" = '2013-07-17 21:53:01.589698', "updated_at" = '2013-07-17 21:53:01.589698', "authentication_token" = 'SHPxrzzKYQWJGGwGzXfj' WHERE "public"."cadenero_accounts"."id" = 740  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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", 740], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:01 UTC +00:00], ["user_id", 911]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n6wVW9Yy5yrWyYndZwas' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 740, "user_id" = 911, "created_at" = '2013-07-17 21:53:01.780525', "updated_at" = '2013-07-17 21:53:01.780525', "auth_token" = 'n6wVW9Yy5yrWyYndZwas' WHERE "public"."cadenero_members"."id" = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (12.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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)   (4.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:01 -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.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" = 740 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 911 LIMIT 1 Cadenero::Member Load (5.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 911 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 911 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" = 911 Completed 201 Created in 163ms (Views: 33.7ms | ActiveRecord: 12.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" = 740 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53: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" = 911 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.7ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$oqjUCDsSXo.z58iim64ua.DPMJsq7B9iRSlmWfROxhpD/urJ6/yoe"], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 912], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2XKekSMyiz8tcjMejEYa' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 912, "created_at" = '2013-07-17 21:53:02.304210', "updated_at" = '2013-07-17 21:53:02.304210', "authentication_token" = '2XKekSMyiz8tcjMejEYa' WHERE "public"."cadenero_accounts"."id" = 741  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 741], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["user_id", 912]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FaJpjnLeHMLcRNth6GhC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 741, "user_id" = 912, "created_at" = '2013-07-17 21:53:02.309910', "updated_at" = '2013-07-17 21:53:02.309910', "auth_token" = 'FaJpjnLeHMLcRNth6GhC' WHERE "public"."cadenero_members"."id" = 913  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.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.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))   (12.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.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.6ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 16:53:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:53: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.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", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$GPXpR5SI2kG6C7Rv7A1VCu8gvMEunLm/rujY1.xgpvPWscsf/dU4m"], ["updated_at", Wed, 17 Jul 2013 21:53: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", 741], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["user_id", 913]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Mq24k6y3Xh9VMhXEsWzB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 741, "user_id" = 913, "created_at" = '2013-07-17 21:53:02.507714', "updated_at" = '2013-07-17 21:53:02.507714', "auth_token" = 'Mq24k6y3Xh9VMhXEsWzB' WHERE "public"."cadenero_members"."id" = 914  (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" = 913 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 913 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 913 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 913 Completed 201 Created in 123ms (Views: 14.0ms | 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/913" for 127.0.0.1 at 2013-07-17 16:53:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"913"} 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" = 741 AND "public"."cadenero_users"."id" = 913 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 913 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 913 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 913 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 913 Completed 200 OK in 16ms (Views: 10.3ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 913 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 913 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 913 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" = 913 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53:02 -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" = 913 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (1.5ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$unBQoje8VvR.xTMDkneffOrP83szqMSO/btgSEa8rOFM2w5bxU00i"], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 914], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'agT19wmjuyGaPiB4jx2A' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 914, "created_at" = '2013-07-17 21:53:02.717864', "updated_at" = '2013-07-17 21:53:02.717864', "authentication_token" = 'agT19wmjuyGaPiB4jx2A' WHERE "public"."cadenero_accounts"."id" = 742  (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", 742], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:02 UTC +00:00], ["user_id", 914]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sAyNm5DJw45xnwqG9cfy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 742, "user_id" = 914, "created_at" = '2013-07-17 21:53:02.724072', "updated_at" = '2013-07-17 21:53:02.724072', "auth_token" = 'sAyNm5DJw45xnwqG9cfy' WHERE "public"."cadenero_members"."id" = 915  (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)   (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.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))  (3.8ms) 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")  (5.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)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) 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" = 742 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" = 914 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 914 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 914 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" = 914 Completed 201 Created in 109ms (Views: 5.5ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 742 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"914", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 914 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53: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)  (5.0ms) ROLLBACK  (4.2ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$MRRS9VOBhlDNcH1yORtl0OL7ThvhNb6oZsH1NPmD4uaHoQzsDpu5q"], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 915], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qUJy8cPnkD7yfRUg7Ycd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 915, "created_at" = '2013-07-17 21:53:03.040497', "updated_at" = '2013-07-17 21:53:03.040497', "authentication_token" = 'qUJy8cPnkD7yfRUg7Ycd' WHERE "public"."cadenero_accounts"."id" = 743  (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", 743], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["user_id", 915]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JzXxU9pZYGkZzfssbz1Z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 743, "user_id" = 915, "created_at" = '2013-07-17 21:53:03.045937', "updated_at" = '2013-07-17 21:53:03.045937', "auth_token" = 'JzXxU9pZYGkZzfssbz1Z' WHERE "public"."cadenero_members"."id" = 916  (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)  (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.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.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")  (1.5ms) 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.4ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 743 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" = 915 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 915 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 915 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 915 Completed 201 Created in 134ms (Views: 5.8ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 743 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"915", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 915 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53: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-17 16:53:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$/q6UF2V6ArdJSCvIJ4WcVOVp4kIr3cLcqIRJ/H.IK9szoXgOGK41e"], ["updated_at", Wed, 17 Jul 2013 21:53:03 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", 743], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["user_id", 916]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p9LtGqgTVKpwptp4pyib' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 743, "user_id" = 916, "created_at" = '2013-07-17 21:53:03.408273', "updated_at" = '2013-07-17 21:53:03.408273', "auth_token" = 'p9LtGqgTVKpwptp4pyib' WHERE "public"."cadenero_members"."id" = 917  (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" = 916 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 916 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 916 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 916 Completed 201 Created in 163ms (Views: 6.7ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/916" for 127.0.0.1 at 2013-07-17 16:53:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"916"} 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" = 743 AND "public"."cadenero_users"."id" = 916 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 916 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 916 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 916 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 916 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53: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" = 916 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 916 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 916 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" = 916 Completed 201 Created in 7ms (Views: 4.7ms | 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  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$sKfBqFRJrvC1Xz/ItZ7gU.Ro9AHGeQfsx0icVdmZH9p7EAOxAS9xS"], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (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", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 917], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3vdmQyKyNJjZeaxUsX8q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 917, "created_at" = '2013-07-17 21:53:03.605682', "updated_at" = '2013-07-17 21:53:03.605682', "authentication_token" = '3vdmQyKyNJjZeaxUsX8q' WHERE "public"."cadenero_accounts"."id" = 744  (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", 744], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["user_id", 917]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5qGx64quQpFQSxyac3iy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 744, "user_id" = 917, "created_at" = '2013-07-17 21:53:03.611345', "updated_at" = '2013-07-17 21:53:03.611345', "auth_token" = '5qGx64quQpFQSxyac3iy' WHERE "public"."cadenero_members"."id" = 918  (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)  (3.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")  (8.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (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.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53: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.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" = 744 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (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  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Pb1jRYxcbcHUKOxMkPRu6OXTISHhKf1FmFfaKaI9rGB2jGVU3g58i"], ["updated_at", Wed, 17 Jul 2013 21:53: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" = '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", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 918], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wLE1Wjzoghy9K2LzPxSg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 918, "created_at" = '2013-07-17 21:53:03.873094', "updated_at" = '2013-07-17 21:53:03.873094', "authentication_token" = 'wLE1Wjzoghy9K2LzPxSg' WHERE "public"."cadenero_accounts"."id" = 745  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 745], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:03 UTC +00:00], ["user_id", 918]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p43tEMa88ThPW5Aqmp7h' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 745, "user_id" = 918, "created_at" = '2013-07-17 21:53:03.884401', "updated_at" = '2013-07-17 21:53:03.884401', "auth_token" = 'p43tEMa88ThPW5Aqmp7h' WHERE "public"."cadenero_members"."id" = 919  (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.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))  (0.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.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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 745 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$H62I0FqebddeZ1u4FTOgCuHfFOUUbxurkzSNUNPv1e3ueDiaM8vq2"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 919], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vSPqpufbxafkciGKLvsd' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 919, "created_at" = '2013-07-17 21:53:04.114232', "updated_at" = '2013-07-17 21:53:04.114232', "authentication_token" = 'vSPqpufbxafkciGKLvsd' WHERE "public"."cadenero_accounts"."id" = 746  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", 746], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["user_id", 919]] Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CzFEMysVvUWeQu9uGpME' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 746, "user_id" = 919, "created_at" = '2013-07-17 21:53:04.121549', "updated_at" = '2013-07-17 21:53:04.121549', "auth_token" = 'CzFEMysVvUWeQu9uGpME' WHERE "public"."cadenero_members"."id" = 920  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (10.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$KL50BH/MtZBUw/AplrvbJuF2xJ8mGDES/dSeg33xxA2EQGqA/.m6O"], ["updated_at", Wed, 17 Jul 2013 21:53:04 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" = '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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 920], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BWE2ppcpVJU6374sDgy8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 920, "created_at" = '2013-07-17 21:53:04.310698', "updated_at" = '2013-07-17 21:53:04.310698', "authentication_token" = 'BWE2ppcpVJU6374sDgy8' WHERE "public"."cadenero_accounts"."id" = 747  (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", 747], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["user_id", 920]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pnmpmKx587fcTHbUkEM9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 747, "user_id" = 920, "created_at" = '2013-07-17 21:53:04.315835', "updated_at" = '2013-07-17 21:53:04.315835', "auth_token" = 'pnmpmKx587fcTHbUkEM9' WHERE "public"."cadenero_members"."id" = 921  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53: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/sessions" for 127.0.0.1 at 2013-07-17 16:53:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) 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" = 746 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.5ms | 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' LIMIT 1  (5.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$BD4HI4yPuwFKpcCmVv/xwe.Vm1NemkkG3.PRx2uDSk5fQXndo36Ee"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 921], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gHqTQpt7NU1Ay88Cse3y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 921, "created_at" = '2013-07-17 21:53:04.502805', "updated_at" = '2013-07-17 21:53:04.502805', "authentication_token" = 'gHqTQpt7NU1Ay88Cse3y' WHERE "public"."cadenero_accounts"."id" = 748  (0.2ms) 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", 748], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["user_id", 921]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FuyyfUzJr3cWsBZxhyDN' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 748, "user_id" = 921, "created_at" = '2013-07-17 21:53:04.510553', "updated_at" = '2013-07-17 21:53:04.510553', "auth_token" = 'FuyyfUzJr3cWsBZxhyDN' WHERE "public"."cadenero_members"."id" = 922  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test9"  (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)   (6.2ms) 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.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.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 16:53:04 -0500 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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$V.nZUd3h0oUhwIg1f7pQg.UV9Nk5i/Vmmn.qBoMW6J4pC8DqyhDS."], ["updated_at", Wed, 17 Jul 2013 21:53: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" = '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", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 922], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8T7fr4uS4sF5v6Smj6ki' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 922, "created_at" = '2013-07-17 21:53:04.729069', "updated_at" = '2013-07-17 21:53:04.729069', "authentication_token" = '8T7fr4uS4sF5v6Smj6ki' WHERE "public"."cadenero_accounts"."id" = 749  (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", 749], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["user_id", 922]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '74Ft7dYZVV7fkqpcq9m5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 749, "user_id" = 922, "created_at" = '2013-07-17 21:53:04.734841', "updated_at" = '2013-07-17 21:53:04.734841', "auth_token" = '74Ft7dYZVV7fkqpcq9m5' WHERE "public"."cadenero_members"."id" = 923  (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)  (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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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")  (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)  (6.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 ('20130715174857')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 922 Started GET "/v1?auth_token[]=74Ft7dYZVV7fkqpcq9m5" for 127.0.0.1 at 2013-07-17 16:53:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["74Ft7dYZVV7fkqpcq9m5"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 749 AND "public"."cadenero_members"."auth_token" IN ('74Ft7dYZVV7fkqpcq9m5') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 922 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 922 LIMIT 1 Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.2ms)  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VbnG0wATE9mBXKoHGVHZueNxF0.aL/ItJP1jNJaePvvwGAy9lzZDC"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 923], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 21:53:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4Vtg3vqMGovpA9Fmitmb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 923, "created_at" = '2013-07-17 21:53:04.999152', "updated_at" = '2013-07-17 21:53:04.999152', "authentication_token" = '4Vtg3vqMGovpA9Fmitmb' WHERE "public"."cadenero_accounts"."id" = 750  (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", 750], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:05 UTC +00:00], ["user_id", 923]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ybjyWkeZC2qzPn698Z6E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 750, "user_id" = 923, "created_at" = '2013-07-17 21:53:05.005506', "updated_at" = '2013-07-17 21:53:05.005506', "auth_token" = 'ybjyWkeZC2qzPn698Z6E' WHERE "public"."cadenero_members"."id" = 924  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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")  (8.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 16:53: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.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 16:53: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" = '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", Wed, 17 Jul 2013 21:53:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$qpqzHcHD.IYJ/Ei.sk2oKuzu7l9PXH2I1HnqYhBNyA6Dbu9zsH0.i"], ["updated_at", Wed, 17 Jul 2013 21:53:05 UTC +00:00]] SQL (12.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", 750], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 21:53:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 21:53:05 UTC +00:00], ["user_id", 924]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vAjA1cRp1ugSs8pSMFfa' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 750, "user_id" = 924, "created_at" = '2013-07-17 21:53:05.214911', "updated_at" = '2013-07-17 21:53:05.214911', "auth_token" = 'vAjA1cRp1ugSs8pSMFfa' WHERE "public"."cadenero_members"."id" = 925  (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" = 924 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 924 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 924 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 924 Completed 201 Created in 160ms (Views: 5.9ms | ActiveRecord: 15.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/924" for 127.0.0.1 at 2013-07-17 16:53:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"924"} 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" = 750 AND "public"."cadenero_users"."id" = 924 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 924 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 924 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 924 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 924 Completed 200 OK in 68ms (Views: 61.9ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 923 Started GET "/v1?auth_token[]=ybjyWkeZC2qzPn698Z6E" for 127.0.0.1 at 2013-07-17 16:53:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ybjyWkeZC2qzPn698Z6E"], "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::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 750 AND "public"."cadenero_members"."auth_token" IN ('ybjyWkeZC2qzPn698Z6E') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 923 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 923 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 3.1ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 924 Started GET "/v1?auth_token[]=vAjA1cRp1ugSs8pSMFfa" for 127.0.0.1 at 2013-07-17 16:53:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["vAjA1cRp1ugSs8pSMFfa"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 750 AND "public"."cadenero_members"."auth_token" IN ('vAjA1cRp1ugSs8pSMFfa') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 924 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 924 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (5.9ms) ROLLBACK Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (10.0ms) BEGIN  (10.3ms) SAVEPOINT active_record_1 SQL (14.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$SsP.V.PlwAZaVGfzGhsm5.LnF1Br.9SAemUxYgLvfVJh.dUeY9FUC"], ["updated_at", Wed, 17 Jul 2013 22:00:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.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 (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", Wed, 17 Jul 2013 22:00:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 925], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:00:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qCVkTXKpctEw5x2fZS7T' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 925, "created_at" = '2013-07-17 22:00:28.763860', "updated_at" = '2013-07-17 22:00:28.763860', "authentication_token" = 'qCVkTXKpctEw5x2fZS7T' WHERE "public"."cadenero_accounts"."id" = 751  (3.8ms) 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", 751], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:28 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:28 UTC +00:00], ["user_id", 925]] Cadenero::Member Load (4.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'i47yfypprnU3ssxny6fJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 751, "user_id" = 925, "created_at" = '2013-07-17 22:00:28.945420', "updated_at" = '2013-07-17 22:00:28.945420', "auth_token" = 'i47yfypprnU3ssxny6fJ' WHERE "public"."cadenero_members"."id" = 926  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.7ms) 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, "auth_token" character varying(255))  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 925 Started GET "/v1?auth_token[]=i47yfypprnU3ssxny6fJ" for 127.0.0.1 at 2013-07-17 17:00:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["i47yfypprnU3ssxny6fJ"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 751 AND "public"."cadenero_members"."auth_token" IN ('i47yfypprnU3ssxny6fJ') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 925 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 925 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (7.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$M8.5iKiECmOUOlZBdW.K8uc6bm8DeIBg1pyW1FZtxWgol6R97wrhS"], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 926], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e1zvNKjf57iZEzo21zqv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 926, "created_at" = '2013-07-17 22:00:29.317199', "updated_at" = '2013-07-17 22:00:29.317199', "authentication_token" = 'e1zvNKjf57iZEzo21zqv' WHERE "public"."cadenero_accounts"."id" = 752  (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", 752], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["user_id", 926]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5BynBFE9ztrzFmD3xAt2' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 752, "user_id" = 926, "created_at" = '2013-07-17 22:00:29.323082', "updated_at" = '2013-07-17 22:00:29.323082', "auth_token" = '5BynBFE9ztrzFmD3xAt2' WHERE "public"."cadenero_members"."id" = 927  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (6.6ms) 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")  (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))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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/users" for 127.0.0.1 at 2013-07-17 17:00:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (1.6ms) 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", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$7ZMsTNaixw23QiF3/qDl6eM18Q6E25dMwZi5NwuAPQEWJzBW0be16"], ["updated_at", Wed, 17 Jul 2013 22:00:29 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", 752], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["user_id", 927]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PnL1sKb7Xx4txYsCkbw6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 752, "user_id" = 927, "created_at" = '2013-07-17 22:00:29.514023', "updated_at" = '2013-07-17 22:00:29.514023', "auth_token" = 'PnL1sKb7Xx4txYsCkbw6' WHERE "public"."cadenero_members"."id" = 928  (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" = 927 LIMIT 1 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 927 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 927 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" = 927 Completed 201 Created in 144ms (Views: 28.5ms | ActiveRecord: 11.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/927" for 127.0.0.1 at 2013-07-17 17:00:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"927"} 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" = 752 AND "public"."cadenero_users"."id" = 927 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 927 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 927 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 927 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" = 927 Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 926 Started GET "/v1?auth_token[]=5BynBFE9ztrzFmD3xAt2" for 127.0.0.1 at 2013-07-17 17:00:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["5BynBFE9ztrzFmD3xAt2"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 752 AND "public"."cadenero_members"."auth_token" IN ('5BynBFE9ztrzFmD3xAt2') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 926 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 926 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 927 Started GET "/v1?auth_token[]=PnL1sKb7Xx4txYsCkbw6" for 127.0.0.1 at 2013-07-17 17:00:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["PnL1sKb7Xx4txYsCkbw6"], "default"=>:json} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 752 AND "public"."cadenero_members"."auth_token" IN ('PnL1sKb7Xx4txYsCkbw6') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 927 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 927 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.0ms) BEGIN  (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", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$9EaLJLd5HRlEBsCiNqcDjuyNrSS27xCwQLUTCm3imuk2xWys/z35G"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = '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", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 928], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zFWZtMvomuYRqxYm9F4U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 928, "created_at" = '2013-07-17 22:00:29.731972', "updated_at" = '2013-07-17 22:00:29.731972', "authentication_token" = 'zFWZtMvomuYRqxYm9F4U' WHERE "public"."cadenero_accounts"."id" = 753  (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", 753], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["user_id", 928]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QhqyXrzK7rwJTW5gsxBX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 753, "user_id" = 928, "created_at" = '2013-07-17 22:00:29.739275', "updated_at" = '2013-07-17 22:00:29.739275', "auth_token" = 'QhqyXrzK7rwJTW5gsxBX' WHERE "public"."cadenero_members"."id" = 929  (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)   (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")  (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.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")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$uKY7ykJWJeAvpI2A4WvK9uXJqms4EzfVu5bN/ecOw610BdjmuFYTC"], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 929], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J43ws2UUDvMRkzdg2UM4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 929, "created_at" = '2013-07-17 22:00:29.908626', "updated_at" = '2013-07-17 22:00:29.908626', "authentication_token" = 'J43ws2UUDvMRkzdg2UM4' WHERE "public"."cadenero_accounts"."id" = 754  (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", 754], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:29 UTC +00:00], ["user_id", 929]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4sxPYdxjsFEoVzJMiZtd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 754, "user_id" = 929, "created_at" = '2013-07-17 22:00:29.913655', "updated_at" = '2013-07-17 22:00:29.913655', "auth_token" = '4sxPYdxjsFEoVzJMiZtd' WHERE "public"."cadenero_members"."id" = 930  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 929 Started GET "/v1?auth_token[]=4sxPYdxjsFEoVzJMiZtd" for 127.0.0.1 at 2013-07-17 17:00:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["4sxPYdxjsFEoVzJMiZtd"], "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 753 AND "public"."cadenero_members"."auth_token" IN ('4sxPYdxjsFEoVzJMiZtd') LIMIT 1 Completed 500 Internal Server Error in 6ms  (9.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$WUgJ7qxuQFxcqfB/GE4xoukyTHW0syCzPkyITyELtjRf1QzZUbZCC"], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 930], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '21QAcmyqLKB5tnkPH8gm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 930, "created_at" = '2013-07-17 22:00:30.117072', "updated_at" = '2013-07-17 22:00:30.117072', "authentication_token" = '21QAcmyqLKB5tnkPH8gm' WHERE "public"."cadenero_accounts"."id" = 755  (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", 755], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["user_id", 930]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iz8nCJvxtYAWspdkqi9N' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 755, "user_id" = 930, "created_at" = '2013-07-17 22:00:30.122487', "updated_at" = '2013-07-17 22:00:30.122487', "auth_token" = 'iz8nCJvxtYAWspdkqi9N' WHERE "public"."cadenero_members"."id" = 931  (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)  (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.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.7ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00: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 ('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" = 755 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" = 930 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 930 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 930 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 930 Completed 201 Created in 117ms (Views: 5.5ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 755 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"930", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 930 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:00: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CXx5Yx7xexqAL.YyA6OvxOLLRlw4Dm9GjIMoQoEh9eAiwf7d8Ss1u"], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 755], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["user_id", 931]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3LPQPkBs19LGVg8yPxjp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 755, "user_id" = 931, "created_at" = '2013-07-17 22:00:30.421280', "updated_at" = '2013-07-17 22:00:30.421280', "auth_token" = '3LPQPkBs19LGVg8yPxjp' WHERE "public"."cadenero_members"."id" = 932  (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" = 931 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 931 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 931 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 931 Completed 201 Created in 116ms (Views: 6.5ms | 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/931" for 127.0.0.1 at 2013-07-17 17:00:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"931"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.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" = 755 AND "public"."cadenero_users"."id" = 931 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 931 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 931 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 931 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 931 Completed 200 OK in 15ms (Views: 7.5ms | ActiveRecord: 2.0ms) Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 931 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 931 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 931 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" = 931 Completed 201 Created in 9ms (Views: 5.7ms | 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  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$ZCTlzBZ9XxyLJ2y61C6.nOMJUM7DqtQbZNwo0ssZXA9rsvTG4XaAW"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = '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", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 932], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Dy7jDzoPdx4spbVxqTPM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 932, "created_at" = '2013-07-17 22:00:30.597083', "updated_at" = '2013-07-17 22:00:30.597083', "authentication_token" = 'Dy7jDzoPdx4spbVxqTPM' WHERE "public"."cadenero_accounts"."id" = 756  (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", 756], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["user_id", 932]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GPg6kf2FQ7ZpXkdTE9Vc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 756, "user_id" = 932, "created_at" = '2013-07-17 22:00:30.603110', "updated_at" = '2013-07-17 22:00:30.603110', "auth_token" = 'GPg6kf2FQ7ZpXkdTE9Vc' WHERE "public"."cadenero_members"."id" = 933  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.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.7ms) 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")  (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)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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/users" for 127.0.0.1 at 2013-07-17 17:00: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" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$8RmVKNyfxd.ook6bKvKSP.95u7dzSoRVT6z.cINCui24jn/NGfUwC"], ["updated_at", Wed, 17 Jul 2013 22:00:30 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", 756], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["user_id", 933]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UxZXWjyDHwfRX98PpxfC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 756, "user_id" = 933, "created_at" = '2013-07-17 22:00:30.830966', "updated_at" = '2013-07-17 22:00:30.830966', "auth_token" = 'UxZXWjyDHwfRX98PpxfC' WHERE "public"."cadenero_members"."id" = 934  (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" = 933 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 933 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 933 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 933 Completed 201 Created in 118ms (Views: 5.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/933" for 127.0.0.1 at 2013-07-17 17:00:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"933"} 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" = 756 AND "public"."cadenero_users"."id" = 933 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 933 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 933 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 933 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 933 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 933 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 933 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 933 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 933 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00:30 -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" = 933 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$g4AFaNrGZstOtp/hlVPbyeEwnY76xpL/2Gc5iti5vZhCFWxvVs.fq"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = '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", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 934], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eXkQNJ4UPz66j62vu42e' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 934, "created_at" = '2013-07-17 22:00:30.985266', "updated_at" = '2013-07-17 22:00:30.985266', "authentication_token" = 'eXkQNJ4UPz66j62vu42e' WHERE "public"."cadenero_accounts"."id" = 757  (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", 757], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:30 UTC +00:00], ["user_id", 934]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'v7TgpppsXtP9KFXybiU4' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 757, "user_id" = 934, "created_at" = '2013-07-17 22:00:30.990790', "updated_at" = '2013-07-17 22:00:30.990790', "auth_token" = 'v7TgpppsXtP9KFXybiU4' WHERE "public"."cadenero_members"."id" = 935  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00:31 -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.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" = 757 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" = 934 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 934 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 934 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 934 Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 757 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00:31 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"934", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 934 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$E8nsKECyPKjthIjnjgwCyuTQDLqIni3mrOyAvmGLRy48c/w7yqSG2"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = '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", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 935], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4ShyxQgC8HpsJz5qbs9x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 935, "created_at" = '2013-07-17 22:00:31.290898', "updated_at" = '2013-07-17 22:00:31.290898', "authentication_token" = '4ShyxQgC8HpsJz5qbs9x' WHERE "public"."cadenero_accounts"."id" = 758  (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", 758], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["user_id", 935]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dpWyBNemAQQKdgNoNVjL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 758, "user_id" = 935, "created_at" = '2013-07-17 22:00:31.296321', "updated_at" = '2013-07-17 22:00:31.296321', "auth_token" = 'dpWyBNemAQQKdgNoNVjL' WHERE "public"."cadenero_members"."id" = 936  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) 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.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')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00: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 ('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" = 758 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" = 935 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 935 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 935 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 935 Completed 201 Created in 106ms (Views: 5.2ms | 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" = 758 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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" = 935 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$uxjIDmPMozXu2K8gil6cheJygxWYI/d298SsGkjRSgBKIoueEDMS6"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = '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", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 936], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MvqUYpghNGHg1Czm2qxj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 936, "created_at" = '2013-07-17 22:00:31.580119', "updated_at" = '2013-07-17 22:00:31.580119', "authentication_token" = 'MvqUYpghNGHg1Czm2qxj' WHERE "public"."cadenero_accounts"."id" = 759  (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", 759], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["user_id", 936]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KeqMaABgxpzsUPh86RFq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 759, "user_id" = 936, "created_at" = '2013-07-17 22:00:31.585524', "updated_at" = '2013-07-17 22:00:31.585524', "auth_token" = 'KeqMaABgxpzsUPh86RFq' WHERE "public"."cadenero_members"."id" = 937  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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")  (1.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00:31 -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  (2.6ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$6AnFcjVWbPU10e1EiAs2V.tm06ioKIXE3w55qZV2ZxnaPiCBOLKpa"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = '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", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 937], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 't12JnVFWQTUJzpp8E1u5' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 937, "created_at" = '2013-07-17 22:00:31.747798', "updated_at" = '2013-07-17 22:00:31.747798', "authentication_token" = 't12JnVFWQTUJzpp8E1u5' WHERE "public"."cadenero_accounts"."id" = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 760], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["user_id", 937]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Q5Q1nQ4yzzyqy17aR3qW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 760, "user_id" = 937, "created_at" = '2013-07-17 22:00:31.754965', "updated_at" = '2013-07-17 22:00:31.754965', "auth_token" = 'Q5Q1nQ4yzzyqy17aR3qW' WHERE "public"."cadenero_members"."id" = 938  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00: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 ('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" = 760 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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$yY.CQ4dVmprRQCeyJUBXVeP5WQf69wVgb4nMqSJ3/bOoPpBr1PMUu"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 938], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'b772T9pD2pnYxpHM6Twk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 938, "created_at" = '2013-07-17 22:00:31.933808', "updated_at" = '2013-07-17 22:00:31.933808', "authentication_token" = 'b772T9pD2pnYxpHM6Twk' WHERE "public"."cadenero_accounts"."id" = 761  (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", 761], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:31 UTC +00:00], ["user_id", 938]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8qj6UAfKq2GTjZopha7M' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 761, "user_id" = 938, "created_at" = '2013-07-17 22:00:31.939213', "updated_at" = '2013-07-17 22:00:31.939213', "auth_token" = '8qj6UAfKq2GTjZopha7M' WHERE "public"."cadenero_members"."id" = 939  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('20130715174857')  (0.1ms) 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')  (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", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$Esep7iYurmLQz/fgGX.Gg.1ZUxtEG6rrSKTRxJ.LtbOfq3Lr6Q9j."], ["updated_at", Wed, 17 Jul 2013 22:00:32 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" = '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", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 939], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g6u2gaz1KATpoVq2W1Sy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 939, "created_at" = '2013-07-17 22:00:32.089312', "updated_at" = '2013-07-17 22:00:32.089312', "authentication_token" = 'g6u2gaz1KATpoVq2W1Sy' WHERE "public"."cadenero_accounts"."id" = 762  (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", 762], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["user_id", 939]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yv7vHThViqMJUCuWoatm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 762, "user_id" = 939, "created_at" = '2013-07-17 22:00:32.094497', "updated_at" = '2013-07-17 22:00:32.094497', "auth_token" = 'Yv7vHThViqMJUCuWoatm' WHERE "public"."cadenero_members"."id" = 940  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00: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-17 17:00:32 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 761 AND "public"."cadenero_users"."email" = 'user12@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  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$XsUWB2LHdL0EdAelPpbVJuHdCJIAjjba5DXJtj1A5aUP3A3xEtlCi"], ["updated_at", Wed, 17 Jul 2013 22:00: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" = 'test13' 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", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 940], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SYVfcUrusijGp2ycMGdp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 940, "created_at" = '2013-07-17 22:00:32.222282', "updated_at" = '2013-07-17 22:00:32.222282', "authentication_token" = 'SYVfcUrusijGp2ycMGdp' WHERE "public"."cadenero_accounts"."id" = 763  (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", 763], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:00:32 UTC +00:00], ["user_id", 940]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'a6rktL879oEus2LXWRs1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 763, "user_id" = 940, "created_at" = '2013-07-17 22:00:32.227902', "updated_at" = '2013-07-17 22:00:32.227902', "auth_token" = 'a6rktL879oEus2LXWRs1' WHERE "public"."cadenero_members"."id" = 941  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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")  (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, "auth_token" character varying(255))   (1.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")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:00:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:00: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 ('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" = 763 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.5ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (7.0ms) COMMIT  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (13.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ZLmYisDEVIXGPjcLTF2PlenqRr2G1Ri3vg5GljF2Ndqk3QqyZg67u"], ["updated_at", Wed, 17 Jul 2013 22:02:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.4ms) 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 (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", Wed, 17 Jul 2013 22:02:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 941], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:02:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oNMKg1DJTQycKFVFPj4z' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 941, "created_at" = '2013-07-17 22:02:01.563779', "updated_at" = '2013-07-17 22:02:01.563779', "authentication_token" = 'oNMKg1DJTQycKFVFPj4z' WHERE "public"."cadenero_accounts"."id" = 764  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 764], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:01 UTC +00:00], ["user_id", 941]] Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yfEzpyaFs9JVRNtxTpnV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 764, "user_id" = 941, "created_at" = '2013-07-17 22:02:01.694034', "updated_at" = '2013-07-17 22:02:01.694034', "auth_token" = 'yfEzpyaFs9JVRNtxTpnV' WHERE "public"."cadenero_members"."id" = 942  (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)   (1.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")  (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, "auth_token" character varying(255))  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:01 -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.8ms) 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" = 764 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" = 941 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 941 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 941 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" = 941 Completed 201 Created in 211ms (Views: 30.4ms | ActiveRecord: 6.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 (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 764 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"941", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 941 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02: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)  (10.8ms) ROLLBACK  (2.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$1dW80iXri5mzv56PKkfUc.IENTP7oVlldVBDYQRqFxAeW9lrYJNZa"], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 942], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6dF31pdEXpmNJGtEvLSx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 942, "created_at" = '2013-07-17 22:02:02.260087', "updated_at" = '2013-07-17 22:02:02.260087', "authentication_token" = '6dF31pdEXpmNJGtEvLSx' WHERE "public"."cadenero_accounts"."id" = 765  (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", 765], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["user_id", 942]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n5xWVNNJJop4rzxWqyN4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 765, "user_id" = 942, "created_at" = '2013-07-17 22:02:02.265869', "updated_at" = '2013-07-17 22:02:02.265869', "auth_token" = 'n5xWVNNJJop4rzxWqyN4' WHERE "public"."cadenero_members"."id" = 943  (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")  (3.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, "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")  (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")  (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')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:02: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.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", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$sZPTz2APliW/HGc54fzTkefuUeeh6F1KNIUibNlXKw9UoCrz4mY/O"], ["updated_at", Wed, 17 Jul 2013 22:02: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", 765], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["user_id", 943]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '57uUzL4QMi5ZpdSAGuiy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 765, "user_id" = 943, "created_at" = '2013-07-17 22:02:02.446308', "updated_at" = '2013-07-17 22:02:02.446308', "auth_token" = '57uUzL4QMi5ZpdSAGuiy' WHERE "public"."cadenero_members"."id" = 944  (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" = 943 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 943 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 943 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" = 943 Completed 201 Created in 119ms (Views: 7.1ms | 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/943" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"943"} 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" = 765 AND "public"."cadenero_users"."id" = 943 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 943 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 943 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 943 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 943 Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 943 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 943 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 943 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 943 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02: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" = 943 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$6Qw9akQdGik8PPtXs/R8H.vvpsTidV.RnO1b5vgQI47Vdxa.lQu/y"], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 944], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q6Hs9a94uYBuAzBfmjXp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 944, "created_at" = '2013-07-17 22:02:02.638617', "updated_at" = '2013-07-17 22:02:02.638617', "authentication_token" = 'q6Hs9a94uYBuAzBfmjXp' WHERE "public"."cadenero_accounts"."id" = 766  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 766], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["user_id", 944]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9MddEzUzSbpFxdFz6VsJ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 766, "user_id" = 944, "created_at" = '2013-07-17 22:02:02.644403', "updated_at" = '2013-07-17 22:02:02.644403', "auth_token" = '9MddEzUzSbpFxdFz6VsJ' WHERE "public"."cadenero_members"."id" = 945  (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)   (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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)   (5.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 766 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" = 944 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 944 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 944 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 944 Completed 201 Created in 115ms (Views: 5.6ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 766 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-17 17:02:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"944", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 944 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:02: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.2ms) 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", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$fEdjI69CKarEMGJti09TEe9bKlmZG7np/n4LOPDsP1/Ne54TRalFu"], ["updated_at", Wed, 17 Jul 2013 22:02: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", 766], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:02 UTC +00:00], ["user_id", 945]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'm6QTrbpG1syisLroHaHP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 766, "user_id" = 945, "created_at" = '2013-07-17 22:02:02.963135', "updated_at" = '2013-07-17 22:02:02.963135', "auth_token" = 'm6QTrbpG1syisLroHaHP' WHERE "public"."cadenero_members"."id" = 946  (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" = 945 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 945 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 945 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 945 Completed 201 Created in 126ms (Views: 5.7ms | 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/945" for 127.0.0.1 at 2013-07-17 17:02:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"945"} 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" = 766 AND "public"."cadenero_users"."id" = 945 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 945 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 945 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 945 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 945 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 945 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 945 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 945 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 945 Completed 201 Created in 8ms (Views: 5.1ms | 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  (8.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$N5qKT6a0B/iYtqWEqL2hTOBLHhoEhSdGjqhyryWSjqb3oOaiW41jC"], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 946], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EupKXGJ3geJ8BvrzZLtJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 946, "created_at" = '2013-07-17 22:02:03.130185', "updated_at" = '2013-07-17 22:02:03.130185', "authentication_token" = 'EupKXGJ3geJ8BvrzZLtJ' WHERE "public"."cadenero_accounts"."id" = 767  (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", 767], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["user_id", 946]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fyjXYpNb7nPzNyWpUBsf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 767, "user_id" = 946, "created_at" = '2013-07-17 22:02:03.135656', "updated_at" = '2013-07-17 22:02:03.135656', "auth_token" = 'fyjXYpNb7nPzNyWpUBsf' WHERE "public"."cadenero_members"."id" = 947  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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 GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 767 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" = 946 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 946 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 946 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" = 946 Completed 201 Created in 118ms (Views: 7.3ms | 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 (2.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 767 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 946 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$PssFbclzi0i0yyLv.7uLTO3kbBqut60IUGPkB37DroPxWs3RMY/e6"], ["updated_at", Wed, 17 Jul 2013 22:02:03 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.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", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 947], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xx2yLRTaxszBg8MpKZ9P' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 947, "created_at" = '2013-07-17 22:02:03.504140', "updated_at" = '2013-07-17 22:02:03.504140', "authentication_token" = 'xx2yLRTaxszBg8MpKZ9P' WHERE "public"."cadenero_accounts"."id" = 768  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 768], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["user_id", 947]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1hpjczvo5eEuqBqBCVsr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 768, "user_id" = 947, "created_at" = '2013-07-17 22:02:03.514960', "updated_at" = '2013-07-17 22:02:03.514960', "auth_token" = '1hpjczvo5eEuqBqBCVsr' WHERE "public"."cadenero_members"."id" = 948  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)  (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, "auth_token" character varying(255))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (19.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$tH1D2jS2P.shauZHn0J98.S9AOm8Q4.VFprT58Xspmk10WNOgV3Ty"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = '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", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 948], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HofLxmLEgJmt5qt8W3ee' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 948, "created_at" = '2013-07-17 22:02:03.707250', "updated_at" = '2013-07-17 22:02:03.707250', "authentication_token" = 'HofLxmLEgJmt5qt8W3ee' WHERE "public"."cadenero_accounts"."id" = 769  (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", 769], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["user_id", 948]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7Hzrp3s3HsC99D6ZxDsT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 769, "user_id" = 948, "created_at" = '2013-07-17 22:02:03.712558', "updated_at" = '2013-07-17 22:02:03.712558', "auth_token" = '7Hzrp3s3HsC99D6ZxDsT' WHERE "public"."cadenero_members"."id" = 949  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 768 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  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$6CIpOqNp4FDUYbPOTPlOt.sF4P3VWy5OL4H4cm4JEknRTMHNrxw62"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = '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", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 949], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tDyumY9rXKJqs8XWDPgD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 949, "created_at" = '2013-07-17 22:02:03.842594', "updated_at" = '2013-07-17 22:02:03.842594', "authentication_token" = 'tDyumY9rXKJqs8XWDPgD' WHERE "public"."cadenero_accounts"."id" = 770  (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", 770], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:03 UTC +00:00], ["user_id", 949]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Fv8FvwnyyhyGor9sXze3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 770, "user_id" = 949, "created_at" = '2013-07-17 22:02:03.848074', "updated_at" = '2013-07-17 22:02:03.848074', "auth_token" = 'Fv8FvwnyyhyGor9sXze3' WHERE "public"."cadenero_members"."id" = 950  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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")  (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.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.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02: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: 1.0ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 770 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$DhzwY7dU/.53vsZ4db7Up.vxvtpxnHMp1LjMDPqjcWOqY9xlopu5i"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = '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", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 950], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Cjf5pb5zqyxeV19s4g9B' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 950, "created_at" = '2013-07-17 22:02:04.017737', "updated_at" = '2013-07-17 22:02:04.017737', "authentication_token" = 'Cjf5pb5zqyxeV19s4g9B' WHERE "public"."cadenero_accounts"."id" = 771  (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", 771], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["user_id", 950]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EsYyLoxUBzDEznT9DbFv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 771, "user_id" = 950, "created_at" = '2013-07-17 22:02:04.023329', "updated_at" = '2013-07-17 22:02:04.023329', "auth_token" = 'EsYyLoxUBzDEznT9DbFv' WHERE "public"."cadenero_members"."id" = 951  (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)  (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))   (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.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.4ms) 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 ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$W91Z7InU2lDfL4ZAbKs1puuKhq0QRBt6yLJJNyorH/Vcak1Ugnvcq"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = '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", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 951], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's1zqaVsP5Z75QZGcwB6i' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 951, "created_at" = '2013-07-17 22:02:04.196235', "updated_at" = '2013-07-17 22:02:04.196235', "authentication_token" = 's1zqaVsP5Z75QZGcwB6i' WHERE "public"."cadenero_accounts"."id" = 772  (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", 772], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["user_id", 951]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wXmwmUFNi7DZopFMJyrD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 772, "user_id" = 951, "created_at" = '2013-07-17 22:02:04.201678', "updated_at" = '2013-07-17 22:02:04.201678', "auth_token" = 'wXmwmUFNi7DZopFMJyrD' WHERE "public"."cadenero_members"."id" = 952  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (3.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, "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.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)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02: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/sessions" for 127.0.0.1 at 2013-07-17 17:02: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 ('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" = 772 AND "public"."cadenero_users"."email" = 'user@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  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$19uF556TiDImvBXe8u5QX.1JPT.RWtqegUMBrfNBSgKx3HTHVIO5S"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = '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", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 952], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2zzENW3Epue8p13BdSD8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 952, "created_at" = '2013-07-17 22:02:04.385608', "updated_at" = '2013-07-17 22:02:04.385608', "authentication_token" = '2zzENW3Epue8p13BdSD8' WHERE "public"."cadenero_accounts"."id" = 773  (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", 773], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["user_id", 952]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6upXzMU8gYwQqioxKffS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 773, "user_id" = 952, "created_at" = '2013-07-17 22:02:04.391013', "updated_at" = '2013-07-17 22:02:04.391013', "auth_token" = '6upXzMU8gYwQqioxKffS' WHERE "public"."cadenero_members"."id" = 953  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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.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")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$MSyDb7PK5gofPrkORzKy9usBqGycHJGy/Cn/d1WZetNhPEwFCRaP6"], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 773], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["user_id", 953]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xEPPnRd7pKHvze469spi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 773, "user_id" = 953, "created_at" = '2013-07-17 22:02:04.551276', "updated_at" = '2013-07-17 22:02:04.551276', "auth_token" = 'xEPPnRd7pKHvze469spi' WHERE "public"."cadenero_members"."id" = 954  (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" = 953 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 953 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 953 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 953 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/953" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"953"} 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" = 773 AND "public"."cadenero_users"."id" = 953 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 953 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 953 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 953 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 953 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 952 Started GET "/v1?auth_token[]=6upXzMU8gYwQqioxKffS" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["6upXzMU8gYwQqioxKffS"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 773 AND "public"."cadenero_members"."auth_token" IN ('6upXzMU8gYwQqioxKffS') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 952 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 952 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 953 Started GET "/v1?auth_token[]=xEPPnRd7pKHvze469spi" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["xEPPnRd7pKHvze469spi"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 773 AND "public"."cadenero_members"."auth_token" IN ('xEPPnRd7pKHvze469spi') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 953 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 953 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$SJPNVHanv135epic8wm0wOyIErhQGjxr9e9Gp9OS/8IK01ytnmOlq"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 954], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LshZaAGab9eVagqgEuiT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 954, "created_at" = '2013-07-17 22:02:04.714311', "updated_at" = '2013-07-17 22:02:04.714311', "authentication_token" = 'LshZaAGab9eVagqgEuiT' WHERE "public"."cadenero_accounts"."id" = 774  (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", 774], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["user_id", 954]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2bbhm64mbwRBBsgnVhVb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 774, "user_id" = 954, "created_at" = '2013-07-17 22:02:04.719800', "updated_at" = '2013-07-17 22:02:04.719800', "auth_token" = '2bbhm64mbwRBBsgnVhVb' WHERE "public"."cadenero_members"."id" = 955  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 954 Started GET "/v1?auth_token[]=2bbhm64mbwRBBsgnVhVb" for 127.0.0.1 at 2013-07-17 17:02:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["2bbhm64mbwRBBsgnVhVb"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 774 AND "public"."cadenero_members"."auth_token" IN ('2bbhm64mbwRBBsgnVhVb') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 954 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 954 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$SHQwwDjGu7HbN7H6UoJ89eQOZOLE6lDFPJxEc.a0bnf2f6c4XwPTK"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = '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", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 955], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pYWDksVeRB1dRP5y8Q4z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 955, "created_at" = '2013-07-17 22:02:04.932159', "updated_at" = '2013-07-17 22:02:04.932159', "authentication_token" = 'pYWDksVeRB1dRP5y8Q4z' WHERE "public"."cadenero_accounts"."id" = 775  (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", 775], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:04 UTC +00:00], ["user_id", 955]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'adsuAS8zxiWfU546oNtu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 775, "user_id" = 955, "created_at" = '2013-07-17 22:02:04.938149', "updated_at" = '2013-07-17 22:02:04.938149', "auth_token" = 'adsuAS8zxiWfU546oNtu' WHERE "public"."cadenero_members"."id" = 956  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.6ms) SELECT version FROM "schema_migrations"  (0.9ms) 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')  (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", Wed, 17 Jul 2013 22:02:05 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$gkgkLUzMSRw.17rVKdHMDuYHDGl88bjdWxU3IxMZkJcqoyV67DIui"], ["updated_at", Wed, 17 Jul 2013 22:02: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" = 'test13' 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", Wed, 17 Jul 2013 22:02:05 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 956], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:02:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'k82CKV4LjpepkdEnyzxc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 956, "created_at" = '2013-07-17 22:02:05.093795', "updated_at" = '2013-07-17 22:02:05.093795', "authentication_token" = 'k82CKV4LjpepkdEnyzxc' WHERE "public"."cadenero_accounts"."id" = 776  (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", 776], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:02:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:02:05 UTC +00:00], ["user_id", 956]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'w5di6LbKPa3wTpVSVewq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 776, "user_id" = 956, "created_at" = '2013-07-17 22:02:05.099495', "updated_at" = '2013-07-17 22:02:05.099495', "auth_token" = 'w5di6LbKPa3wTpVSVewq' WHERE "public"."cadenero_members"."id" = 957  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (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.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.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")  (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.9ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:02:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 956 Started GET "/v1?auth_token[]=w5di6LbKPa3wTpVSVewq" for 127.0.0.1 at 2013-07-17 17:02:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["w5di6LbKPa3wTpVSVewq"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 775 AND "public"."cadenero_members"."auth_token" IN ('w5di6LbKPa3wTpVSVewq') LIMIT 1 Completed in 3ms Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["w5di6LbKPa3wTpVSVewq"], "default"=>:json} Completed 500 Internal Server Error in 0ms  (8.2ms) ROLLBACK Connecting to database specified by database.yml  (10.6ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_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", Wed, 17 Jul 2013 22:05:20 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$X978suBPBuptcDUW1kUOV.KKxCbMUSRcWQZ0yiSROcVaeN9F3.5wG"], ["updated_at", Wed, 17 Jul 2013 22:05:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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 (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", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 957], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8eze9iZxqCw95Lm2xB8e' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 957, "created_at" = '2013-07-17 22:05:21.042351', "updated_at" = '2013-07-17 22:05:21.042351', "authentication_token" = '8eze9iZxqCw95Lm2xB8e' WHERE "public"."cadenero_accounts"."id" = 777  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 777], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["user_id", 957]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xYbF1nMDppMFAqdQuRQq' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 777, "user_id" = 957, "created_at" = '2013-07-17 22:05:21.172445', "updated_at" = '2013-07-17 22:05:21.172445', "auth_token" = 'xYbF1nMDppMFAqdQuRQq' WHERE "public"."cadenero_members"."id" = 958  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (4.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.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.5ms) 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")  (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.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.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-17 17:05: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 63ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@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 ('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" = 777 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" = 957 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 957 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 957 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" = 957 Completed 201 Created in 182ms (Views: 30.6ms | ActiveRecord: 12.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 777 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05:21 -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" = 957 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.0ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$g.GnnnIloqGhPsvUcsyNBesT56yRzjeH3O3NgxtlW3EZK1gYjksZe"], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 958], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dEQ2PVYq4QT2qdLsq3e5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 958, "created_at" = '2013-07-17 22:05:21.717003', "updated_at" = '2013-07-17 22:05:21.717003', "authentication_token" = 'dEQ2PVYq4QT2qdLsq3e5' WHERE "public"."cadenero_accounts"."id" = 778  (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", 778], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["user_id", 958]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yrPa85MpPRhxRmUpo3xp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 778, "user_id" = 958, "created_at" = '2013-07-17 22:05:21.722449', "updated_at" = '2013-07-17 22:05:21.722449', "auth_token" = 'yrPa85MpPRhxRmUpo3xp' WHERE "public"."cadenero_members"."id" = 959  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.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.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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/users" for 127.0.0.1 at 2013-07-17 17:05:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.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", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Hbgns33uieLBxv/JVVuBkO4yguF5I5BZhV2x1nUpP.1t/eNerWbHq"], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 778], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:21 UTC +00:00], ["user_id", 959]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aLiin69fBGpBynsqnqUK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 778, "user_id" = 959, "created_at" = '2013-07-17 22:05:21.898442', "updated_at" = '2013-07-17 22:05:21.898442', "auth_token" = 'aLiin69fBGpBynsqnqUK' WHERE "public"."cadenero_members"."id" = 960  (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" = 959 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 959 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 959 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 959 Completed 201 Created in 126ms (Views: 6.1ms | 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/959" for 127.0.0.1 at 2013-07-17 17:05:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"959"} 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" = 778 AND "public"."cadenero_users"."id" = 959 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 959 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 959 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 959 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 959 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 959 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 959 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 959 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 959 Completed 201 Created in 7ms (Views: 5.1ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05:21 -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" = 959 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.6ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (1.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$zgzzv4tLSKWoA8V8bJafPu58j4fBH6borytlXFSvi.LAfslzIejIa"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 960], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FpAnVscXL4U4oip83chi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 960, "created_at" = '2013-07-17 22:05:22.087844', "updated_at" = '2013-07-17 22:05:22.087844', "authentication_token" = 'FpAnVscXL4U4oip83chi' WHERE "public"."cadenero_accounts"."id" = 779  (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", 779], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["user_id", 960]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LeK2WVzx6x8JDbrkisVY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 779, "user_id" = 960, "created_at" = '2013-07-17 22:05:22.093510', "updated_at" = '2013-07-17 22:05:22.093510', "auth_token" = 'LeK2WVzx6x8JDbrkisVY' WHERE "public"."cadenero_members"."id" = 961  (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.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")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05: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 (5.9ms) 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" = 779 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" = 960 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 960 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 960 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 960 Completed 201 Created in 116ms (Views: 5.3ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 779 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"960", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 960 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$UraBz7sEFkDHJyksv731MON1N6sHZj3HNb36t81TZ9bJVGjGiHaUa"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 961], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MhEj2y2Gx6at65B5oqUs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 961, "created_at" = '2013-07-17 22:05:22.403593', "updated_at" = '2013-07-17 22:05:22.403593', "authentication_token" = 'MhEj2y2Gx6at65B5oqUs' WHERE "public"."cadenero_accounts"."id" = 780  (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", 780], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["user_id", 961]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NmZS3cup2Kh6XY1Zuqih' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 780, "user_id" = 961, "created_at" = '2013-07-17 22:05:22.409339', "updated_at" = '2013-07-17 22:05:22.409339', "auth_token" = 'NmZS3cup2Kh6XY1Zuqih' WHERE "public"."cadenero_members"."id" = 962  (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)  (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.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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)  (8.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05: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.3ms) 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" = 780 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" = 961 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 961 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 961 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" = 961 Completed 201 Created in 111ms (Views: 6.1ms | 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::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 780 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"961", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 961 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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/users" for 127.0.0.1 at 2013-07-17 17:05: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.5ms) 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", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$7VFoYzYSCAhPSJgdG85vVub5ipucmW1I4YspiFS6moGLOCg5Rr/HK"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 780], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["user_id", 962]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eYwewK2VkE7dNeA9vJGz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 780, "user_id" = 962, "created_at" = '2013-07-17 22:05:22.755563', "updated_at" = '2013-07-17 22:05:22.755563', "auth_token" = 'eYwewK2VkE7dNeA9vJGz' WHERE "public"."cadenero_members"."id" = 963  (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" = 962 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 962 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 962 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 962 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/962" for 127.0.0.1 at 2013-07-17 17:05:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"962"} 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" = 780 AND "public"."cadenero_users"."id" = 962 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 962 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 962 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 962 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 962 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05: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" = 962 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 962 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 962 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 962 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  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$qGqHm7vGoPbmWYVEGzYhBe13GN57pHGJk39rU.4eUC9JTjPTJS08S"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 963], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bUpQJ6ybpCtHHyfVyYtf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 963, "created_at" = '2013-07-17 22:05:22.917266', "updated_at" = '2013-07-17 22:05:22.917266', "authentication_token" = 'bUpQJ6ybpCtHHyfVyYtf' WHERE "public"."cadenero_accounts"."id" = 781  (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", 781], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:22 UTC +00:00], ["user_id", 963]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wo7BkLazzzsfssNkFRHN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 781, "user_id" = 963, "created_at" = '2013-07-17 22:05:22.923036', "updated_at" = '2013-07-17 22:05:22.923036', "auth_token" = 'wo7BkLazzzsfssNkFRHN' WHERE "public"."cadenero_members"."id" = 964  (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)  (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")  (7.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (45.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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-17 17:05: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.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" = 781 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (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.1ms) BEGIN  (0.7ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$KG41HWFS5heUA3mUmnXqe.6oU8xPMi3/0jpyI/ui3k12aez.QabOa"], ["updated_at", Wed, 17 Jul 2013 22:05: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" = '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", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 964], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Sngx31z6XNfJtAYw3D33' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 964, "created_at" = '2013-07-17 22:05:23.148126', "updated_at" = '2013-07-17 22:05:23.148126', "authentication_token" = 'Sngx31z6XNfJtAYw3D33' WHERE "public"."cadenero_accounts"."id" = 782  (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", 782], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["user_id", 964]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2WzVkvBF3sTcU1esfKsB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 782, "user_id" = 964, "created_at" = '2013-07-17 22:05:23.153586', "updated_at" = '2013-07-17 22:05:23.153586', "auth_token" = '2WzVkvBF3sTcU1esfKsB' WHERE "public"."cadenero_members"."id" = 965  (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.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.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.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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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-17 17:05: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.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" = 782 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$AWmJZaj8xzVYzCqJE9nYse3z/rRAPnUDlID6AczEwznmJ//wnxece"], ["updated_at", Wed, 17 Jul 2013 22:05: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" = '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", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 965], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'McaqqCN9zCoxm14K7TPB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 965, "created_at" = '2013-07-17 22:05:23.335858', "updated_at" = '2013-07-17 22:05:23.335858', "authentication_token" = 'McaqqCN9zCoxm14K7TPB' WHERE "public"."cadenero_accounts"."id" = 783  (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", 783], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["user_id", 965]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bRwRsYyrqg34KkjpBo2E' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 783, "user_id" = 965, "created_at" = '2013-07-17 22:05:23.341449', "updated_at" = '2013-07-17 22:05:23.341449', "auth_token" = 'bRwRsYyrqg34KkjpBo2E' WHERE "public"."cadenero_members"."id" = 966  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.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 ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$jqMzLVNg/AeOivXB8hVjpuyK658vB49CBkjM9Y.pyZJHp7f94g07e"], ["updated_at", Wed, 17 Jul 2013 22:05: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" = '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", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 966], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RCq4UxsEkuzzu4KZBZe4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 966, "created_at" = '2013-07-17 22:05:23.492998', "updated_at" = '2013-07-17 22:05:23.492998', "authentication_token" = 'RCq4UxsEkuzzu4KZBZe4' WHERE "public"."cadenero_accounts"."id" = 784  (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", 784], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["user_id", 966]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'szrBu7vCU3y5miBzYGXx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 784, "user_id" = 966, "created_at" = '2013-07-17 22:05:23.498448', "updated_at" = '2013-07-17 22:05:23.498448', "auth_token" = 'szrBu7vCU3y5miBzYGXx' WHERE "public"."cadenero_members"."id" = 967  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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-17 17:05: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 783 AND "public"."cadenero_users"."email" = 'user8@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  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$u4opnSD5lqkBWSQUQFUwZOZl083gpoWt7/TXKXVkvyBUk7okA/33i"], ["updated_at", Wed, 17 Jul 2013 22:05: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" = '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", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 967], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zZtbwoJqes47qzdpH4va' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 967, "created_at" = '2013-07-17 22:05:23.632995', "updated_at" = '2013-07-17 22:05:23.632995', "authentication_token" = 'zZtbwoJqes47qzdpH4va' WHERE "public"."cadenero_accounts"."id" = 785  (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", 785], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["user_id", 967]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fqwWrbbczm5V3EzyK489' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 785, "user_id" = 967, "created_at" = '2013-07-17 22:05:23.638508', "updated_at" = '2013-07-17 22:05:23.638508', "auth_token" = 'fqwWrbbczm5V3EzyK489' WHERE "public"."cadenero_members"."id" = 968  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (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.7ms) 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.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.7ms) 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 ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:05:23 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$bE4NpooeVvYMGPwNPqfBuOfMy0uEUyDUY9FZvC.Qm8Xnxr7659yJK"], ["updated_at", Wed, 17 Jul 2013 22:05: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.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", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 968], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QMt9kpx3bfE3Q2qcL2YR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 968, "created_at" = '2013-07-17 22:05:23.803488', "updated_at" = '2013-07-17 22:05:23.803488', "authentication_token" = 'QMt9kpx3bfE3Q2qcL2YR' WHERE "public"."cadenero_accounts"."id" = 786  (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", 786], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["user_id", 968]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EjBqwMmYyXqyqEMzEDaA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 786, "user_id" = 968, "created_at" = '2013-07-17 22:05:23.808971', "updated_at" = '2013-07-17 22:05:23.808971', "auth_token" = 'EjBqwMmYyXqyqEMzEDaA' WHERE "public"."cadenero_members"."id" = 969  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (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.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.7ms) 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")  (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.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')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 968 Started GET "/v1?auth_token[]=EjBqwMmYyXqyqEMzEDaA" for 127.0.0.1 at 2013-07-17 17:05:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["EjBqwMmYyXqyqEMzEDaA"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 786 AND "public"."cadenero_members"."auth_token" IN ('EjBqwMmYyXqyqEMzEDaA') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 968 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 968 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$IF3uJMJRqmJEKdlM3Cd/NukMN0aOJu9yOjp4PCzAxSnCp4/9iRj76"], ["updated_at", Wed, 17 Jul 2013 22:05: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 969], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:05:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cZpxjcDKsqYedqjnij3u' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 969, "created_at" = '2013-07-17 22:05:23.998775', "updated_at" = '2013-07-17 22:05:23.998775', "authentication_token" = 'cZpxjcDKsqYedqjnij3u' WHERE "public"."cadenero_accounts"."id" = 787  (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", 787], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["user_id", 969]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sizcBFq4HsjCkdhrhBLQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 787, "user_id" = 969, "created_at" = '2013-07-17 22:05:24.004348', "updated_at" = '2013-07-17 22:05:24.004348', "auth_token" = 'sizcBFq4HsjCkdhrhBLQ' WHERE "public"."cadenero_members"."id" = 970  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (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, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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/users" for 127.0.0.1 at 2013-07-17 17:05:24 -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" = '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", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$9NM9OIrcRgPloK0DH5reCOJkEHanzcG/RVwtNOn4gUIheC9qTLkXi"], ["updated_at", Wed, 17 Jul 2013 22:05:24 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", 787], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["user_id", 970]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AduQ1QXEcCx3P5L5hpRR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 787, "user_id" = 970, "created_at" = '2013-07-17 22:05:24.166825', "updated_at" = '2013-07-17 22:05:24.166825', "auth_token" = 'AduQ1QXEcCx3P5L5hpRR' WHERE "public"."cadenero_members"."id" = 971  (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" = 970 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 970 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 970 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 970 Completed 201 Created in 141ms (Views: 35.2ms | 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' LIMIT 1 Started GET "/v1/users/970" for 127.0.0.1 at 2013-07-17 17:05:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"970"} 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" = 787 AND "public"."cadenero_users"."id" = 970 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 970 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 970 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 970 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 970 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 969 Started GET "/v1?auth_token[]=sizcBFq4HsjCkdhrhBLQ" for 127.0.0.1 at 2013-07-17 17:05:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["sizcBFq4HsjCkdhrhBLQ"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 787 AND "public"."cadenero_members"."auth_token" IN ('sizcBFq4HsjCkdhrhBLQ') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 969 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 969 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 970 Started GET "/v1?auth_token[]=AduQ1QXEcCx3P5L5hpRR" for 127.0.0.1 at 2013-07-17 17:05:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["AduQ1QXEcCx3P5L5hpRR"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 787 AND "public"."cadenero_members"."auth_token" IN ('AduQ1QXEcCx3P5L5hpRR') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 970 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 970 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$bnpJuLvgmX9tBCk0hHnKVOQgboe3EBQ9pfOun7NfVo4DmqQgjAHF6"], ["updated_at", Wed, 17 Jul 2013 22:05: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" = '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", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 971], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'D7XKBBcUygz2TDzjeJgC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 971, "created_at" = '2013-07-17 22:05:24.362865', "updated_at" = '2013-07-17 22:05:24.362865', "authentication_token" = 'D7XKBBcUygz2TDzjeJgC' WHERE "public"."cadenero_accounts"."id" = 788  (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", 788], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["user_id", 971]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bmsZGnhNWgennrNvxB8r' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 788, "user_id" = 971, "created_at" = '2013-07-17 22:05:24.368830', "updated_at" = '2013-07-17 22:05:24.368830', "auth_token" = 'bmsZGnhNWgennrNvxB8r' WHERE "public"."cadenero_members"."id" = 972  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) 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)   (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.9ms) 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')  (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", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$8TatVb3dwsGr/eYFz/.NKeBozdiLHQYd9lNc1bRKeg4AcK4KI5Cna"], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 972], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qpyhfdEGCG8zxqcq4sm4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 972, "created_at" = '2013-07-17 22:05:24.521648', "updated_at" = '2013-07-17 22:05:24.521648', "authentication_token" = 'qpyhfdEGCG8zxqcq4sm4' WHERE "public"."cadenero_accounts"."id" = 789  (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", 789], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:05:24 UTC +00:00], ["user_id", 972]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yfik83pQtFyXZzTpw73W' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 789, "user_id" = 972, "created_at" = '2013-07-17 22:05:24.527607', "updated_at" = '2013-07-17 22:05:24.527607', "auth_token" = 'yfik83pQtFyXZzTpw73W' WHERE "public"."cadenero_members"."id" = 973  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:05: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 972 Started GET "/v1?auth_token[]=yfik83pQtFyXZzTpw73W" for 127.0.0.1 at 2013-07-17 17:05:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["yfik83pQtFyXZzTpw73W"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 788 AND "public"."cadenero_members"."auth_token" IN ('yfik83pQtFyXZzTpw73W') LIMIT 1 Completed 500 Internal Server Error in 6ms  (9.3ms) ROLLBACK Connecting to database specified by database.yml  (10.1ms) BEGIN  (8.9ms) COMMIT  (4.9ms) BEGIN  (9.8ms) 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", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$NDR21HMzknLV5PCib0jsZ.LEUvFvYaic.XcOAwoq41zDowxwrgc2e"], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (7.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (11.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", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 973], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'D7bygd3VzzuMmqFpzYH5' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 973, "created_at" = '2013-07-17 22:06:38.211629', "updated_at" = '2013-07-17 22:06:38.211629', "authentication_token" = 'D7bygd3VzzuMmqFpzYH5' WHERE "public"."cadenero_accounts"."id" = 790  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.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", 790], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["user_id", 973]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mLhG1FaTnpHtbxwCRqrA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 790, "user_id" = 973, "created_at" = '2013-07-17 22:06:38.345815', "updated_at" = '2013-07-17 22:06:38.345815', "auth_token" = 'mLhG1FaTnpHtbxwCRqrA' WHERE "public"."cadenero_members"."id" = 974  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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.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")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06:38 -0500 Processing by 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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 973 Started GET "/v1?auth_token[]=mLhG1FaTnpHtbxwCRqrA" for 127.0.0.1 at 2013-07-17 17:06:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mLhG1FaTnpHtbxwCRqrA"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 790 AND "public"."cadenero_members"."auth_token" IN ('mLhG1FaTnpHtbxwCRqrA') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 973 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 973 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$kxXSTkWs135kuaM5.HPxpOilVYYpRrZ7wwTzeJbSaVkD4cT5dJUY2"], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 974], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'quas2mRKccX28rDryv9N' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 974, "created_at" = '2013-07-17 22:06:38.640634', "updated_at" = '2013-07-17 22:06:38.640634', "authentication_token" = 'quas2mRKccX28rDryv9N' WHERE "public"."cadenero_accounts"."id" = 791  (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", 791], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["user_id", 974]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pXyAptmQcNe4SuymA6Xx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 791, "user_id" = 974, "created_at" = '2013-07-17 22:06:38.646371', "updated_at" = '2013-07-17 22:06:38.646371', "auth_token" = 'pXyAptmQcNe4SuymA6Xx' WHERE "public"."cadenero_members"."id" = 975  (0.1ms) 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)  (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.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")  (3.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.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)  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$mfoB7LUpXbwcf6bbkWSJDuu71dgF9FDfijPDdqh/7nKYpqWRcIc9C"], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 975], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'crE6YntYRLJ6bKx7vpqT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 975, "created_at" = '2013-07-17 22:06:38.811038', "updated_at" = '2013-07-17 22:06:38.811038', "authentication_token" = 'crE6YntYRLJ6bKx7vpqT' WHERE "public"."cadenero_accounts"."id" = 792  (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", 792], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:38 UTC +00:00], ["user_id", 975]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mn5zeP2gdfsaYjp69qir' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 792, "user_id" = 975, "created_at" = '2013-07-17 22:06:38.816261', "updated_at" = '2013-07-17 22:06:38.816261', "auth_token" = 'mn5zeP2gdfsaYjp69qir' WHERE "public"."cadenero_members"."id" = 976  (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)  (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.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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (13.9ms) 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)   (6.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 ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 975 Started GET "/v1?auth_token[]=mn5zeP2gdfsaYjp69qir" for 127.0.0.1 at 2013-07-17 17:06:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mn5zeP2gdfsaYjp69qir"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 791 AND "public"."cadenero_members"."auth_token" IN ('mn5zeP2gdfsaYjp69qir') LIMIT 1 Completed in 3ms Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mn5zeP2gdfsaYjp69qir"], "default"=>:json} Completed 500 Internal Server Error in 0ms  (10.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.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", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$zs2Cp2Qs07BdwejdKMhSmOZFkEm6tpz7aRU8B9yyW89FKiOGU9z4G"], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00]]  (0.4ms) 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" = '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", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 976], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Q2CRQr6VEazJqMeRAh79' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 976, "created_at" = '2013-07-17 22:06:39.032378', "updated_at" = '2013-07-17 22:06:39.032378', "authentication_token" = 'Q2CRQr6VEazJqMeRAh79' WHERE "public"."cadenero_accounts"."id" = 793  (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", 793], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["user_id", 976]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VLqe68EfmGuodbDywXXP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 793, "user_id" = 976, "created_at" = '2013-07-17 22:06:39.038078', "updated_at" = '2013-07-17 22:06:39.038078', "auth_token" = 'VLqe68EfmGuodbDywXXP' WHERE "public"."cadenero_members"."id" = 977  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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/users" for 127.0.0.1 at 2013-07-17 17:06:39 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$33Yf6/ThNdzFXUX01xyKI.knaSHLdmDwRssur6WBvvNrMeaSbR3QC"], ["updated_at", Wed, 17 Jul 2013 22:06:39 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", 793], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["user_id", 977]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9kpWewmcyfKazWzWuS1c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 793, "user_id" = 977, "created_at" = '2013-07-17 22:06:39.222121', "updated_at" = '2013-07-17 22:06:39.222121', "auth_token" = '9kpWewmcyfKazWzWuS1c' WHERE "public"."cadenero_members"."id" = 978  (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" = 977 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 977 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 977 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" = 977 Completed 201 Created in 156ms (Views: 32.5ms | ActiveRecord: 5.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/977" for 127.0.0.1 at 2013-07-17 17:06:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"977"} 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" = 793 AND "public"."cadenero_users"."id" = 977 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 977 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 977 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 977 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 977 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 976 Started GET "/v1?auth_token[]=VLqe68EfmGuodbDywXXP" for 127.0.0.1 at 2013-07-17 17:06:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["VLqe68EfmGuodbDywXXP"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 793 AND "public"."cadenero_members"."auth_token" IN ('VLqe68EfmGuodbDywXXP') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 976 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 976 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 977 Started GET "/v1?auth_token[]=9kpWewmcyfKazWzWuS1c" for 127.0.0.1 at 2013-07-17 17:06:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["9kpWewmcyfKazWzWuS1c"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 793 AND "public"."cadenero_members"."auth_token" IN ('9kpWewmcyfKazWzWuS1c') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 977 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 977 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$zTjqlLX2Mx0AbHV4jsnbNeTWKHhYtapHHll9qep343kJ3453Tfy4K"], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 978], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q6vAZWnrNs8ju8zy5w5x' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 978, "created_at" = '2013-07-17 22:06:39.446944', "updated_at" = '2013-07-17 22:06:39.446944', "authentication_token" = 'q6vAZWnrNs8ju8zy5w5x' WHERE "public"."cadenero_accounts"."id" = 794  (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", 794], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["user_id", 978]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RV5RPDiuWT8A1XC4NLMW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 794, "user_id" = 978, "created_at" = '2013-07-17 22:06:39.452816', "updated_at" = '2013-07-17 22:06:39.452816', "auth_token" = 'RV5RPDiuWT8A1XC4NLMW' WHERE "public"."cadenero_members"."id" = 979  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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/users" for 127.0.0.1 at 2013-07-17 17:06:39 -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", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$43.49e2qMn18GXa1xzrz9.I3i7q4O3Z1IRcviNRC3tx/4RmTHym0."], ["updated_at", Wed, 17 Jul 2013 22:06:39 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", 794], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["user_id", 979]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'G9BVDJYUiQqmvfq73Yg9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 794, "user_id" = 979, "created_at" = '2013-07-17 22:06:39.642054', "updated_at" = '2013-07-17 22:06:39.642054', "auth_token" = 'G9BVDJYUiQqmvfq73Yg9' WHERE "public"."cadenero_members"."id" = 980  (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" = 979 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 979 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 979 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 979 Completed 201 Created in 115ms (Views: 6.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/979" for 127.0.0.1 at 2013-07-17 17:06:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"979"} 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" = 794 AND "public"."cadenero_users"."id" = 979 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 979 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 979 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 979 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" = 979 Completed 200 OK in 13ms (Views: 7.1ms | 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-17 17:06:39 -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" = 979 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 979 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 979 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 979 Completed 201 Created in 8ms (Views: 5.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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06:39 -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" = 979 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3B/49pL0F0ZaSksS8l9sM.xUjf8XJwQyhZUtmo9tuM9XLQXCXWy.W"], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 980], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'epLyrgGX8xLBqcdFPpkn' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 980, "created_at" = '2013-07-17 22:06:39.810464', "updated_at" = '2013-07-17 22:06:39.810464', "authentication_token" = 'epLyrgGX8xLBqcdFPpkn' WHERE "public"."cadenero_accounts"."id" = 795  (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", 795], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:39 UTC +00:00], ["user_id", 980]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pizjvUVyWdx3CynQT2jE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 795, "user_id" = 980, "created_at" = '2013-07-17 22:06:39.873368', "updated_at" = '2013-07-17 22:06:39.873368', "auth_token" = 'pizjvUVyWdx3CynQT2jE' WHERE "public"."cadenero_members"."id" = 981  (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)   (0.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")  (11.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))  (3.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (2.1ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:06: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.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" = 795 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" = 980 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 980 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 980 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 980 Completed 201 Created in 113ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 795 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:06:40 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"980", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 980 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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)  (6.5ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$5CJZdTqVVHS1eY.1.PTosOCkJkcjyJQEbqq3k5BoBjhYD9rQLnRoS"], ["updated_at", Wed, 17 Jul 2013 22:06: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" = '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", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 981], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9guAc69XhFyrqoDQrFEB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 981, "created_at" = '2013-07-17 22:06:40.200795', "updated_at" = '2013-07-17 22:06:40.200795', "authentication_token" = '9guAc69XhFyrqoDQrFEB' WHERE "public"."cadenero_accounts"."id" = 796  (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", 796], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["user_id", 981]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iKHUkWJfVF9EW5PqqoYM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 796, "user_id" = 981, "created_at" = '2013-07-17 22:06:40.206324', "updated_at" = '2013-07-17 22:06:40.206324', "auth_token" = 'iKHUkWJfVF9EW5PqqoYM' WHERE "public"."cadenero_members"."id" = 982  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (4.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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-17 17:06:40 -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.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" = 796 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" = 981 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 981 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 981 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 981 Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.9ms) 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" = 796 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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" = 981 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$PLASGjo1fHNpayU9hAzvEu2PEexX3Cz2Rk0y3H5GaoLRgn0aNQM6O"], ["updated_at", Wed, 17 Jul 2013 22:06: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" = '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", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 982], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jmVtGp9UeReTSNReKLz3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 982, "created_at" = '2013-07-17 22:06:40.501269', "updated_at" = '2013-07-17 22:06:40.501269', "authentication_token" = 'jmVtGp9UeReTSNReKLz3' WHERE "public"."cadenero_accounts"."id" = 797  (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", 797], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["user_id", 982]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MVkXSgeTnH6PDjtWVfyQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 797, "user_id" = 982, "created_at" = '2013-07-17 22:06:40.506681', "updated_at" = '2013-07-17 22:06:40.506681', "auth_token" = 'MVkXSgeTnH6PDjtWVfyQ' WHERE "public"."cadenero_members"."id" = 983  (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.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")  (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))  (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.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)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:06:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 797 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" = 982 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 982 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 982 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 982 Completed 201 Created in 108ms (Views: 5.2ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 797 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:06:40 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"982", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 982 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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/users" for 127.0.0.1 at 2013-07-17 17:06:40 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$3twU12T8sToi.hG49Nr1UeLOTYFKdbLdMLH0u5/I8J9JoPPjkz3kC"], ["updated_at", Wed, 17 Jul 2013 22:06:40 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", 797], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["user_id", 983]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B1DPFwpm82Uajtg1MiML' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 797, "user_id" = 983, "created_at" = '2013-07-17 22:06:40.781663', "updated_at" = '2013-07-17 22:06:40.781663', "auth_token" = 'B1DPFwpm82Uajtg1MiML' WHERE "public"."cadenero_members"."id" = 984  (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" = 983 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 983 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 983 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 983 Completed 201 Created in 112ms (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 Started GET "/v1/users/983" for 127.0.0.1 at 2013-07-17 17:06:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"983"} 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" = 797 AND "public"."cadenero_users"."id" = 983 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 983 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 983 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 983 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 983 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:06:40 -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" = 983 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 983 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 983 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 983 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$JOx8/Mmw93sr47C3r7lw4uGRvRT6zfaPCgO1GIodql8az17jxdN0W"], ["updated_at", Wed, 17 Jul 2013 22:06: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" = '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", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 984], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wLJxpfR9Hzy4sX9GAWcx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 984, "created_at" = '2013-07-17 22:06:40.933438', "updated_at" = '2013-07-17 22:06:40.933438', "authentication_token" = 'wLJxpfR9Hzy4sX9GAWcx' WHERE "public"."cadenero_accounts"."id" = 798  (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", 798], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:40 UTC +00:00], ["user_id", 984]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'siqS6zrwtQAaRBuYT3qk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 798, "user_id" = 984, "created_at" = '2013-07-17 22:06:40.938887', "updated_at" = '2013-07-17 22:06:40.938887', "auth_token" = 'siqS6zrwtQAaRBuYT3qk' WHERE "public"."cadenero_members"."id" = 985  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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-17 17:06: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 798 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$wHsJ3uh1C8QrC2rVpTtQAuV4L6n4mcfhMm6K/2cfcQDudB8Ptcj4."], ["updated_at", Wed, 17 Jul 2013 22:06: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" = '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", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 985], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1gp6JjLEoo6FBGvvR44q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 985, "created_at" = '2013-07-17 22:06:41.111058', "updated_at" = '2013-07-17 22:06:41.111058', "authentication_token" = '1gp6JjLEoo6FBGvvR44q' WHERE "public"."cadenero_accounts"."id" = 799  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", 799], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["user_id", 985]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MCeWRoWEqJbsZc7hMgzC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 799, "user_id" = 985, "created_at" = '2013-07-17 22:06:41.116456', "updated_at" = '2013-07-17 22:06:41.116456', "auth_token" = 'MCeWRoWEqJbsZc7hMgzC' WHERE "public"."cadenero_members"."id" = 986  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (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, "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")  (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.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')  (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", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$BkciK78JmgdMMSrKqOipn.XY155pbHKAfnS6dfpFUdokbXaniLVuO"], ["updated_at", Wed, 17 Jul 2013 22:06:41 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" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 986], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sU8qs1WqbcjusBziXjsw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 986, "created_at" = '2013-07-17 22:06:41.270772', "updated_at" = '2013-07-17 22:06:41.270772', "authentication_token" = 'sU8qs1WqbcjusBziXjsw' WHERE "public"."cadenero_accounts"."id" = 800  (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", 800], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["user_id", 986]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RR1PqEsJEXsoyzBnHxTZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 800, "user_id" = 986, "created_at" = '2013-07-17 22:06:41.276569', "updated_at" = '2013-07-17 22:06:41.276569', "auth_token" = 'RR1PqEsJEXsoyzBnHxTZ' WHERE "public"."cadenero_members"."id" = 987  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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-17 17:06:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 799 AND "public"."cadenero_users"."email" = 'user11@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.0ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$HE/RQQjx7eBs3tGk84kjWezn1gadpQtwmmm4A1/9zar.46KsjVK3S"], ["updated_at", Wed, 17 Jul 2013 22:06: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" = '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", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 987], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PxCSzE6CoZUg5xAQMPLB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 987, "created_at" = '2013-07-17 22:06:41.407190', "updated_at" = '2013-07-17 22:06:41.407190', "authentication_token" = 'PxCSzE6CoZUg5xAQMPLB' WHERE "public"."cadenero_accounts"."id" = 801  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 801], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["user_id", 987]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'frsmmFQXEZ9zrXNrxbhB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 801, "user_id" = 987, "created_at" = '2013-07-17 22:06:41.442490', "updated_at" = '2013-07-17 22:06:41.442490', "auth_token" = 'frsmmFQXEZ9zrXNrxbhB' WHERE "public"."cadenero_members"."id" = 988  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (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")  (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))  (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.9ms) 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)   (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:06: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-17 17:06: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 ('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" = 801 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Zj6oFZx.C/TQbINBTiWNSu6BDuW4EUjSZxxar4noE7Xx2185BD9BG"], ["updated_at", Wed, 17 Jul 2013 22:06: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 988], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'n1aGtAopYw1pVuNCXhc6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 988, "created_at" = '2013-07-17 22:06:41.626937', "updated_at" = '2013-07-17 22:06:41.626937', "authentication_token" = 'n1aGtAopYw1pVuNCXhc6' WHERE "public"."cadenero_accounts"."id" = 802  (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", 802], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:06:41 UTC +00:00], ["user_id", 988]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wyp1pkJQ77s1bKYiDxRa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 802, "user_id" = 988, "created_at" = '2013-07-17 22:06:41.633340', "updated_at" = '2013-07-17 22:06:41.633340', "auth_token" = 'Wyp1pkJQ77s1bKYiDxRa' WHERE "public"."cadenero_members"."id" = 989  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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.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.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:06:41 -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.8ms) ROLLBACK Connecting to database specified by database.yml  (2.0ms) BEGIN  (0.2ms) COMMIT  (10.0ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (28.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$M663u0mIIrKL4nZlS56M0.3DT3nqOqW/Vfid.ZJV4V1apB3SsLSra"], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 989], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00]] Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EzNYDBYrPDdY3L7WEkqZ' LIMIT 1  (5.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 989, "created_at" = '2013-07-17 22:07:53.205530', "updated_at" = '2013-07-17 22:07:53.205530', "authentication_token" = 'EzNYDBYrPDdY3L7WEkqZ' WHERE "public"."cadenero_accounts"."id" = 803  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) 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", 803], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["user_id", 989]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oxyzmWwtg4qpyAq4q8MA' LIMIT 1  (5.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 803, "user_id" = 989, "created_at" = '2013-07-17 22:07:53.366231', "updated_at" = '2013-07-17 22:07:53.366231', "auth_token" = 'oxyzmWwtg4qpyAq4q8MA' WHERE "public"."cadenero_members"."id" = 990  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.7ms) 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)   (4.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, "auth_token" character varying(255))  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07: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 44ms (Views: 0.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 989 Started GET "/v1?auth_token[]=oxyzmWwtg4qpyAq4q8MA" for 127.0.0.1 at 2013-07-17 17:07:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["oxyzmWwtg4qpyAq4q8MA"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 803 AND "public"."cadenero_members"."auth_token" IN ('oxyzmWwtg4qpyAq4q8MA') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 989 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 989 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (3.9ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$dpq1uEtUklhGoN2R3/BO4uxQXI4lnh1ujzP.1858xP8DFdxDsAra6"], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 990], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x23tTJEMWzYoaWrGMRmj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 990, "created_at" = '2013-07-17 22:07:53.736974', "updated_at" = '2013-07-17 22:07:53.736974', "authentication_token" = 'x23tTJEMWzYoaWrGMRmj' WHERE "public"."cadenero_accounts"."id" = 804  (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", 804], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["user_id", 990]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RwgzNoPyvJznSy5uxQvh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 804, "user_id" = 990, "created_at" = '2013-07-17 22:07:53.742415', "updated_at" = '2013-07-17 22:07:53.742415', "auth_token" = 'RwgzNoPyvJznSy5uxQvh' WHERE "public"."cadenero_members"."id" = 991  (0.1ms) 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)  (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.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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 ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:07:53 -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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$dljMueOfn1b900oTYFZXoOPSlVvFx4vb4LIeM7srkdupksHDtMZUi"], ["updated_at", Wed, 17 Jul 2013 22:07:53 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", 804], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:53 UTC +00:00], ["user_id", 991]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LJBfH2oQ48kqjct8Fukz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 804, "user_id" = 991, "created_at" = '2013-07-17 22:07:53.920887', "updated_at" = '2013-07-17 22:07:53.920887', "auth_token" = 'LJBfH2oQ48kqjct8Fukz' WHERE "public"."cadenero_members"."id" = 992  (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" = 991 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 991 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 991 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" = 991 Completed 201 Created in 139ms (Views: 28.3ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/991" for 127.0.0.1 at 2013-07-17 17:07:53 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"991"} 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" = 804 AND "public"."cadenero_users"."id" = 991 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 991 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 991 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 991 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 991 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 990 Started GET "/v1?auth_token[]=RwgzNoPyvJznSy5uxQvh" for 127.0.0.1 at 2013-07-17 17:07:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["RwgzNoPyvJznSy5uxQvh"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 804 AND "public"."cadenero_members"."auth_token" IN ('RwgzNoPyvJznSy5uxQvh') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 990 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 990 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms) Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 991 Started GET "/v1?auth_token[]=LJBfH2oQ48kqjct8Fukz" for 127.0.0.1 at 2013-07-17 17:07:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["LJBfH2oQ48kqjct8Fukz"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 804 AND "public"."cadenero_members"."auth_token" IN ('LJBfH2oQ48kqjct8Fukz') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 991 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 991 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$13ibr.NUVe2UZuXUd9hCY.WlrXSBy9IaZQ5k0YYlCkUUDlk2RuZXi"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 992], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yxb9t9xvYqzqfVZK2k4y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 992, "created_at" = '2013-07-17 22:07:54.118709', "updated_at" = '2013-07-17 22:07:54.118709', "authentication_token" = 'yxb9t9xvYqzqfVZK2k4y' WHERE "public"."cadenero_accounts"."id" = 805  (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", 805], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["user_id", 992]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '63zwaPpaqELVRunFzU7f' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 805, "user_id" = 992, "created_at" = '2013-07-17 22:07:54.124786', "updated_at" = '2013-07-17 22:07:54.124786', "auth_token" = '63zwaPpaqELVRunFzU7f' WHERE "public"."cadenero_members"."id" = 993  (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)   (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.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.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (0.8ms) 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"  (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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$2EJjFj5WoiPqOBIgRzhCCe5ncdNRb3EXGdhsKuAiULiQ82D5NF7YG"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 993], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JLGKUgY2EQSbq61BNUx1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 993, "created_at" = '2013-07-17 22:07:54.290125', "updated_at" = '2013-07-17 22:07:54.290125', "authentication_token" = 'JLGKUgY2EQSbq61BNUx1' WHERE "public"."cadenero_accounts"."id" = 806  (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", 806], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["user_id", 993]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4wq3GPJunHHxsBmiG35H' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 806, "user_id" = 993, "created_at" = '2013-07-17 22:07:54.295163', "updated_at" = '2013-07-17 22:07:54.295163', "auth_token" = '4wq3GPJunHHxsBmiG35H' WHERE "public"."cadenero_members"."id" = 994  (0.1ms) 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)   (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")  (5.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.6ms) SELECT version FROM "schema_migrations"  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 993 Started GET "/v1?auth_token[]=4wq3GPJunHHxsBmiG35H" for 127.0.0.1 at 2013-07-17 17:07:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["4wq3GPJunHHxsBmiG35H"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 805 AND "public"."cadenero_members"."auth_token" IN ('4wq3GPJunHHxsBmiG35H') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (9.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$dlBVb75t5tbunjvgwYhDBOqNA5yEST1i7y/7sRvgGmZZo3lzratoO"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 994], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G3KGLzofJx4ZCNVpJV6y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 994, "created_at" = '2013-07-17 22:07:54.525641', "updated_at" = '2013-07-17 22:07:54.525641', "authentication_token" = 'G3KGLzofJx4ZCNVpJV6y' WHERE "public"."cadenero_accounts"."id" = 807  (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", 807], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["user_id", 994]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '38hXJ7Fvv9A9uGw1MUyy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 807, "user_id" = 994, "created_at" = '2013-07-17 22:07:54.531045', "updated_at" = '2013-07-17 22:07:54.531045', "auth_token" = '38hXJ7Fvv9A9uGw1MUyy' WHERE "public"."cadenero_members"."id" = 995  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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")  (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.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 ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:54 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 807 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" = 994 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 994 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 994 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" = 994 Completed 201 Created in 112ms (Views: 6.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 807 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:54 -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" = 994 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (11.5ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$trGLJiBFqWBJPYSCQmi4Vuv5u5z2VUkFnq4rcUuxUsm4GL8ZfiX/2"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 995], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x228hPYYQvh5Tm6rpvmJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 995, "created_at" = '2013-07-17 22:07:54.858205', "updated_at" = '2013-07-17 22:07:54.858205', "authentication_token" = 'x228hPYYQvh5Tm6rpvmJ' WHERE "public"."cadenero_accounts"."id" = 808  (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", 808], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:54 UTC +00:00], ["user_id", 995]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZMWDuqmeXzhpqzVYqUwu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 808, "user_id" = 995, "created_at" = '2013-07-17 22:07:54.863831', "updated_at" = '2013-07-17 22:07:54.863831', "auth_token" = 'ZMWDuqmeXzhpqzVYqUwu' WHERE "public"."cadenero_members"."id" = 996  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.8ms) 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, "auth_token" character varying(255))  (7.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")  (10.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:07:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (1.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", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$lnV2Fa.n4bMJGYSJNi1.8uipTFhmsyYIi0SizFzq.CGOgjx3Vgd8y"], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 808], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["user_id", 996]] Cadenero::Member Load (3.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qjsAya2Tfn5zhqbXzj5Q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 808, "user_id" = 996, "created_at" = '2013-07-17 22:07:55.102879', "updated_at" = '2013-07-17 22:07:55.102879', "auth_token" = 'qjsAya2Tfn5zhqbXzj5Q' WHERE "public"."cadenero_members"."id" = 997  (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" = 996 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 996 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 996 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 996 Completed 201 Created in 127ms (Views: 5.9ms | ActiveRecord: 9.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/996" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"996"} Cadenero::V1::Account Load (0.5ms) 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" = 808 AND "public"."cadenero_users"."id" = 996 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 996 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 996 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 996 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 996 Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07: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" = 996 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 996 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 996 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" = 996 Completed 201 Created in 11ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07: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" = 996 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (8.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$gBt6r735.4W1vnwyyxXO4uQglmePeMZWgyqg/8yZ21M/qocRGQpae"], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 997], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00]] Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fvsExytcaABGJTRPCNiA' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 997, "created_at" = '2013-07-17 22:07:55.340041', "updated_at" = '2013-07-17 22:07:55.340041', "authentication_token" = 'fvsExytcaABGJTRPCNiA' WHERE "public"."cadenero_accounts"."id" = 809  (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", 809], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["user_id", 997]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vYUtJbrZKBhqg5gRN1ff' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 809, "user_id" = 997, "created_at" = '2013-07-17 22:07:55.348789', "updated_at" = '2013-07-17 22:07:55.348789', "auth_token" = 'vYUtJbrZKBhqg5gRN1ff' WHERE "public"."cadenero_members"."id" = 998  (0.1ms) 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)  (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, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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/sessions" for 127.0.0.1 at 2013-07-17 17:07: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.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" = 809 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" = 997 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 997 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 997 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 997 Completed 201 Created in 110ms (Views: 6.2ms | 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" = 809 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"997", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 997 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (9.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$FF7lYIRBZW8ijsFVHPFzFOmec5TkJkJeN6tVXV23bwtwgMFbg7aoW"], ["updated_at", Wed, 17 Jul 2013 22:07: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.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", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 998], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mbe9FmMtxjpZBy5vqssk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 998, "created_at" = '2013-07-17 22:07:55.657324', "updated_at" = '2013-07-17 22:07:55.657324', "authentication_token" = 'mbe9FmMtxjpZBy5vqssk' WHERE "public"."cadenero_accounts"."id" = 810  (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", 810], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["user_id", 998]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FdGhtAgz5z6xx6XnmTaU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 810, "user_id" = 998, "created_at" = '2013-07-17 22:07:55.662791', "updated_at" = '2013-07-17 22:07:55.662791', "auth_token" = 'FdGhtAgz5z6xx6XnmTaU' WHERE "public"."cadenero_members"."id" = 999  (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.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.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))  (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.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)   (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 ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 810 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" = 998 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 998 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 998 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 998 Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 810 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"998", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 998 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ukc/bgBTIs38Njru..US4.vahQvzsBapVrvyImp3qAuEqsHwifRJS"], ["updated_at", Wed, 17 Jul 2013 22:07: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", 810], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:55 UTC +00:00], ["user_id", 999]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z1BWUjCp5YHNsKYmpsWS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 810, "user_id" = 999, "created_at" = '2013-07-17 22:07:55.944388', "updated_at" = '2013-07-17 22:07:55.944388', "auth_token" = 'z1BWUjCp5YHNsKYmpsWS' WHERE "public"."cadenero_members"."id" = 1000  (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" = 999 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 999 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 999 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 999 Completed 201 Created in 116ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/999" for 127.0.0.1 at 2013-07-17 17:07:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"999"} 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" = 810 AND "public"."cadenero_users"."id" = 999 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 999 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 999 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 999 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 999 Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07: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" = 999 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 999 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 999 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 999 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  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Ed9x2HuWvaltMTOpbyHMzOPPdPoYsGbANCH8UNfeXygdVJnDIOW3m"], ["updated_at", Wed, 17 Jul 2013 22:07: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" = '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", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1000], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Dng7xLQXLtHxZwgSvFpu' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1000, "created_at" = '2013-07-17 22:07:56.093936', "updated_at" = '2013-07-17 22:07:56.093936', "authentication_token" = 'Dng7xLQXLtHxZwgSvFpu' WHERE "public"."cadenero_accounts"."id" = 811  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 811], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["user_id", 1000]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pqcXpxzGBep7P1MLVRRW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 811, "user_id" = 1000, "created_at" = '2013-07-17 22:07:56.101081', "updated_at" = '2013-07-17 22:07:56.101081', "auth_token" = 'pqcXpxzGBep7P1MLVRRW' WHERE "public"."cadenero_members"."id" = 1001  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "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")  (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.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 GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) 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" = 811 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  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$MC1L42FnE2VcyOExsq2Rf.IrqNX8PZd0mV.W8.D5cvncrY77AWM5O"], ["updated_at", Wed, 17 Jul 2013 22:07: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1001], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1R8asVcxW5G8M7z7Xq5F' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1001, "created_at" = '2013-07-17 22:07:56.276316', "updated_at" = '2013-07-17 22:07:56.276316', "authentication_token" = '1R8asVcxW5G8M7z7Xq5F' WHERE "public"."cadenero_accounts"."id" = 812  (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", 812], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["user_id", 1001]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2HsvphKkm1wp1cjC8gcD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 812, "user_id" = 1001, "created_at" = '2013-07-17 22:07:56.281856', "updated_at" = '2013-07-17 22:07:56.281856', "auth_token" = '2HsvphKkm1wp1cjC8gcD' WHERE "public"."cadenero_members"."id" = 1002  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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, "auth_token" character varying(255))   (1.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")  (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)  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 812 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 35ms (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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ZGvvMIr3QLSEOvRb1HxKpOk2Ujo37hxlJMy8iGmKRicWq.NvCLdFy"], ["updated_at", Wed, 17 Jul 2013 22:07: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.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", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1002], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hrJJemg4mjRrDpupjJss' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1002, "created_at" = '2013-07-17 22:07:56.492562', "updated_at" = '2013-07-17 22:07:56.492562', "authentication_token" = 'hrJJemg4mjRrDpupjJss' WHERE "public"."cadenero_accounts"."id" = 813  (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", 813], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["user_id", 1002]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xgpxxxHyW2spwLjrL8xb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 813, "user_id" = 1002, "created_at" = '2013-07-17 22:07:56.498276', "updated_at" = '2013-07-17 22:07:56.498276', "auth_token" = 'xgpxxxHyW2spwLjrL8xb' WHERE "public"."cadenero_members"."id" = 1003  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$lmooIRRUJLLkN9FCwVQhEOT.kfsSuG2SZaJxifQFCS6A8FI0lPbNq"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1003], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sxTgJoA72sbSwYMzdLvK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1003, "created_at" = '2013-07-17 22:07:56.649548', "updated_at" = '2013-07-17 22:07:56.649548', "authentication_token" = 'sxTgJoA72sbSwYMzdLvK' WHERE "public"."cadenero_accounts"."id" = 814  (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", 814], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["user_id", 1003]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6N39396fJxqeJsp35Yyp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 814, "user_id" = 1003, "created_at" = '2013-07-17 22:07:56.655805', "updated_at" = '2013-07-17 22:07:56.655805', "auth_token" = '6N39396fJxqeJsp35Yyp' WHERE "public"."cadenero_members"."id" = 1004  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:07:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:56 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 813 AND "public"."cadenero_users"."email" = 'user12@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  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$M6ZlrXYuMCjOEaQPrHdoMeJwvAFeyQ.7W6RPRoMJAtSZZhn5VgAGm"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1004], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZvDz1LeHPbUDBehQaqyq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1004, "created_at" = '2013-07-17 22:07:56.784726', "updated_at" = '2013-07-17 22:07:56.784726', "authentication_token" = 'ZvDz1LeHPbUDBehQaqyq' WHERE "public"."cadenero_accounts"."id" = 815  (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", 815], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:07:56 UTC +00:00], ["user_id", 1004]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WYHo2aPtdbVXHVmN9FYN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 815, "user_id" = 1004, "created_at" = '2013-07-17 22:07:56.790624', "updated_at" = '2013-07-17 22:07:56.790624', "auth_token" = 'WYHo2aPtdbVXHVmN9FYN' WHERE "public"."cadenero_members"."id" = 1005  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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")  (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.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.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.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 ('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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:07:56 -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  (6.7ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (7.7ms) COMMIT  (0.1ms) BEGIN  (6.8ms) SAVEPOINT active_record_1 SQL (26.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0YyziVDfG6uboQ7XpgcAI.1AS6VbMmoeZVcc2oSLJSyzPIWkrUyBW"], ["updated_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.0ms) 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", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1005], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Eb52sLAzKqURNvfAxZsb' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1005, "created_at" = '2013-07-17 22:08:36.252723', "updated_at" = '2013-07-17 22:08:36.252723', "authentication_token" = 'Eb52sLAzKqURNvfAxZsb' WHERE "public"."cadenero_accounts"."id" = 816  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.2ms) SAVEPOINT active_record_1 SQL (14.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", 816], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["user_id", 1005]] Cadenero::Member Load (6.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iHxhaqRtRFZWDgxZiw3q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 816, "user_id" = 1005, "created_at" = '2013-07-17 22:08:36.394100', "updated_at" = '2013-07-17 22:08:36.394100', "auth_token" = 'iHxhaqRtRFZWDgxZiw3q' WHERE "public"."cadenero_members"."id" = 1006  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.6ms) CREATE SCHEMA "test1"  (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)   (5.4ms) 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.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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")  (15.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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.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-17 17:08:36 -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" = 816 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" = 1005 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1005 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1005 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1005 Completed 201 Created in 184ms (Views: 29.6ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 816 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-17 17:08:36 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1005", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1005 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08: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/users" for 127.0.0.1 at 2013-07-17 17:08:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$hLXjv23TbOZHkX/Y9RxUIuF5hKqIFUeJ2uX9aD5AN5JqjQMvIi5Nu"], ["updated_at", Wed, 17 Jul 2013 22:08:36 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", 816], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:36 UTC +00:00], ["user_id", 1006]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'smnsGnL4jHUJQYWGzy5U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 816, "user_id" = 1006, "created_at" = '2013-07-17 22:08:36.899996', "updated_at" = '2013-07-17 22:08:36.899996', "auth_token" = 'smnsGnL4jHUJQYWGzy5U' WHERE "public"."cadenero_members"."id" = 1007  (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" = 1006 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1006 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1006 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1006 Completed 201 Created in 118ms (Views: 6.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/1006" for 127.0.0.1 at 2013-07-17 17:08:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1006"} 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" = 816 AND "public"."cadenero_users"."id" = 1006 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1006 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1006 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1006 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1006 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1006 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1006 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1006 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" = 1006 Completed 201 Created in 12ms (Views: 5.8ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (7.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$7rsPlC3hTqqlLcQ0TMMZfO3Yp52TdxyjMeLg0dWUvQPOq96vRU.hS"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1007], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f9SqbuH9eVnprE6x6yy9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1007, "created_at" = '2013-07-17 22:08:37.087944', "updated_at" = '2013-07-17 22:08:37.087944', "authentication_token" = 'f9SqbuH9eVnprE6x6yy9' WHERE "public"."cadenero_accounts"."id" = 817  (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", 817], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["user_id", 1007]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uCtwCeKTCuKDpV5QChpb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 817, "user_id" = 1007, "created_at" = '2013-07-17 22:08:37.093343', "updated_at" = '2013-07-17 22:08:37.093343', "auth_token" = 'uCtwCeKTCuKDpV5QChpb' WHERE "public"."cadenero_members"."id" = 1008  (0.1ms) 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)   (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, "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")  (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)   (8.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 817 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" = 1007 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1007 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1007 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1007 Completed 201 Created in 115ms (Views: 5.8ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 817 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08:37 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1007", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1007 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08: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.2ms | ActiveRecord: 0.0ms)  (6.1ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$LjIzUicpkJ.mj/I/UYYV2uLg.AbpGUt66er6UZ00tvAeBl4rbzzN."], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1008], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FEwzmVmk6DbG73XmcL95' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1008, "created_at" = '2013-07-17 22:08:37.433177', "updated_at" = '2013-07-17 22:08:37.433177', "authentication_token" = 'FEwzmVmk6DbG73XmcL95' WHERE "public"."cadenero_accounts"."id" = 818  (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", 818], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["user_id", 1008]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kN9xew9ZHXfexU4m5yAv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 818, "user_id" = 1008, "created_at" = '2013-07-17 22:08:37.438540', "updated_at" = '2013-07-17 22:08:37.438540', "auth_token" = 'kN9xew9ZHXfexU4m5yAv' WHERE "public"."cadenero_members"."id" = 1009  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.9ms) 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-17 17:08: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/users" for 127.0.0.1 at 2013-07-17 17:08:37 -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", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$2brR/7yD..zwM/CJWwYl2udLBo1fOq/AX6T.ALmQTAJCUpz3CsBIK"], ["updated_at", Wed, 17 Jul 2013 22:08:37 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", 818], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["user_id", 1009]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xDreKpZGd2dmAZgQCpNN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 818, "user_id" = 1009, "created_at" = '2013-07-17 22:08:37.616882', "updated_at" = '2013-07-17 22:08:37.616882', "auth_token" = 'xDreKpZGd2dmAZgQCpNN' WHERE "public"."cadenero_members"."id" = 1010  (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" = 1009 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1009 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1009 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1009 Completed 201 Created in 122ms (Views: 5.8ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1009" for 127.0.0.1 at 2013-07-17 17:08:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1009"} 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" = 818 AND "public"."cadenero_users"."id" = 1009 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1009 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1009 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1009 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" = 1009 Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08:37 -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" = 1009 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1009 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1009 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1009 Completed 201 Created in 7ms (Views: 5.1ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08:37 -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" = 1009 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$uT4BoE/nHEC.7ZSpoS5QDeoZ4rb32viNH0g12zB0FKYPr1R6f9wpy"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1010], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7eD8ZDso5GVKRi4EpsR3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1010, "created_at" = '2013-07-17 22:08:37.788681', "updated_at" = '2013-07-17 22:08:37.788681', "authentication_token" = '7eD8ZDso5GVKRi4EpsR3' WHERE "public"."cadenero_accounts"."id" = 819  (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", 819], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:37 UTC +00:00], ["user_id", 1010]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'G98ZApzBLcyYdEEJij5K' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 819, "user_id" = 1010, "created_at" = '2013-07-17 22:08:37.794092', "updated_at" = '2013-07-17 22:08:37.794092', "auth_token" = 'G98ZApzBLcyYdEEJij5K' WHERE "public"."cadenero_members"."id" = 1011  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.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")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08: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-17 17:08:37 -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.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" = 819 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" = 1010 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1010 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1010 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" = 1010 Completed 201 Created in 111ms (Views: 6.3ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 819 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08:38 -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" = 1010 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$IczuZwkTStzx.OjChO8YW.CZqOP0IpbU081L0BqkcQsv8LW.pfFIa"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1011], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ohdTLhPRmnMvzdVkQjvz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1011, "created_at" = '2013-07-17 22:08:38.190932', "updated_at" = '2013-07-17 22:08:38.190932', "authentication_token" = 'ohdTLhPRmnMvzdVkQjvz' WHERE "public"."cadenero_accounts"."id" = 820  (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", 820], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["user_id", 1011]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qycBUWGgpGsinaqSEJhr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 820, "user_id" = 1011, "created_at" = '2013-07-17 22:08:38.196470', "updated_at" = '2013-07-17 22:08:38.196470', "auth_token" = 'qycBUWGgpGsinaqSEJhr' WHERE "public"."cadenero_members"."id" = 1012  (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)  (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, "auth_token" character varying(255))   (0.9ms) 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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08:38 -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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bQIpz6PrmRTTPDNzNFYvv.pAHdO8j/AkzMIsDtX8erN/eMP6bByEG"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1012], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1jtf481FZarDhYeBEQK6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1012, "created_at" = '2013-07-17 22:08:38.365756', "updated_at" = '2013-07-17 22:08:38.365756', "authentication_token" = '1jtf481FZarDhYeBEQK6' WHERE "public"."cadenero_accounts"."id" = 821  (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", 821], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["user_id", 1012]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '88gwLAU2ExGcfDN4f1yt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 821, "user_id" = 1012, "created_at" = '2013-07-17 22:08:38.371473', "updated_at" = '2013-07-17 22:08:38.371473', "auth_token" = '88gwLAU2ExGcfDN4f1yt' WHERE "public"."cadenero_members"."id" = 1013  (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.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")  (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.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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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) 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", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$1MnfH5vPqZuO8Sr/LzIN/OFzDF66HPWkLnwK7KA5rur7D9dQVWw5C"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1013], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tX2Z7dcKsPUzhsEnbztS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1013, "created_at" = '2013-07-17 22:08:38.529243', "updated_at" = '2013-07-17 22:08:38.529243', "authentication_token" = 'tX2Z7dcKsPUzhsEnbztS' WHERE "public"."cadenero_accounts"."id" = 822  (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", 822], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["user_id", 1013]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RwbqyJpxDme7A432XT4e' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 822, "user_id" = 1013, "created_at" = '2013-07-17 22:08:38.534460', "updated_at" = '2013-07-17 22:08:38.534460', "auth_token" = 'RwbqyJpxDme7A432XT4e' WHERE "public"."cadenero_members"."id" = 1014  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08:38 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 821 AND "public"."cadenero_users"."email" = 'user7@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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$2Kt3ykXGAGjC6XyphBYGceWrCV25BhB26J3KJ0iP.ESmbDKCZzsFi"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1014], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NWWqVydzpMUo2QcHKPFY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1014, "created_at" = '2013-07-17 22:08:38.663463', "updated_at" = '2013-07-17 22:08:38.663463', "authentication_token" = 'NWWqVydzpMUo2QcHKPFY' WHERE "public"."cadenero_accounts"."id" = 823  (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", 823], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["user_id", 1014]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kMSa2aUnTmBpcjto6poe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 823, "user_id" = 1014, "created_at" = '2013-07-17 22:08:38.668874', "updated_at" = '2013-07-17 22:08:38.668874', "auth_token" = 'kMSa2aUnTmBpcjto6poe' WHERE "public"."cadenero_members"."id" = 1015  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08: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 ('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" = 823 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) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$6S0euNIVVvS65yd2ShuXNuKjkET4Mkgx284SFjz1.EPtJgla495FS"], ["updated_at", Wed, 17 Jul 2013 22:08: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" = '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", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1015], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LZSfjYsjjGhp4yS6pGSq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1015, "created_at" = '2013-07-17 22:08:38.842921', "updated_at" = '2013-07-17 22:08:38.842921', "authentication_token" = 'LZSfjYsjjGhp4yS6pGSq' WHERE "public"."cadenero_accounts"."id" = 824  (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", 824], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:38 UTC +00:00], ["user_id", 1015]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zG728ayvYdVZ9qdBmbdW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 824, "user_id" = 1015, "created_at" = '2013-07-17 22:08:38.848903', "updated_at" = '2013-07-17 22:08:38.848903', "auth_token" = 'zG728ayvYdVZ9qdBmbdW' WHERE "public"."cadenero_members"."id" = 1016  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:08:38 -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" = 824 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$3RnA4.8BXoMredoNJDwpcOyqGUN57FkEFK0.Nof/gGwJyLSKGtHr2"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1016], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3FsrS4h3ycdpXrxo9ofD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1016, "created_at" = '2013-07-17 22:08:39.028594', "updated_at" = '2013-07-17 22:08:39.028594', "authentication_token" = '3FsrS4h3ycdpXrxo9ofD' WHERE "public"."cadenero_accounts"."id" = 825  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 825], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["user_id", 1016]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qz2U55TsxRFaGpyMpZYD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 825, "user_id" = 1016, "created_at" = '2013-07-17 22:08:39.034235', "updated_at" = '2013-07-17 22:08:39.034235', "auth_token" = 'qz2U55TsxRFaGpyMpZYD' WHERE "public"."cadenero_members"."id" = 1017  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('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.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", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$xhgndsctkmVqrImRvS1ywOZCwNQYwwgSh9r3zLdx/UDAMIUOi1Nke"], ["updated_at", Wed, 17 Jul 2013 22:08:39 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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1017], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vzhuJAdCMELwB88tPh5V' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1017, "created_at" = '2013-07-17 22:08:39.185799', "updated_at" = '2013-07-17 22:08:39.185799', "authentication_token" = 'vzhuJAdCMELwB88tPh5V' WHERE "public"."cadenero_accounts"."id" = 826  (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", 826], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["user_id", 1017]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DyLsxhB4fTrgMJk1kRZo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 826, "user_id" = 1017, "created_at" = '2013-07-17 22:08:39.191007', "updated_at" = '2013-07-17 22:08:39.191007', "auth_token" = 'DyLsxhB4fTrgMJk1kRZo' WHERE "public"."cadenero_members"."id" = 1018  (0.1ms) 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.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.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))   (10.8ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08: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) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1017 Started GET "/v1?auth_token[]=DyLsxhB4fTrgMJk1kRZo" for 127.0.0.1 at 2013-07-17 17:08:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["DyLsxhB4fTrgMJk1kRZo"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 825 AND "public"."cadenero_members"."auth_token" IN ('DyLsxhB4fTrgMJk1kRZo') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$Og3pKDlv4r3AjrkNOCGQYOgfV1FBC32gSc7T5qffOFCQZ862KYPp6"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1018], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Q76mKb89gJttmxnPUsLx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1018, "created_at" = '2013-07-17 22:08:39.391734', "updated_at" = '2013-07-17 22:08:39.391734', "authentication_token" = 'Q76mKb89gJttmxnPUsLx' WHERE "public"."cadenero_accounts"."id" = 827  (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", 827], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["user_id", 1018]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'C4AnntSpJCc2qrBq9xzW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 827, "user_id" = 1018, "created_at" = '2013-07-17 22:08:39.397155', "updated_at" = '2013-07-17 22:08:39.397155', "auth_token" = 'C4AnntSpJCc2qrBq9xzW' WHERE "public"."cadenero_members"."id" = 1019  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (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.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, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08: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/users" for 127.0.0.1 at 2013-07-17 17:08:39 -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.7ms) 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", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ljXH4an7JDPlHZbPckYIiO2XBKyrWzn0KqMYw.dc6weVVP2bLWqEa"], ["updated_at", Wed, 17 Jul 2013 22:08:39 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", 827], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["user_id", 1019]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FddmFLT8sch99UDP3njy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 827, "user_id" = 1019, "created_at" = '2013-07-17 22:08:39.563546', "updated_at" = '2013-07-17 22:08:39.563546', "auth_token" = 'FddmFLT8sch99UDP3njy' WHERE "public"."cadenero_members"."id" = 1020  (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" = 1019 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1019 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1019 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1019 Completed 201 Created in 143ms (Views: 35.5ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1019" for 127.0.0.1 at 2013-07-17 17:08:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1019"} 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" = 827 AND "public"."cadenero_users"."id" = 1019 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1019 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1019 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1019 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1019 Completed 200 OK in 11ms (Views: 6.0ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1018 Started GET "/v1?auth_token[]=C4AnntSpJCc2qrBq9xzW" for 127.0.0.1 at 2013-07-17 17:08:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["C4AnntSpJCc2qrBq9xzW"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 827 AND "public"."cadenero_members"."auth_token" IN ('C4AnntSpJCc2qrBq9xzW') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1018 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1018 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1019 Started GET "/v1?auth_token[]=FddmFLT8sch99UDP3njy" for 127.0.0.1 at 2013-07-17 17:08:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FddmFLT8sch99UDP3njy"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 827 AND "public"."cadenero_members"."auth_token" IN ('FddmFLT8sch99UDP3njy') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1019 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1019 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$5REiBt6RL.ffpIkrujlpf.uUD8q9YrzlkWgu9V20WytlTn/1BdyKC"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1020], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6q2B5oCJgop7DqSYtBSH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1020, "created_at" = '2013-07-17 22:08:39.762241', "updated_at" = '2013-07-17 22:08:39.762241', "authentication_token" = '6q2B5oCJgop7DqSYtBSH' WHERE "public"."cadenero_accounts"."id" = 828  (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", 828], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:08:39 UTC +00:00], ["user_id", 1020]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dsyb7ZdyyxT7uifvaRby' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 828, "user_id" = 1020, "created_at" = '2013-07-17 22:08:39.767987', "updated_at" = '2013-07-17 22:08:39.767987', "auth_token" = 'dsyb7ZdyyxT7uifvaRby' WHERE "public"."cadenero_members"."id" = 1021  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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")  (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.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:08: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1020 Started GET "/v1?auth_token[]=dsyb7ZdyyxT7uifvaRby" for 127.0.0.1 at 2013-07-17 17:08:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["dsyb7ZdyyxT7uifvaRby"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 828 AND "public"."cadenero_members"."auth_token" IN ('dsyb7ZdyyxT7uifvaRby') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1020 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1020 LIMIT 1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (4.1ms) ROLLBACK Connecting to database specified by database.yml  (3.4ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (38.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XjnQUN2dsPdIsadLzUmUGOwsGJ7t0FAYhS7Sq.SsWkbpwsE8c.rdi"], ["updated_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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 (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", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1021], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SL9Bv7D8pVZeQUWWcNxh' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1021, "created_at" = '2013-07-17 22:10:11.163140', "updated_at" = '2013-07-17 22:10:11.163140', "authentication_token" = 'SL9Bv7D8pVZeQUWWcNxh' WHERE "public"."cadenero_accounts"."id" = 829  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.3ms) SAVEPOINT active_record_1 SQL (20.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", 829], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["user_id", 1021]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zBqmTdVquTZ5vdLsxpu3' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 829, "user_id" = 1021, "created_at" = '2013-07-17 22:10:11.330107', "updated_at" = '2013-07-17 22:10:11.330107', "auth_token" = 'zBqmTdVquTZ5vdLsxpu3' WHERE "public"."cadenero_members"."id" = 1022  (10.0ms) RELEASE SAVEPOINT active_record_1  (4.5ms) 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)   (3.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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (34.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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:10:11 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@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 ('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" = 829 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" = 1021 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1021 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1021 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" = 1021 Completed 201 Created in 196ms (Views: 30.9ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 829 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:10:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1021", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1021 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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)  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (2.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$e5T7MqYz24l3JM3a5wIX9u4hrNT6IF7hjqyDFHnTybgbtAyOrvJE6"], ["updated_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1022], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CmJjYCUvUxWWhP1xwsT7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1022, "created_at" = '2013-07-17 22:10:11.900695', "updated_at" = '2013-07-17 22:10:11.900695', "authentication_token" = 'CmJjYCUvUxWWhP1xwsT7' WHERE "public"."cadenero_accounts"."id" = 830  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 830], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:11 UTC +00:00], ["user_id", 1022]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HzK2PWcRdQFvUgbVMqa2' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 830, "user_id" = 1022, "created_at" = '2013-07-17 22:10:11.906402', "updated_at" = '2013-07-17 22:10:11.906402', "auth_token" = 'HzK2PWcRdQFvUgbVMqa2' WHERE "public"."cadenero_members"."id" = 1023  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.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.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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-17 17:10: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 (2.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", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$2Ya/z1D/Ir8vJ2jfEDOVTuKjwirTKjP4BIJ8X30yCksdGkzSUbg4u"], ["updated_at", Wed, 17 Jul 2013 22:10: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", 830], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["user_id", 1023]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JxvaAVGgizs9d6A73pZH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 830, "user_id" = 1023, "created_at" = '2013-07-17 22:10:12.085604', "updated_at" = '2013-07-17 22:10:12.085604', "auth_token" = 'JxvaAVGgizs9d6A73pZH' WHERE "public"."cadenero_members"."id" = 1024  (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" = 1023 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1023 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1023 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1023 Completed 201 Created in 115ms (Views: 5.8ms | ActiveRecord: 5.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/1023" for 127.0.0.1 at 2013-07-17 17:10:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1023"} 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" = 830 AND "public"."cadenero_users"."id" = 1023 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1023 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1023 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1023 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1023 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:10: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1023 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1023 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1023 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" = 1023 Completed 201 Created in 7ms (Views: 5.0ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10:12 -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" = 1023 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$r7Kqv3qo6jSCJ1CBfolxsuhcm1YYXk9XeYzrO9B3kMIXcHuJvtvD2"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1024], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vMf4DCXUYhMyWTp8nC4f' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1024, "created_at" = '2013-07-17 22:10:12.277019', "updated_at" = '2013-07-17 22:10:12.277019', "authentication_token" = 'vMf4DCXUYhMyWTp8nC4f' WHERE "public"."cadenero_accounts"."id" = 831  (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", 831], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["user_id", 1024]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jQxVdvaXVVqmqSytgGdw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 831, "user_id" = 1024, "created_at" = '2013-07-17 22:10:12.282345', "updated_at" = '2013-07-17 22:10:12.282345', "auth_token" = 'jQxVdvaXVVqmqSytgGdw' WHERE "public"."cadenero_members"."id" = 1025  (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)   (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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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-17 17:10: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 (1.0ms) 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" = 831 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" = 1024 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1024 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1024 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1024 Completed 201 Created in 112ms (Views: 5.4ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 831 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-17 17:10:12 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1024", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1024 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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/users" for 127.0.0.1 at 2013-07-17 17:10: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.2ms) 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", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$AM2eMYDX4dfSXeq0w3Mv.u6Jv2avHONLSylMcTpOolRZRtEbyLLx."], ["updated_at", Wed, 17 Jul 2013 22:10: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", 831], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["user_id", 1025]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '12Z16Hte4GqnCz4Npr4y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 831, "user_id" = 1025, "created_at" = '2013-07-17 22:10:12.570189', "updated_at" = '2013-07-17 22:10:12.570189', "auth_token" = '12Z16Hte4GqnCz4Npr4y' WHERE "public"."cadenero_members"."id" = 1026  (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" = 1025 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1025 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1025 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" = 1025 Completed 201 Created in 111ms (Views: 5.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 Started GET "/v1/users/1025" for 127.0.0.1 at 2013-07-17 17:10:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1025"} 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" = 831 AND "public"."cadenero_users"."id" = 1025 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1025 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1025 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1025 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" = 1025 Completed 200 OK in 10ms (Views: 5.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-17 17:10: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1025 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1025 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1025 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" = 1025 Completed 201 Created in 7ms (Views: 4.8ms | 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$RzorWVqe0bVX8R8H7zgHnOBz9uqcaSVdskWD98mGfxRGf34HH.V32"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1026], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WsL7U4x4jU1v4DFg5XCd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1026, "created_at" = '2013-07-17 22:10:12.760450', "updated_at" = '2013-07-17 22:10:12.760450', "authentication_token" = 'WsL7U4x4jU1v4DFg5XCd' WHERE "public"."cadenero_accounts"."id" = 832  (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", 832], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:12 UTC +00:00], ["user_id", 1026]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HYea7NKRtkVaxbx3dST6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 832, "user_id" = 1026, "created_at" = '2013-07-17 22:10:12.765874', "updated_at" = '2013-07-17 22:10:12.765874', "auth_token" = 'HYea7NKRtkVaxbx3dST6' WHERE "public"."cadenero_members"."id" = 1027  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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")  (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")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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-17 17:10: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.6ms) 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" = 832 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" = 1026 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1026 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1026 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" = 1026 Completed 201 Created in 115ms (Views: 6.4ms | ActiveRecord: 2.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 832 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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" = 1026 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ESGCUCi.QLPWqS./Pl8iOOkX80dRd2unUR7agwX0sKIpDCS18RvDC"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1027], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zZsopmXu5wzZuzyqy59c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1027, "created_at" = '2013-07-17 22:10:13.112113', "updated_at" = '2013-07-17 22:10:13.112113', "authentication_token" = 'zZsopmXu5wzZuzyqy59c' WHERE "public"."cadenero_accounts"."id" = 833  (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", 833], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["user_id", 1027]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wSsptbBP4PzVda7qseSF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 833, "user_id" = 1027, "created_at" = '2013-07-17 22:10:13.117666', "updated_at" = '2013-07-17 22:10:13.117666', "auth_token" = 'wSsptbBP4PzVda7qseSF' WHERE "public"."cadenero_members"."id" = 1028  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) 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.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)  (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')  (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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bB6XsSxbO1gCLcoRbR2PKOjeFcf6wn5PLqD8Hq7US6yrE.Tb4Z2Gy"], ["updated_at", Wed, 17 Jul 2013 22:10:13 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.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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1028], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zsyrJjP8ZgBg1rWPUvGD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1028, "created_at" = '2013-07-17 22:10:13.307382', "updated_at" = '2013-07-17 22:10:13.307382', "authentication_token" = 'zsyrJjP8ZgBg1rWPUvGD' WHERE "public"."cadenero_accounts"."id" = 834  (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", 834], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["user_id", 1028]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jpByzmXjM7jHbQG7fDD6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 834, "user_id" = 1028, "created_at" = '2013-07-17 22:10:13.312779', "updated_at" = '2013-07-17 22:10:13.312779', "auth_token" = 'jpByzmXjM7jHbQG7fDD6' WHERE "public"."cadenero_members"."id" = 1029  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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-17 17:10: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 (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 833 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  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$c/uyaXEa9Xfa5QZJ4OyXU.3fzFsD.iD4Za6AY6cce2omxIAgMBhPu"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1029], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'P8NpsvdqpF5HA7zY6oxN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1029, "created_at" = '2013-07-17 22:10:13.443940', "updated_at" = '2013-07-17 22:10:13.443940', "authentication_token" = 'P8NpsvdqpF5HA7zY6oxN' WHERE "public"."cadenero_accounts"."id" = 835  (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", 835], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["user_id", 1029]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pxmG3mHJeHCaHxmP5EwY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 835, "user_id" = 1029, "created_at" = '2013-07-17 22:10:13.449373', "updated_at" = '2013-07-17 22:10:13.449373', "auth_token" = 'pxmG3mHJeHCaHxmP5EwY' WHERE "public"."cadenero_members"."id" = 1030  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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.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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:10: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.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" = 835 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$VX2b4ssz/1E.7wjjwQ9V7eP8dCgos74CXRz5Y7GglezhjF1jTETcu"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1030], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dzUhUKJwHRHPmYGswoMq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1030, "created_at" = '2013-07-17 22:10:13.627432', "updated_at" = '2013-07-17 22:10:13.627432', "authentication_token" = 'dzUhUKJwHRHPmYGswoMq' WHERE "public"."cadenero_accounts"."id" = 836  (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", 836], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["user_id", 1030]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mVNBE2drTowe39utygE1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 836, "user_id" = 1030, "created_at" = '2013-07-17 22:10:13.632832', "updated_at" = '2013-07-17 22:10:13.632832', "auth_token" = 'mVNBE2drTowe39utygE1' WHERE "public"."cadenero_members"."id" = 1031  (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.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, "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.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.9ms) 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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:10:13 -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.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$wtoXZhIXKAzT2PuztI4IVuhTjijQCEkD7nDRD0PLqoZzXOhijP8/W"], ["updated_at", Wed, 17 Jul 2013 22:10: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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1031], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V7js9upErZNC79SgdYmk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1031, "created_at" = '2013-07-17 22:10:13.802973', "updated_at" = '2013-07-17 22:10:13.802973', "authentication_token" = 'V7js9upErZNC79SgdYmk' WHERE "public"."cadenero_accounts"."id" = 837  (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", 837], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["user_id", 1031]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2E4hhyP44ikz6zNqgHv4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 837, "user_id" = 1031, "created_at" = '2013-07-17 22:10:13.808514', "updated_at" = '2013-07-17 22:10:13.808514', "auth_token" = '2E4hhyP44ikz6zNqgHv4' WHERE "public"."cadenero_members"."id" = 1032  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (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, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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-17 17:10: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 ('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" = 837 AND "public"."cadenero_users"."email" = 'user@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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$LA1SLrcVi.ToYUoCM24AiOSPadCfBhFOtmmM68IBHoZNEVbSjy/dC"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1032], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Yp6aZvxqKCWxiSM6qYDV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1032, "created_at" = '2013-07-17 22:10:13.986192', "updated_at" = '2013-07-17 22:10:13.986192', "authentication_token" = 'Yp6aZvxqKCWxiSM6qYDV' WHERE "public"."cadenero_accounts"."id" = 838  (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", 838], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:13 UTC +00:00], ["user_id", 1032]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B7GSippS6qZzmzK1Cqav' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 838, "user_id" = 1032, "created_at" = '2013-07-17 22:10:13.991856', "updated_at" = '2013-07-17 22:10:13.991856', "auth_token" = 'B7GSippS6qZzmzK1Cqav' WHERE "public"."cadenero_members"."id" = 1033  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$v6Gbnc5oQTyyn2p0/UULDepgGqp72cTEANh4SzxxpoN60Dp3QnBxO"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1033], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W6k6AdPHyi47TdxiprMs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1033, "created_at" = '2013-07-17 22:10:14.144256', "updated_at" = '2013-07-17 22:10:14.144256', "authentication_token" = 'W6k6AdPHyi47TdxiprMs' WHERE "public"."cadenero_accounts"."id" = 839  (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", 839], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["user_id", 1033]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oB7HhUbTpA38gasyxnxv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 839, "user_id" = 1033, "created_at" = '2013-07-17 22:10:14.149348', "updated_at" = '2013-07-17 22:10:14.149348', "auth_token" = 'oB7HhUbTpA38gasyxnxv' WHERE "public"."cadenero_members"."id" = 1034  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1033 Started GET "/v1?auth_token[]=oB7HhUbTpA38gasyxnxv" for 127.0.0.1 at 2013-07-17 17:10:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["oB7HhUbTpA38gasyxnxv"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 838 AND "public"."cadenero_members"."auth_token" IN ('oB7HhUbTpA38gasyxnxv') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (4.6ms) ROLLBACK  (0.5ms) BEGIN  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$yTY0Wy.D2J5v357c2BJSiurYcknxmduEVlKTiKp3nVJTw/JMk7ZZC"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = '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", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1034], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xUPUAJJda7ByPReqGDaq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1034, "created_at" = '2013-07-17 22:10:14.337362', "updated_at" = '2013-07-17 22:10:14.337362', "authentication_token" = 'xUPUAJJda7ByPReqGDaq' WHERE "public"."cadenero_accounts"."id" = 840  (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", 840], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["user_id", 1034]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'phgsQ8sbCDw9XAyyaZ1R' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 840, "user_id" = 1034, "created_at" = '2013-07-17 22:10:14.342917', "updated_at" = '2013-07-17 22:10:14.342917', "auth_token" = 'phgsQ8sbCDw9XAyyaZ1R' WHERE "public"."cadenero_members"."id" = 1035  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.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.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.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.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-17 17:10: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/users" for 127.0.0.1 at 2013-07-17 17:10:14 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$JwH0AtmTqOH2ohYy5hIzTu/MsHhjgvVPIdwnDZYlGLejMl7WTnryK"], ["updated_at", Wed, 17 Jul 2013 22:10:14 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", 840], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["user_id", 1035]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tEqPp2xyxpejyxvsNDx9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 840, "user_id" = 1035, "created_at" = '2013-07-17 22:10:14.501533', "updated_at" = '2013-07-17 22:10:14.501533', "auth_token" = 'tEqPp2xyxpejyxvsNDx9' WHERE "public"."cadenero_members"."id" = 1036  (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" = 1035 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1035 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1035 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1035 Completed 201 Created in 142ms (Views: 35.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/1035" for 127.0.0.1 at 2013-07-17 17:10:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1035"} 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" = 840 AND "public"."cadenero_users"."id" = 1035 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1035 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1035 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1035 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1035 Completed 200 OK in 11ms (Views: 5.9ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1034 Started GET "/v1?auth_token[]=phgsQ8sbCDw9XAyyaZ1R" for 127.0.0.1 at 2013-07-17 17:10:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["phgsQ8sbCDw9XAyyaZ1R"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 840 AND "public"."cadenero_members"."auth_token" IN ('phgsQ8sbCDw9XAyyaZ1R') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1034 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1034 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1035 Started GET "/v1?auth_token[]=tEqPp2xyxpejyxvsNDx9" for 127.0.0.1 at 2013-07-17 17:10:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["tEqPp2xyxpejyxvsNDx9"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 840 AND "public"."cadenero_members"."auth_token" IN ('tEqPp2xyxpejyxvsNDx9') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1035 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1035 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (5.6ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$OuXlvKJSgsdEmNBuZdo7K.nzTawLyYaI0fJXhYLMKpgLeZ67NvqCW"], ["updated_at", Wed, 17 Jul 2013 22:10: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1036], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '49kH8uj1X8uaHzf2mQzQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1036, "created_at" = '2013-07-17 22:10:14.696654', "updated_at" = '2013-07-17 22:10:14.696654', "authentication_token" = '49kH8uj1X8uaHzf2mQzQ' WHERE "public"."cadenero_accounts"."id" = 841  (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", 841], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:10:14 UTC +00:00], ["user_id", 1036]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jrq7VCzUxNsTLvV4iq5v' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 841, "user_id" = 1036, "created_at" = '2013-07-17 22:10:14.702447', "updated_at" = '2013-07-17 22:10:14.702447', "auth_token" = 'jrq7VCzUxNsTLvV4iq5v' WHERE "public"."cadenero_members"."id" = 1037  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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")  (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, "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")  (2.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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:10: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1036 Started GET "/v1?auth_token[]=jrq7VCzUxNsTLvV4iq5v" for 127.0.0.1 at 2013-07-17 17:10:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["jrq7VCzUxNsTLvV4iq5v"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 841 AND "public"."cadenero_members"."auth_token" IN ('jrq7VCzUxNsTLvV4iq5v') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1036 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1036 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (3.8ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (10.0ms) ROLLBACK  (10.0ms) BEGIN  (10.0ms) COMMIT  (10.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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (10.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 193ms (Views: 146.4ms | ActiveRecord: 46.4ms)  (5.2ms) ROLLBACK  (3.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (12.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", Wed, 17 Jul 2013 22:27:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:12 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'erEam6MxqWGshq1Wwphi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 22:27:12.052454', "updated_at" = '2013-07-17 22:27:12.052454', "auth_token" = 'erEam6MxqWGshq1Wwphi' WHERE "public"."cadenero_members"."id" = 1038  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$LcMrJHxxrTsIaDuXfkSvyO7wNOig195zbzfU/Iv8XPCPemronam8S"], ["updated_at", Wed, 17 Jul 2013 22:27:12 UTC +00:00]] 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", Wed, 17 Jul 2013 22:27:12 UTC +00:00], ["name", "Test Account"], ["owner_id", 1037], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:27:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xiyqLAGNU34vR3iXfDbJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1037, "created_at" = '2013-07-17 22:27:12.374277', "updated_at" = '2013-07-17 22:27:12.374277', "authentication_token" = 'xiyqLAGNU34vR3iXfDbJ' WHERE "public"."cadenero_accounts"."id" = 842  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.8ms) 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", 842], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:12 UTC +00:00], ["user_id", 1037]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YSbLXesEusqbtJCupegx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 842, "user_id" = 1037, "created_at" = '2013-07-17 22:27:12.392151', "updated_at" = '2013-07-17 22:27:12.392151', "auth_token" = 'YSbLXesEusqbtJCupegx' WHERE "public"."cadenero_members"."id" = 1039  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test"  (27.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")  (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")  (1.1ms) 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")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" = 842 LIMIT 1  (14.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$/DMbfwd3MDdCJjZpK2th3OCS6Xqq/dj.u.Mth72Njl0CJ5/U8yixW"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1038], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pmY5pHaBQxV8ACkMr3cK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1038, "created_at" = '2013-07-17 22:27:16.249173', "updated_at" = '2013-07-17 22:27:16.249173', "authentication_token" = 'pmY5pHaBQxV8ACkMr3cK' WHERE "public"."cadenero_accounts"."id" = 843  (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", 843], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["user_id", 1038]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8ra7uQuXGMeX7xTPJrwV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 843, "user_id" = 1038, "created_at" = '2013-07-17 22:27:16.255395', "updated_at" = '2013-07-17 22:27:16.255395', "auth_token" = '8ra7uQuXGMeX7xTPJrwV' WHERE "public"."cadenero_members"."id" = 1040  (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", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Cqs7KZ99r/qG6PsQhtSaGOkuf2o2sLDq/O3BAq78pFmB8qDrKbeuO"], ["updated_at", Wed, 17 Jul 2013 22:27:16 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", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/H0Wn2.GkH2h5qMnOMsdxuI87gD5EjYfAFvGMZnoAS7gjEDRkdXD6"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = '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", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["name", "Root"], ["owner_id", 1040], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pPuE858knZGsENwT3UC5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 1040, "created_at" = '2013-07-17 22:27:16.459794', "updated_at" = '2013-07-17 22:27:16.459794', "authentication_token" = 'pPuE858knZGsENwT3UC5' WHERE "public"."cadenero_accounts"."id" = 844  (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", 844], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:16 UTC +00:00], ["user_id", 1040]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'U4ryndck1wee7LJvWbxn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 844, "user_id" = 1040, "created_at" = '2013-07-17 22:27:16.465067', "updated_at" = '2013-07-17 22:27:16.465067', "auth_token" = 'U4ryndck1wee7LJvWbxn' WHERE "public"."cadenero_members"."id" = 1041  (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.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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:27: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$um.8tfHcOYkshykCcW5mpOGdVtnHNr36Tg9FfFp7RnnyDcm81TrOO"], ["updated_at", Wed, 17 Jul 2013 22:27:20 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1041], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:27:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dpZufo8zagxBcETraUqz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1041, "created_at" = '2013-07-17 22:27:20.995621', "updated_at" = '2013-07-17 22:27:20.995621', "authentication_token" = 'dpZufo8zagxBcETraUqz' WHERE "public"."cadenero_accounts"."id" = 845  (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", 845], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["user_id", 1041]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Nn3wBsYTxLFQ3kMPovoz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 845, "user_id" = 1041, "created_at" = '2013-07-17 22:27:21.001833', "updated_at" = '2013-07-17 22:27:21.001833', "auth_token" = 'Nn3wBsYTxLFQ3kMPovoz' WHERE "public"."cadenero_members"."id" = 1042  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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")  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 845) LIMIT 1 Completed 201 Created in 234ms (Views: 2.1ms | ActiveRecord: 94.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$O7fDLmGt1ujnTi0PgFJ8dup7QlferiL9LKvR6csNSysc1LoJO.XPS"], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00]] SQL (8.2ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["name", "Testy"], ["owner_id", 1042], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eDZ3b24wNs4xnryYoBtH' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1042, "created_at" = '2013-07-17 22:27:21.275649', "updated_at" = '2013-07-17 22:27:21.275649', "authentication_token" = 'eDZ3b24wNs4xnryYoBtH' WHERE "public"."cadenero_accounts"."id" = 846  (10.0ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:27: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}  (3.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  (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 125ms (Views: 0.3ms | ActiveRecord: 4.2ms) 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.6ms) BEGIN  (9.5ms) COMMIT  (1.2ms) BEGIN  (3.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$h3eVTC1ptNP.b.wlu9VnqOXbeAOalwbb31OsMshd6Mle.AaJzzSye"], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1043], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CWjjNsPyiipWrGQshYN2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1043, "created_at" = '2013-07-17 22:27:21.596311', "updated_at" = '2013-07-17 22:27:21.596311', "authentication_token" = 'CWjjNsPyiipWrGQshYN2' WHERE "public"."cadenero_accounts"."id" = 847  (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", 847], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["user_id", 1043]] Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PQbmbDzWysgN2yQS4Y87' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 847, "user_id" = 1043, "created_at" = '2013-07-17 22:27:21.601632', "updated_at" = '2013-07-17 22:27:21.601632', "auth_token" = 'PQbmbDzWysgN2yQS4Y87' WHERE "public"."cadenero_members"."id" = 1043  (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)   (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")  (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")  (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)  (2.2ms) 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"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:27:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) 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", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$QOblBNy4ZcP.E0Y37WaK6ODoKdb3nUfa8QQIjwlvdqC/5Ri3TXUhu"], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 847], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:21 UTC +00:00], ["user_id", 1044]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DJqKXH99cVteRK3dEp2K' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 847, "user_id" = 1044, "created_at" = '2013-07-17 22:27:21.791992', "updated_at" = '2013-07-17 22:27:21.791992', "auth_token" = 'DJqKXH99cVteRK3dEp2K' WHERE "public"."cadenero_members"."id" = 1044  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1044 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1044 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1044 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" = 1044 Completed 201 Created in 134ms (Views: 11.6ms | ActiveRecord: 18.5ms) 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/1044" for 127.0.0.1 at 2013-07-17 17:27:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1044"} Cadenero::V1::Account Load (1.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" = 847 AND "public"."cadenero_users"."id" = 1044 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1044 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1044 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1044 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1044 Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 3.3ms)  (13.9ms) ROLLBACK  (6.9ms) BEGIN  (3.3ms) COMMIT  (8.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$1jeQiKRzf3bjJazLe1sMyeBuAT94QevejAUZpKO1MKrnwRtB3fNNS"], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1045], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hmt1pxisPPeig19x5gpe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1045, "created_at" = '2013-07-17 22:27:22.052008', "updated_at" = '2013-07-17 22:27:22.052008', "authentication_token" = 'hmt1pxisPPeig19x5gpe' WHERE "public"."cadenero_accounts"."id" = 848  (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", 848], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["user_id", 1045]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fjDvejEpzXQ7xqQzstpe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 848, "user_id" = 1045, "created_at" = '2013-07-17 22:27:22.057424', "updated_at" = '2013-07-17 22:27:22.057424', "auth_token" = 'fjDvejEpzXQ7xqQzstpe' WHERE "public"."cadenero_members"."id" = 1045  (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)   (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")  (9.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (28.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (10.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) 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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (14.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:27: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 (11.0ms) 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", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ynYKLzLwnpi7v9/27.ZLWe7RpCvZ0P1QWBrBnROJNLBpW3ngRuIsy"], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 848], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["user_id", 1046]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vhywNntoX677pto6izyZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 848, "user_id" = 1046, "created_at" = '2013-07-17 22:27:22.425919', "updated_at" = '2013-07-17 22:27:22.425919', "auth_token" = 'vhywNntoX677pto6izyZ' WHERE "public"."cadenero_members"."id" = 1046  (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" = 1046 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1046 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1046 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" = 1046 Completed 201 Created in 233ms (Views: 6.3ms | 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' LIMIT 1 Started GET "/v1/users/1046" for 127.0.0.1 at 2013-07-17 17:27:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1046"} Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (9.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" = 848 AND "public"."cadenero_users"."id" = 1046 LIMIT 1 Cadenero::User Load (9.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1046 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1046 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1046 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1046 Completed 200 OK in 39ms (Views: 6.2ms | ActiveRecord: 23.6ms) Cadenero::User Load (8.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (9.2ms) 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 (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", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1046], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22: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" = '2psegbT5UTGjmwrK1ddT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1046, "created_at" = '2013-07-17 22:27:22.509288', "updated_at" = '2013-07-17 22:27:22.509288', "authentication_token" = '2psegbT5UTGjmwrK1ddT' WHERE "public"."cadenero_accounts"."id" = 849  (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", 849], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["user_id", 1046]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AWMX3oNMjKUi6sWswzif' LIMIT 1  (4.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 849, "user_id" = 1046, "created_at" = '2013-07-17 22:27:22.517435', "updated_at" = '2013-07-17 22:27:22.517435', "auth_token" = 'AWMX3oNMjKUi6sWswzif' WHERE "public"."cadenero_members"."id" = 1047  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (11.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")  (4.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (11.1ms) 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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:27: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 (2.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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$UENUH7pY9X0k0lbc.jxYzOweK0jyoq6vz32y0Ci2W/LvDlgN.h2T."], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 849], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:22 UTC +00:00], ["user_id", 1047]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ghociLeMcLsiNDU9aNYk' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 849, "user_id" = 1047, "created_at" = '2013-07-17 22:27:22.802135', "updated_at" = '2013-07-17 22:27:22.802135', "auth_token" = 'ghociLeMcLsiNDU9aNYk' WHERE "public"."cadenero_members"."id" = 1048  (4.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1047 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1047 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1047 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1047 Completed 201 Created in 182ms (Views: 6.2ms | ActiveRecord: 11.6ms) 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/1047" for 127.0.0.1 at 2013-07-17 17:27:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1047"} Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 849 AND "public"."cadenero_users"."id" = 1047 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1047 LIMIT 1 Cadenero::Member Load (5.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1047 Cadenero::V1::Account Load (7.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1047 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" = 1047 Completed 200 OK in 32ms (Views: 7.0ms | ActiveRecord: 17.5ms) Started GET "/v1/users/1046" for 127.0.0.1 at 2013-07-17 17:27:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1046"} 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" = 848 AND "public"."cadenero_users"."id" = 1046 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1046 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1046 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1046 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1046 Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.8ms)  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.9ms) 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", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$DVpA5v8wxJMseO1K8xQNgOhOYiKGrkL7Ji3C6HXNAr1sGvVHqSd92"], ["updated_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (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", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1048], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dmpxqqRhQyzRpXz4MbdP' LIMIT 1  (3.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1048, "created_at" = '2013-07-17 22:27:23.102686', "updated_at" = '2013-07-17 22:27:23.102686', "authentication_token" = 'dmpxqqRhQyzRpXz4MbdP' WHERE "public"."cadenero_accounts"."id" = 850  (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", 850], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["user_id", 1048]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4SkGb2wpTQviEsLW77Xt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 850, "user_id" = 1048, "created_at" = '2013-07-17 22:27:23.114442', "updated_at" = '2013-07-17 22:27:23.114442', "auth_token" = '4SkGb2wpTQviEsLW77Xt' WHERE "public"."cadenero_members"."id" = 1049  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)   (6.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.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.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")  (24.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"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27: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.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" = 850 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" = 1048 LIMIT 1 Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1048 Cadenero::V1::Account Load (8.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1048 Cadenero::V1::Account Load (8.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" = 1048 Completed 201 Created in 229ms (Views: 6.0ms | ActiveRecord: 22.9ms) Cadenero::V1::Account Load (11.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 850 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1048", "default"=>:json} Cadenero::User Load (5.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1048 LIMIT 1 Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 5.0ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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)  (13.7ms) ROLLBACK  (0.9ms) BEGIN  (2.1ms) COMMIT  (0.2ms) BEGIN  (11.5ms) SAVEPOINT active_record_1 SQL (27.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$a/dlR6Pfz6DyVljF2xxODOdGH3vk8zZSec6NV.2M.GtxGYdR/aRDq"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = '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", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1049], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00]] Cadenero::V1::Account Load (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xdgve2mCDHNtcBjitNfa' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1049, "created_at" = '2013-07-17 22:27:23.791611', "updated_at" = '2013-07-17 22:27:23.791611', "authentication_token" = 'xdgve2mCDHNtcBjitNfa' WHERE "public"."cadenero_accounts"."id" = 851  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.1ms) SAVEPOINT active_record_1 SQL (8.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", 851], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:23 UTC +00:00], ["user_id", 1049]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e4xp3YYLodrifaJDwg4s' LIMIT 1  (7.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 851, "user_id" = 1049, "created_at" = '2013-07-17 22:27:23.817644', "updated_at" = '2013-07-17 22:27:23.817644', "auth_token" = 'e4xp3YYLodrifaJDwg4s' WHERE "public"."cadenero_members"."id" = 1050  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (15.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)  (16.7ms) 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")  (12.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))   (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (41.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (13.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (70.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)  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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/users" for 127.0.0.1 at 2013-07-17 17:27:24 -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 (4.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$EkdoAKCw7NSsCnZmXwA1YeZei2yZ0jYCPh8K9KAQc5Ti0bBk0uAJ."], ["updated_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00]] 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", 851], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["user_id", 1050]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pYUZfMLtfXpysBHWZL77' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 851, "user_id" = 1050, "created_at" = '2013-07-17 22:27:24.307711', "updated_at" = '2013-07-17 22:27:24.307711', "auth_token" = 'pYUZfMLtfXpysBHWZL77' WHERE "public"."cadenero_members"."id" = 1051  (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" = 1050 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1050 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1050 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1050 Completed 201 Created in 136ms (Views: 5.9ms | ActiveRecord: 10.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/1050" for 127.0.0.1 at 2013-07-17 17:27:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1050"} Cadenero::V1::Account Load (0.5ms) 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" = 851 AND "public"."cadenero_users"."id" = 1050 LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1050 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1050 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1050 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1050 Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 2.3ms) Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (6.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1050 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1050 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1050 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1050 Completed 201 Created in 15ms (Views: 5.3ms | 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" for 127.0.0.1 at 2013-07-17 17:27:24 -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" = 1050 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.1ms) ROLLBACK  (0.2ms) BEGIN  (5.3ms) COMMIT  (8.7ms) BEGIN  (10.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", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$ZqzzA.uVjBmY6JKDyLig/.OCu0kH7lUUvOrZYTBrJU2QFPSoEZdbq"], ["updated_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00]]  (1.8ms) 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.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", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1051], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SsufwoZwVTQXqX8WBwrr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1051, "created_at" = '2013-07-17 22:27:24.566485', "updated_at" = '2013-07-17 22:27:24.566485', "authentication_token" = 'SsufwoZwVTQXqX8WBwrr' WHERE "public"."cadenero_accounts"."id" = 852  (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", 852], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:24 UTC +00:00], ["user_id", 1051]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NEZiDbcTETWcigeykRKY' LIMIT 1  (6.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 852, "user_id" = 1051, "created_at" = '2013-07-17 22:27:24.572357', "updated_at" = '2013-07-17 22:27:24.572357', "auth_token" = 'NEZiDbcTETWcigeykRKY' WHERE "public"."cadenero_members"."id" = 1052  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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")  (3.4ms) 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, "auth_token" character varying(255))  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.7ms) SELECT version FROM "schema_migrations"  (29.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27: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 (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 852 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" = 1051 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1051 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1051 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1051 Completed 201 Created in 199ms (Views: 19.3ms | ActiveRecord: 8.0ms) Cadenero::V1::Account Load (2.0ms) 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" = 852 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1051", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1051 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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/users" for 127.0.0.1 at 2013-07-17 17:27:24 -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" = '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", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$HgNsmAgd2caHo2VOF91TS.SwvONbLIgM.XqvctcM7eZXjHpaCGf6y"], ["updated_at", Wed, 17 Jul 2013 22:27:25 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", 852], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["user_id", 1052]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QjYGvJimeLXCQW3vc99y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 852, "user_id" = 1052, "created_at" = '2013-07-17 22:27:25.014213', "updated_at" = '2013-07-17 22:27:25.014213', "auth_token" = 'QjYGvJimeLXCQW3vc99y' WHERE "public"."cadenero_members"."id" = 1053  (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" = 1052 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1052 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1052 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" = 1052 Completed 201 Created in 112ms (Views: 5.5ms | 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/1052" for 127.0.0.1 at 2013-07-17 17:27:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1052"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 852 AND "public"."cadenero_users"."id" = 1052 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1052 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1052 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1052 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" = 1052 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27:25 -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" = 1052 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1052 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1052 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" = 1052 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.8ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$N3URhlncxXXpEEpXqCv6GuoifGS6mYRkqIsRc1KiYo76aKrca4izi"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = '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", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1053], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pKBv3ur4ML961BrByQyp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1053, "created_at" = '2013-07-17 22:27:25.212071', "updated_at" = '2013-07-17 22:27:25.212071', "authentication_token" = 'pKBv3ur4ML961BrByQyp' WHERE "public"."cadenero_accounts"."id" = 853  (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", 853], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["user_id", 1053]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Jo7EGXc4qH5GiByLxE9m' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 853, "user_id" = 1053, "created_at" = '2013-07-17 22:27:25.217523', "updated_at" = '2013-07-17 22:27:25.217523', "auth_token" = 'Jo7EGXc4qH5GiByLxE9m' WHERE "public"."cadenero_members"."id" = 1054  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (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.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.9ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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-17 17:27: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 853 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" = 1053 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1053 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1053 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1053 Completed 201 Created in 109ms (Views: 5.3ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 853 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27:25 -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" = 1053 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$8riBakHmsWaqMR1.QJI8wO6KZ8GmO3RU7XRe2GkdNUCPtsPVjPDfu"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = '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", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1054], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BEAzHgBiMdHojQrGq4kp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1054, "created_at" = '2013-07-17 22:27:25.525658', "updated_at" = '2013-07-17 22:27:25.525658', "authentication_token" = 'BEAzHgBiMdHojQrGq4kp' WHERE "public"."cadenero_accounts"."id" = 854  (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", 854], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["user_id", 1054]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PvTpqXZgBAso4GUmeioi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 854, "user_id" = 1054, "created_at" = '2013-07-17 22:27:25.530956', "updated_at" = '2013-07-17 22:27:25.530956', "auth_token" = 'PvTpqXZgBAso4GUmeioi' WHERE "public"."cadenero_members"."id" = 1055  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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")  (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")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$Xvgm0ogZhVZPykkGEzqfEe8gx4QVYnxQ/qe6HQKVpChztM7SQCXmm"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = '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", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1055], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pjstfnN9enFcdz4Qpnan' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1055, "created_at" = '2013-07-17 22:27:25.709398', "updated_at" = '2013-07-17 22:27:25.709398', "authentication_token" = 'pjstfnN9enFcdz4Qpnan' WHERE "public"."cadenero_accounts"."id" = 855  (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", 855], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["user_id", 1055]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pSzJrbNeZx2zA6q1yy4s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 855, "user_id" = 1055, "created_at" = '2013-07-17 22:27:25.714557', "updated_at" = '2013-07-17 22:27:25.714557', "auth_token" = 'pSzJrbNeZx2zA6q1yy4s' WHERE "public"."cadenero_members"."id" = 1056  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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-17 17:27:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 854 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 37ms (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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$xFRrcGyCq7ZfoUrcpZCPke7Jkm.ceBzYElZNL4hL691Crbmx/SXgK"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1056], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Q1oZi6n9QhzqY6HUpSbh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1056, "created_at" = '2013-07-17 22:27:25.896764', "updated_at" = '2013-07-17 22:27:25.896764', "authentication_token" = 'Q1oZi6n9QhzqY6HUpSbh' WHERE "public"."cadenero_accounts"."id" = 856  (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", 856], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:25 UTC +00:00], ["user_id", 1056]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zH9AKr55dfa6rxfMFxm9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 856, "user_id" = 1056, "created_at" = '2013-07-17 22:27:25.902156', "updated_at" = '2013-07-17 22:27:25.902156', "auth_token" = 'zH9AKr55dfa6rxfMFxm9' WHERE "public"."cadenero_members"."id" = 1057  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.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")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (3.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 856 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (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  (4.6ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$6FdKcce7P/8gliV2YCtfru59JECkPmyFZ6NlImLvzkosXHFwfsRHq"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test12' 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", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1057], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ogNxw5uWqCLAcPVNjvX3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1057, "created_at" = '2013-07-17 22:27:26.107146', "updated_at" = '2013-07-17 22:27:26.107146', "authentication_token" = 'ogNxw5uWqCLAcPVNjvX3' WHERE "public"."cadenero_accounts"."id" = 857  (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", 857], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["user_id", 1057]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zwG29ciBY3wqCjBdSics' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 857, "user_id" = 1057, "created_at" = '2013-07-17 22:27:26.113169', "updated_at" = '2013-07-17 22:27:26.113169', "auth_token" = 'zwG29ciBY3wqCjBdSics' WHERE "public"."cadenero_members"."id" = 1058  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.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")  (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)   (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.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:27:26 -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.4ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$vohTFzQ3TfDc6oKhlAff3.4Ec3mLuML.fw4CwHNyEHUH7MhanM9wG"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1058], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3pJCbHFzNiCPcYy5f8P4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1058, "created_at" = '2013-07-17 22:27:26.312463', "updated_at" = '2013-07-17 22:27:26.312463', "authentication_token" = '3pJCbHFzNiCPcYy5f8P4' WHERE "public"."cadenero_accounts"."id" = 858  (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", 858], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["user_id", 1058]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fti1xXRbJSMvf2K5RZzm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 858, "user_id" = 1058, "created_at" = '2013-07-17 22:27:26.318478', "updated_at" = '2013-07-17 22:27:26.318478', "auth_token" = 'fti1xXRbJSMvf2K5RZzm' WHERE "public"."cadenero_members"."id" = 1059  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.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")  (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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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-17 17:27: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 ('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" = 858 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$1fB.Q1QjHx1SJBEzPdvSWe9dllazOz46JfuDk6SfjGYShs3Ltd3WO"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test14' 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", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1059], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hDeC7xtnBjsF8sHiqcDs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 1059, "created_at" = '2013-07-17 22:27:26.500285', "updated_at" = '2013-07-17 22:27:26.500285', "authentication_token" = 'hDeC7xtnBjsF8sHiqcDs' WHERE "public"."cadenero_accounts"."id" = 859  (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", 859], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["user_id", 1059]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ezw9xgcwpsr1iyiuVRbK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 859, "user_id" = 1059, "created_at" = '2013-07-17 22:27:26.506095', "updated_at" = '2013-07-17 22:27:26.506095', "auth_token" = 'Ezw9xgcwpsr1iyiuVRbK' WHERE "public"."cadenero_members"."id" = 1060  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (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")  (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.3ms) 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)   (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.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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/users" for 127.0.0.1 at 2013-07-17 17:27:26 -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" = 'test14' 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", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CXU87YfxpQD5gbD.BIMwKu.Q9RGh/PCnfSEADaeY/ZLulCJHyeB5q"], ["updated_at", Wed, 17 Jul 2013 22:27:26 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", 859], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["user_id", 1060]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WioxzzRtphMGeUQm8ytT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 859, "user_id" = 1060, "created_at" = '2013-07-17 22:27:26.737793', "updated_at" = '2013-07-17 22:27:26.737793', "auth_token" = 'WioxzzRtphMGeUQm8ytT' WHERE "public"."cadenero_members"."id" = 1061  (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" = 1060 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1060 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1060 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1060 Completed 201 Created in 181ms (Views: 6.4ms | 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/1060" for 127.0.0.1 at 2013-07-17 17:27:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1060"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.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" = 859 AND "public"."cadenero_users"."id" = 1060 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1060 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1060 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1060 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1060 Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1059 Started GET "/v1?auth_token[]=Ezw9xgcwpsr1iyiuVRbK" for 127.0.0.1 at 2013-07-17 17:27:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Ezw9xgcwpsr1iyiuVRbK"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 859 AND "public"."cadenero_members"."auth_token" IN ('Ezw9xgcwpsr1iyiuVRbK') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1059 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1059 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1060 Started GET "/v1?auth_token[]=WioxzzRtphMGeUQm8ytT" for 127.0.0.1 at 2013-07-17 17:27:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["WioxzzRtphMGeUQm8ytT"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 859 AND "public"."cadenero_members"."auth_token" IN ('WioxzzRtphMGeUQm8ytT') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1060 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1060 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$LgFRTuLoLUgG6GcLFKVGveWFW66005wpi2.NCty4tds9dKi33qo1W"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test15' 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", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 1061], ["subdomain", "test15"], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Rpi1umLSqeTFzUdqHQ51' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 1061, "created_at" = '2013-07-17 22:27:26.913984', "updated_at" = '2013-07-17 22:27:26.913984', "authentication_token" = 'Rpi1umLSqeTFzUdqHQ51' WHERE "public"."cadenero_accounts"."id" = 860  (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", 860], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:26 UTC +00:00], ["user_id", 1061]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Pb7M1dxsZmnHqGRztvXU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 860, "user_id" = 1061, "created_at" = '2013-07-17 22:27:26.919738', "updated_at" = '2013-07-17 22:27:26.919738', "auth_token" = 'Pb7M1dxsZmnHqGRztvXU' WHERE "public"."cadenero_members"."id" = 1062  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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) Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1061 Started GET "/v1?auth_token[]=Pb7M1dxsZmnHqGRztvXU" for 127.0.0.1 at 2013-07-17 17:27:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Pb7M1dxsZmnHqGRztvXU"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 860 AND "public"."cadenero_members"."auth_token" IN ('Pb7M1dxsZmnHqGRztvXU') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1061 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1061 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$z9Eomj4KCrO.IRxvl2h7juMa8v8iFt4NoM60WiasKxQAhcNrK98.6"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test16' 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", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 1062], ["subdomain", "test16"], ["updated_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3Fiji65p41FVyCtWHfsz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 1062, "created_at" = '2013-07-17 22:27:27.094018', "updated_at" = '2013-07-17 22:27:27.094018', "authentication_token" = '3Fiji65p41FVyCtWHfsz' WHERE "public"."cadenero_accounts"."id" = 861  (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", 861], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["user_id", 1062]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yhRSqsEFvRondrvqsqaZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 861, "user_id" = 1062, "created_at" = '2013-07-17 22:27:27.099492', "updated_at" = '2013-07-17 22:27:27.099492', "auth_token" = 'yhRSqsEFvRondrvqsqaZ' WHERE "public"."cadenero_members"."id" = 1063  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (2.3ms) 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.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)  (3.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$fR6lglivploKY5O2HHlPuuSgGHCYujgYWdY2zDpH1qaDJscsKc6/W"], ["updated_at", Wed, 17 Jul 2013 22:27: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" = 'test17' 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", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 1063], ["subdomain", "test17"], ["updated_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zsv1Xzuvie6kt1J3TT12' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 1063, "created_at" = '2013-07-17 22:27:27.258053', "updated_at" = '2013-07-17 22:27:27.258053', "authentication_token" = 'zsv1Xzuvie6kt1J3TT12' WHERE "public"."cadenero_accounts"."id" = 862  (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", 862], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:27:27 UTC +00:00], ["user_id", 1063]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RFq6Cy3D3Umi6xbS99at' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 862, "user_id" = 1063, "created_at" = '2013-07-17 22:27:27.263236', "updated_at" = '2013-07-17 22:27:27.263236', "auth_token" = 'RFq6Cy3D3Umi6xbS99at' WHERE "public"."cadenero_members"."id" = 1064  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test17"  (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.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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.8ms) 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 ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:27: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1063 Started GET "/v1?auth_token[]=RFq6Cy3D3Umi6xbS99at" for 127.0.0.1 at 2013-07-17 17:27:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["RFq6Cy3D3Umi6xbS99at"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 861 AND "public"."cadenero_members"."auth_token" IN ('RFq6Cy3D3Umi6xbS99at') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (7.9ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.8ms) 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 (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$uj1GdsiPUakvMH7iuR5RE.49QdyNc.v/IRhlovp06cxXavSsVHLvK"], ["updated_at", Wed, 17 Jul 2013 22:28:05 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", Wed, 17 Jul 2013 22:28:05 UTC +00:00], ["name", "Test Account"], ["owner_id", 1064], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:28:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jseanykkWoKsgyHzxgox' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1064, "created_at" = '2013-07-17 22:28:05.929099', "updated_at" = '2013-07-17 22:28:05.929099', "authentication_token" = 'jseanykkWoKsgyHzxgox' WHERE "public"."cadenero_accounts"."id" = 863  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 863], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["user_id", 1064]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WEaQNuugs1zqhJzz2Hmk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 863, "user_id" = 1064, "created_at" = '2013-07-17 22:28:06.022385', "updated_at" = '2013-07-17 22:28:06.022385', "auth_token" = 'WEaQNuugs1zqhJzz2Hmk' WHERE "public"."cadenero_members"."id" = 1065  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (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.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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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::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" = 863 LIMIT 1  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Kn7Niby3yAxS.J8UyCiTou1hE/Nc2IT9U20N5aY54UreGRs3WUQ4m"], ["updated_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1065], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9GpoBqdtzhxKWfTYbUTk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1065, "created_at" = '2013-07-17 22:28:06.597184', "updated_at" = '2013-07-17 22:28:06.597184', "authentication_token" = '9GpoBqdtzhxKWfTYbUTk' WHERE "public"."cadenero_accounts"."id" = 864  (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", 864], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["user_id", 1065]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uzcgbZ5mpMv4nYgyVqVk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 864, "user_id" = 1065, "created_at" = '2013-07-17 22:28:06.602674', "updated_at" = '2013-07-17 22:28:06.602674', "auth_token" = 'uzcgbZ5mpMv4nYgyVqVk' WHERE "public"."cadenero_members"."id" = 1066  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (5.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.6ms) SELECT version FROM "schema_migrations"  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$F.EP1Y2aLjYDFcDB.7.TBepcorupUOnXTA1vFJ9HCm1gHeWjWahYO"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1066], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MqZxyUs9cSsbyy4zF4Jq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1066, "created_at" = '2013-07-17 22:28:06.771086', "updated_at" = '2013-07-17 22:28:06.771086', "authentication_token" = 'MqZxyUs9cSsbyy4zF4Jq' WHERE "public"."cadenero_accounts"."id" = 865  (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", 865], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:06 UTC +00:00], ["user_id", 1066]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CzPmXtpAgyDiWuD9kmrx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 865, "user_id" = 1066, "created_at" = '2013-07-17 22:28:06.776475', "updated_at" = '2013-07-17 22:28:06.776475', "auth_token" = 'CzPmXtpAgyDiWuD9kmrx' WHERE "public"."cadenero_members"."id" = 1067  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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")  (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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1066 Started GET "/v1?auth_token[]=CzPmXtpAgyDiWuD9kmrx" for 127.0.0.1 at 2013-07-17 17:28:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["CzPmXtpAgyDiWuD9kmrx"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 864 AND "public"."cadenero_members"."auth_token" IN ('CzPmXtpAgyDiWuD9kmrx') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (2.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8b6iGXsz56hRW5yncrKbouP2HOdtjgi/l4mB9kSQ5C8XGxrEw6LO6"], ["updated_at", Wed, 17 Jul 2013 22:28:07 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" = '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", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1067], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PzYzBqfexkmspogMzvsp' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1067, "created_at" = '2013-07-17 22:28:07.060115', "updated_at" = '2013-07-17 22:28:07.060115', "authentication_token" = 'PzYzBqfexkmspogMzvsp' WHERE "public"."cadenero_accounts"."id" = 866  (0.2ms) 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", 866], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["user_id", 1067]] Cadenero::Member Load (4.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xnqtgKfUq8KY2Udy5m9b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 866, "user_id" = 1067, "created_at" = '2013-07-17 22:28:07.067106', "updated_at" = '2013-07-17 22:28:07.067106', "auth_token" = 'xnqtgKfUq8KY2Udy5m9b' WHERE "public"."cadenero_members"."id" = 1068  (2.8ms) 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")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (9.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28: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.5ms | ActiveRecord: 0.0ms) Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1067 Started GET "/v1?auth_token[]=xnqtgKfUq8KY2Udy5m9b" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["xnqtgKfUq8KY2Udy5m9b"], "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::Member Load (3.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 866 AND "public"."cadenero_members"."auth_token" IN ('xnqtgKfUq8KY2Udy5m9b') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1067 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1067 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 3.6ms)  (5.3ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$GMpZ18Pn8o3dOjGAijk/nOqeXBrLSZIsTo20dC92b9TrxGHtESAKG"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1068], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pHpS1qJpaMURBfRycrbf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1068, "created_at" = '2013-07-17 22:28:07.281896', "updated_at" = '2013-07-17 22:28:07.281896', "authentication_token" = 'pHpS1qJpaMURBfRycrbf' WHERE "public"."cadenero_accounts"."id" = 867  (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", 867], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["user_id", 1068]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'koDjvaxRDCVmZAk7Brg3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 867, "user_id" = 1068, "created_at" = '2013-07-17 22:28:07.290114', "updated_at" = '2013-07-17 22:28:07.290114', "auth_token" = 'koDjvaxRDCVmZAk7Brg3' WHERE "public"."cadenero_members"."id" = 1069  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (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, "auth_token" character varying(255))  (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) 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-17 17:28:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) 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", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$uHR1uIG.NtJj9YSLZo8OauSnBKJNl6XSP0Uxo6E1icVnUdak41Pry"], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00]] SQL (4.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", 867], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["user_id", 1069]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YqrBDjBjPyGbeXqCpRFL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 867, "user_id" = 1069, "created_at" = '2013-07-17 22:28:07.471742', "updated_at" = '2013-07-17 22:28:07.471742', "auth_token" = 'YqrBDjBjPyGbeXqCpRFL' WHERE "public"."cadenero_members"."id" = 1070  (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" = 1069 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1069 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1069 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1069 Completed 201 Created in 140ms (Views: 22.2ms | ActiveRecord: 7.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/1069" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1069"} 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" = 867 AND "public"."cadenero_users"."id" = 1069 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1069 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1069 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1069 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" = 1069 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1068 Started GET "/v1?auth_token[]=koDjvaxRDCVmZAk7Brg3" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["koDjvaxRDCVmZAk7Brg3"], "default"=>:json} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 867 AND "public"."cadenero_members"."auth_token" IN ('koDjvaxRDCVmZAk7Brg3') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1068 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1068 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms) Cadenero::Member Load (38.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1069 Started GET "/v1?auth_token[]=YqrBDjBjPyGbeXqCpRFL" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["YqrBDjBjPyGbeXqCpRFL"], "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::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 867 AND "public"."cadenero_members"."auth_token" IN ('YqrBDjBjPyGbeXqCpRFL') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1069 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1069 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$wqVzTBJ0oC5Zy3CQV3ZrLuVq294yXqZ3nCwsxXbdKLobBNnR5sFmy"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1070], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ey9vpoqkuVT35V8AU3uX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1070, "created_at" = '2013-07-17 22:28:07.706552', "updated_at" = '2013-07-17 22:28:07.706552', "authentication_token" = 'ey9vpoqkuVT35V8AU3uX' WHERE "public"."cadenero_accounts"."id" = 868  (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", 868], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:07 UTC +00:00], ["user_id", 1070]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'L2AaxPxpm3GcfiULeUXY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 868, "user_id" = 1070, "created_at" = '2013-07-17 22:28:07.712037', "updated_at" = '2013-07-17 22:28:07.712037', "auth_token" = 'L2AaxPxpm3GcfiULeUXY' WHERE "public"."cadenero_members"."id" = 1071  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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-17 17:28: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.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" = 868 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" = 1070 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1070 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1070 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1070 Completed 201 Created in 108ms (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" = 868 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1070", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1070 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:28:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$/Dawiw9Hm05q0mHpjFDxMOgAwdChUBooLIkzYkwBISa5O9kOjQhpK"], ["updated_at", Wed, 17 Jul 2013 22:28:08 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", 868], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["user_id", 1071]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B6CqWFE7csxxZKJW5YMr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 868, "user_id" = 1071, "created_at" = '2013-07-17 22:28:08.039638', "updated_at" = '2013-07-17 22:28:08.039638', "auth_token" = 'B6CqWFE7csxxZKJW5YMr' WHERE "public"."cadenero_members"."id" = 1072  (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" = 1071 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1071 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1071 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1071 Completed 201 Created in 158ms (Views: 5.9ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1071" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1071"} 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" = 868 AND "public"."cadenero_users"."id" = 1071 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1071 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1071 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1071 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1071 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_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1071 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1071 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1071 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1071 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$lVMDTTiORfmPPuEhO6lqLujtrKxKx7JoYqYmkgJZaoHmLaDacsiAm"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1072], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'usgtGeydwJ9ZxufT1SZN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1072, "created_at" = '2013-07-17 22:28:08.191706', "updated_at" = '2013-07-17 22:28:08.191706', "authentication_token" = 'usgtGeydwJ9ZxufT1SZN' WHERE "public"."cadenero_accounts"."id" = 869  (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", 869], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["user_id", 1072]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yGDYvRiEarkS8hhTCe1w' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 869, "user_id" = 1072, "created_at" = '2013-07-17 22:28:08.198797', "updated_at" = '2013-07-17 22:28:08.198797', "auth_token" = 'yGDYvRiEarkS8hhTCe1w' WHERE "public"."cadenero_members"."id" = 1073  (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.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, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:08 -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" = 869 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" = 1072 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1072 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1072 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1072 Completed 201 Created in 108ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 869 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1072", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1072 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$fnjWGDzK3V3wanyjB3mkDepiR2iSyj21ipLVsWCJcP0a.xR/VN4tm"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1073], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SRxpCWryjhx4T5nTMaVe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1073, "created_at" = '2013-07-17 22:28:08.479221', "updated_at" = '2013-07-17 22:28:08.479221', "authentication_token" = 'SRxpCWryjhx4T5nTMaVe' WHERE "public"."cadenero_accounts"."id" = 870  (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", 870], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["user_id", 1073]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eMFYjuYYRX2Bmuzz7yzp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 870, "user_id" = 1073, "created_at" = '2013-07-17 22:28:08.484697', "updated_at" = '2013-07-17 22:28:08.484697', "auth_token" = 'eMFYjuYYRX2Bmuzz7yzp' WHERE "public"."cadenero_members"."id" = 1074  (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.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.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))  (0.9ms) 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")  (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.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:08 -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.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" = 870 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" = 1073 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1073 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1073 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1073 Completed 201 Created in 106ms (Views: 5.2ms | 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" = 870 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:08 -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" = 1073 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$DuR4o6XV09QYex0SOjsPmO6Er/d9pGiEulzrL.ZUsp.uc9QV4Hi/S"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1074], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tbxaXPnXzBjYwaCh6TXY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1074, "created_at" = '2013-07-17 22:28:08.770079', "updated_at" = '2013-07-17 22:28:08.770079', "authentication_token" = 'tbxaXPnXzBjYwaCh6TXY' WHERE "public"."cadenero_accounts"."id" = 871  (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", 871], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["user_id", 1074]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ti3NyPpmzkwwDTyjBgm2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 871, "user_id" = 1074, "created_at" = '2013-07-17 22:28:08.775892', "updated_at" = '2013-07-17 22:28:08.775892', "auth_token" = 'Ti3NyPpmzkwwDTyjBgm2' WHERE "public"."cadenero_members"."id" = 1075  (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.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, "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")  (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)  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$16tY0q6klKGJbUq1JKjh..UkSE3iyVXFbE1rwmpp75bkaDa9gDOoq"], ["updated_at", Wed, 17 Jul 2013 22:28: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", 871], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:08 UTC +00:00], ["user_id", 1075]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's5LxJgxEzNeb4xNQqsad' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 871, "user_id" = 1075, "created_at" = '2013-07-17 22:28:08.931948', "updated_at" = '2013-07-17 22:28:08.931948', "auth_token" = 's5LxJgxEzNeb4xNQqsad' WHERE "public"."cadenero_members"."id" = 1076  (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" = 1075 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1075 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1075 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1075 Completed 201 Created in 112ms (Views: 6.0ms | 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/1075" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1075"} 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" = 871 AND "public"."cadenero_users"."id" = 1075 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1075 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1075 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1075 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1075 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1075 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1075 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1075 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1075 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1075 LIMIT 1 Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)  (5.4ms) ROLLBACK  (0.6ms) BEGIN  (0.4ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mymADGl3vl6xzKFJUiiCMeXpBzn.lEdNI4SfOiqUYp4sEC4O6koRO"], ["updated_at", Wed, 17 Jul 2013 22:28: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.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", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1076], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TFj3NogCGowLYXWx9ysQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1076, "created_at" = '2013-07-17 22:28:09.093730', "updated_at" = '2013-07-17 22:28:09.093730', "authentication_token" = 'TFj3NogCGowLYXWx9ysQ' WHERE "public"."cadenero_accounts"."id" = 872  (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", 872], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["user_id", 1076]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kVfjr6b3vUofsb7NV912' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 872, "user_id" = 1076, "created_at" = '2013-07-17 22:28:09.099254', "updated_at" = '2013-07-17 22:28:09.099254', "auth_token" = 'kVfjr6b3vUofsb7NV912' WHERE "public"."cadenero_members"."id" = 1077  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.0ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:09 -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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$ekQRL/QyipBhJnlj/ZmNVOeAB9V4cxLoF/2UgBCC.qGEoXS/R44pK"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1077], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EeWksyp32PcjzWAad3z4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1077, "created_at" = '2013-07-17 22:28:09.269692', "updated_at" = '2013-07-17 22:28:09.269692', "authentication_token" = 'EeWksyp32PcjzWAad3z4' WHERE "public"."cadenero_accounts"."id" = 873  (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", 873], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["user_id", 1077]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nF5R459tEeng67qL5mKE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 873, "user_id" = 1077, "created_at" = '2013-07-17 22:28:09.312844', "updated_at" = '2013-07-17 22:28:09.312844', "auth_token" = 'nF5R459tEeng67qL5mKE' WHERE "public"."cadenero_members"."id" = 1078  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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.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")  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$xTJ7LaNl.N5QP72rtJhUAecJzRTjI3I8.KcAdwpI0.5vZJ6qN1V9W"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1078], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UszRviGB7Z7mr71tZAzG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1078, "created_at" = '2013-07-17 22:28:09.462670', "updated_at" = '2013-07-17 22:28:09.462670', "authentication_token" = 'UszRviGB7Z7mr71tZAzG' WHERE "public"."cadenero_accounts"."id" = 874  (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", 874], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["user_id", 1078]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6dBozTUYz2xEu38uriqo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 874, "user_id" = 1078, "created_at" = '2013-07-17 22:28:09.468893', "updated_at" = '2013-07-17 22:28:09.468893', "auth_token" = '6dBozTUYz2xEu38uriqo' WHERE "public"."cadenero_members"."id" = 1079  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 873 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$9XaFUGwENrsL5Fy5XrQ.u.XD8sS3ZO6bEHqgDFCZSQCSFYhNV.i1i"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = '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", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1079], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JxF2cwd9YqU7wAsxTx3b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1079, "created_at" = '2013-07-17 22:28:09.602879', "updated_at" = '2013-07-17 22:28:09.602879', "authentication_token" = 'JxF2cwd9YqU7wAsxTx3b' WHERE "public"."cadenero_accounts"."id" = 875  (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", 875], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["user_id", 1079]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AbwdD57Hi9p919oULzJU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 875, "user_id" = 1079, "created_at" = '2013-07-17 22:28:09.608680', "updated_at" = '2013-07-17 22:28:09.608680', "auth_token" = 'AbwdD57Hi9p919oULzJU' WHERE "public"."cadenero_members"."id" = 1080  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (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.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (0.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 875 AND "public"."cadenero_users"."email" = 'user@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  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$jgdAnNAyy2HV3wmkfphSWu0IlRQxrMddjlhI4muWAoX5MM5Lqyzmy"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1080], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gNZd6ycxgfUp4NNy9mai' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1080, "created_at" = '2013-07-17 22:28:09.779771', "updated_at" = '2013-07-17 22:28:09.779771', "authentication_token" = 'gNZd6ycxgfUp4NNy9mai' WHERE "public"."cadenero_accounts"."id" = 876  (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", 876], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["user_id", 1080]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PSrTspFRQwNyCs5DmK6w' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 876, "user_id" = 1080, "created_at" = '2013-07-17 22:28:09.785906', "updated_at" = '2013-07-17 22:28:09.785906', "auth_token" = 'PSrTspFRQwNyCs5DmK6w' WHERE "public"."cadenero_members"."id" = 1081  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (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)  (0.8ms) 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.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:28:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:28: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 ('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" = 876 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.9ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$s/WiwA3Yw.sLZGxutPDuLey.cR0qaTzUHPF8GGhuamNnFoefqj7ye"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00], ["name", "Testy"], ["owner_id", 1081], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:28:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'quhUz5ssqUFWzf3ZhRk1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1081, "created_at" = '2013-07-17 22:28:09.967965', "updated_at" = '2013-07-17 22:28:09.967965', "authentication_token" = 'quhUz5ssqUFWzf3ZhRk1' WHERE "public"."cadenero_accounts"."id" = 877  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:28: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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:28: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 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Sq5HofAJgT.gD0vqN59fp.h2hZqqnG1csmzbcorA9dY//UkkN/hfC"], ["updated_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["name", "Testy"], ["owner_id", 1082], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TknyyVxdWjNjPJnqkWvY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1082, "created_at" = '2013-07-17 22:28:10.247585', "updated_at" = '2013-07-17 22:28:10.247585', "authentication_token" = 'TknyyVxdWjNjPJnqkWvY' WHERE "public"."cadenero_accounts"."id" = 878  (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", 878], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["user_id", 1082]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '46NgVGmfHk2UiXydbsvg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 878, "user_id" = 1082, "created_at" = '2013-07-17 22:28:10.253181', "updated_at" = '2013-07-17 22:28:10.253181', "auth_token" = '46NgVGmfHk2UiXydbsvg' WHERE "public"."cadenero_members"."id" = 1082  (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.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.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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 ('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') 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" != 878) LIMIT 1 Completed 201 Created in 165ms (Views: 2.3ms | ActiveRecord: 38.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) BEGIN  (0.4ms) COMMIT  (0.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QCP2NESjxN4Qnya5Eans' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 22:28:10.875071', "updated_at" = '2013-07-17 22:28:10.875071', "auth_token" = 'QCP2NESjxN4Qnya5Eans' WHERE "public"."cadenero_members"."id" = 1083  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$zM7QhEODcqGANLvaQENju.3.ZjIc/qANVmWTx/IKgYuS8oZZ7wWMe"], ["updated_at", Wed, 17 Jul 2013 22:28: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" = 'test14' 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", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1083], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'w22qZsrh1xm8AGsALnpx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 1083, "created_at" = '2013-07-17 22:28:10.985906', "updated_at" = '2013-07-17 22:28:10.985906', "authentication_token" = 'w22qZsrh1xm8AGsALnpx' WHERE "public"."cadenero_accounts"."id" = 879  (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", 879], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:10 UTC +00:00], ["user_id", 1083]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SqENnaGeYbs8zxYtuJZx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 879, "user_id" = 1083, "created_at" = '2013-07-17 22:28:10.991379', "updated_at" = '2013-07-17 22:28:10.991379', "auth_token" = 'SqENnaGeYbs8zxYtuJZx' WHERE "public"."cadenero_members"."id" = 1084  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (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.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, "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.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.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:28: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" = 'test14' 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", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$cupDrMP5QjKTcVMxF9SKrezinZFKsPUlVGM17X/jiKEK2o2CIPmmq"], ["updated_at", Wed, 17 Jul 2013 22:28:11 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", 879], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["user_id", 1084]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LacAtsjhBVpHJdvYzxrq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 879, "user_id" = 1084, "created_at" = '2013-07-17 22:28:11.142077', "updated_at" = '2013-07-17 22:28:11.142077', "auth_token" = 'LacAtsjhBVpHJdvYzxrq' WHERE "public"."cadenero_members"."id" = 1085  (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" = 1084 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1084 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1084 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1084 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1084" for 127.0.0.1 at 2013-07-17 17:28:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1084"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 879 AND "public"."cadenero_users"."id" = 1084 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1084 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1084 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1084 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1084 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) 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" = 'test15' 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", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 1084], ["subdomain", "test15"], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1J9yGUbh5apbPqRsFyAw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 1084, "created_at" = '2013-07-17 22:28:11.172137', "updated_at" = '2013-07-17 22:28:11.172137', "authentication_token" = '1J9yGUbh5apbPqRsFyAw' WHERE "public"."cadenero_accounts"."id" = 880  (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", 880], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["user_id", 1084]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tsQSh6sgUtTS6oG5oXzd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 880, "user_id" = 1084, "created_at" = '2013-07-17 22:28:11.177882', "updated_at" = '2013-07-17 22:28:11.177882', "auth_token" = 'tsQSh6sgUtTS6oG5oXzd' WHERE "public"."cadenero_members"."id" = 1086  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:28: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" = 'test15' 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", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ch/bKdL88qc1xow2ZCEwmOV4wYYanIu1HeXS6XpzYvX9XqddjPkVW"], ["updated_at", Wed, 17 Jul 2013 22:28: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", 880], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["user_id", 1085]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pqwRmhxWQf6voH2HA2pp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 880, "user_id" = 1085, "created_at" = '2013-07-17 22:28:11.330740', "updated_at" = '2013-07-17 22:28:11.330740', "auth_token" = 'pqwRmhxWQf6voH2HA2pp' WHERE "public"."cadenero_members"."id" = 1087  (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" = 1085 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1085 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1085 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1085 Completed 201 Created in 115ms (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/1085" for 127.0.0.1 at 2013-07-17 17:28:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1085"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 880 AND "public"."cadenero_users"."id" = 1085 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1085 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1085 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1085 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1085 Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 1.7ms) Started GET "/v1/users/1084" for 127.0.0.1 at 2013-07-17 17:28:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1084"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 879 AND "public"."cadenero_users"."id" = 1084 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1084 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1084 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1084 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1084 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 17:28: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" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 879 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1084 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1084 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1084 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1084 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1083 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1083 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1083 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.6ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$PRsu8RIqCObVHUiQT5yQSejU0OK6rUm/82UjQrFq8WQyP8BokapNW"], ["updated_at", Wed, 17 Jul 2013 22: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" = 'test16' 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", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 1086], ["subdomain", "test16"], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'v75yedYNF5QcT1ciLHkd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 1086, "created_at" = '2013-07-17 22:28:11.508148', "updated_at" = '2013-07-17 22:28:11.508148', "authentication_token" = 'v75yedYNF5QcT1ciLHkd' WHERE "public"."cadenero_accounts"."id" = 881  (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", 881], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["user_id", 1086]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6yG561LsyB25iGfscF9q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 881, "user_id" = 1086, "created_at" = '2013-07-17 22:28:11.513873', "updated_at" = '2013-07-17 22:28:11.513873', "auth_token" = '6yG561LsyB25iGfscF9q' WHERE "public"."cadenero_members"."id" = 1088  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (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.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.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:28: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" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DGN5vFEeSgHEdDfRl3B5XuDq130MCevP4lJwCdErX3W8fJ9KVMU0K"], ["updated_at", Wed, 17 Jul 2013 22:28:11 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", 881], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:11 UTC +00:00], ["user_id", 1087]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qi5o1swrZZJqo8YatkNp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 881, "user_id" = 1087, "created_at" = '2013-07-17 22:28:11.702615', "updated_at" = '2013-07-17 22:28:11.702615', "auth_token" = 'qi5o1swrZZJqo8YatkNp' WHERE "public"."cadenero_members"."id" = 1089  (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" = 1087 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1087 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1087 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1087 Completed 201 Created in 112ms (Views: 5.9ms | 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/1087" for 127.0.0.1 at 2013-07-17 17:28:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1087"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 881 AND "public"."cadenero_users"."id" = 1087 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1087 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1087 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1087 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1087 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms)  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.5ms) 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", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$exybxSdJyUyEmFOA52VPMOnrHBh/sU.TqZkPpyVLwh46MCZgwNFw."], ["updated_at", Wed, 17 Jul 2013 22:28: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" = 'test17' 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", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 1088], ["subdomain", "test17"], ["updated_at", Wed, 17 Jul 2013 22:28:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C36aounmdTaZKofAb3vQ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 1088, "created_at" = '2013-07-17 22:28:20.134199', "updated_at" = '2013-07-17 22:28:20.134199', "authentication_token" = 'C36aounmdTaZKofAb3vQ' WHERE "public"."cadenero_accounts"."id" = 882  (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", 882], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["user_id", 1088]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jaPtLkWMY7B4LhQHPeKR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 882, "user_id" = 1088, "created_at" = '2013-07-17 22:28:20.146249', "updated_at" = '2013-07-17 22:28:20.146249', "auth_token" = 'jaPtLkWMY7B4LhQHPeKR' WHERE "public"."cadenero_members"."id" = 1090  (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", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$Ny.R5EsX7s2OhkZ8qgIDKe1qOX6taOz0A3UK0VGEhDbZuAHxItxd."], ["updated_at", Wed, 17 Jul 2013 22:28: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", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$qTxKQCc8R94eMfTOAOxhz.RDBf0xad8Hj8772ovszJPRXI7PQki9G"], ["updated_at", Wed, 17 Jul 2013 22:28: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", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["name", "Root"], ["owner_id", 1090], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 22:28:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'X6sFVn6yAjMC85wA4rxL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 1090, "created_at" = '2013-07-17 22:28:20.353583', "updated_at" = '2013-07-17 22:28:20.353583', "authentication_token" = 'X6sFVn6yAjMC85wA4rxL' WHERE "public"."cadenero_accounts"."id" = 883  (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", 883], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:28:20 UTC +00:00], ["user_id", 1090]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3mxGe5D7xATBoDdWsq4U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 883, "user_id" = 1090, "created_at" = '2013-07-17 22:28:20.359236', "updated_at" = '2013-07-17 22:28:20.359236', "auth_token" = '3mxGe5D7xATBoDdWsq4U' WHERE "public"."cadenero_members"."id" = 1091  (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")  (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, "auth_token" character varying(255))   (0.8ms) 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.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) COMMIT  (0.7ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.8ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (11.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (10.0ms) BEGIN  (10.0ms) COMMIT  (4.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8ni9LubfZ5eZpd7HIlbg5.nyG7gvfQoiOnChBfeep04WtSZX/5dhm"], ["updated_at", Wed, 17 Jul 2013 22:47:39 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", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["name", "Test Account"], ["owner_id", 1091], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pD4N5iYoe8wL2RBqyfxw' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1091, "created_at" = '2013-07-17 22:47:39.155195', "updated_at" = '2013-07-17 22:47:39.155195', "authentication_token" = 'pD4N5iYoe8wL2RBqyfxw' WHERE "public"."cadenero_accounts"."id" = 884  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 884], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["user_id", 1091]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FKn6C1x76J734RUJRueZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 884, "user_id" = 1091, "created_at" = '2013-07-17 22:47:39.246930', "updated_at" = '2013-07-17 22:47:39.246930', "auth_token" = 'FKn6C1x76J734RUJRueZ' WHERE "public"."cadenero_members"."id" = 1092  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (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")  (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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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') 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" = 884 LIMIT 1  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$DdZD6OMWPlDazYRtlPErIOClVNeMiam4AZMJAK5HKpRvI0E/nQLw6"], ["updated_at", Wed, 17 Jul 2013 22:47:39 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" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1092], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'F5PnXV325azBnL9YDVKb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1092, "created_at" = '2013-07-17 22:47:39.689659', "updated_at" = '2013-07-17 22:47:39.689659', "authentication_token" = 'F5PnXV325azBnL9YDVKb' WHERE "public"."cadenero_accounts"."id" = 885  (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", 885], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["user_id", 1092]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cecjszYP8fYu2msiWsY8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 885, "user_id" = 1092, "created_at" = '2013-07-17 22:47:39.695054', "updated_at" = '2013-07-17 22:47:39.695054', "auth_token" = 'cecjszYP8fYu2msiWsY8' WHERE "public"."cadenero_members"."id" = 1093  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.6ms) 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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:47: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" = '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", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$D/GgMMTwf2gyGvJzTtyjse3nnYmVckx9z81jMRV2dgKy4T6D2kvD6"], ["updated_at", Wed, 17 Jul 2013 22:47:39 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", 885], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:39 UTC +00:00], ["user_id", 1093]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xST73rwAXMmYS311f1oV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 885, "user_id" = 1093, "created_at" = '2013-07-17 22:47:39.933509', "updated_at" = '2013-07-17 22:47:39.933509', "auth_token" = 'xST73rwAXMmYS311f1oV' WHERE "public"."cadenero_members"."id" = 1094  (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" = 1093 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1093 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1093 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" = 1093 Completed 201 Created in 145ms (Views: 30.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/1093" for 127.0.0.1 at 2013-07-17 17:47:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1093"} 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.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" = 885 AND "public"."cadenero_users"."id" = 1093 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1093 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1093 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1093 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" = 1093 Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 1.6ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$j/qX3JyAOxCHEvRI4fVFXeHIJ2O7C3IdUMGu/gTvXgLjCiDbLD5jq"], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1094], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aJGfY2fkmzpGwXhWiGDp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1094, "created_at" = '2013-07-17 22:47:40.128604', "updated_at" = '2013-07-17 22:47:40.128604', "authentication_token" = 'aJGfY2fkmzpGwXhWiGDp' WHERE "public"."cadenero_accounts"."id" = 886  (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", 886], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["user_id", 1094]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xXxsAW8iPR5cPMd8xn8u' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 886, "user_id" = 1094, "created_at" = '2013-07-17 22:47:40.133928', "updated_at" = '2013-07-17 22:47:40.133928', "auth_token" = 'xXxsAW8iPR5cPMd8xn8u' WHERE "public"."cadenero_members"."id" = 1095  (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")  (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, "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")  (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.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-17 17:47:40 -0500 Processing by 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.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", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$YodzqyfJJyHGvv6GZqHj7Oj03KBqKRTpJ5QVUQTvRlQQpBTGN.f1y"], ["updated_at", Wed, 17 Jul 2013 22:47:40 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", 886], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["user_id", 1095]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'V8nqNCGsnrsscF1obABk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 886, "user_id" = 1095, "created_at" = '2013-07-17 22:47:40.305042', "updated_at" = '2013-07-17 22:47:40.305042', "auth_token" = 'V8nqNCGsnrsscF1obABk' WHERE "public"."cadenero_members"."id" = 1096  (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" = 1095 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1095 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1095 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1095 Completed 201 Created in 115ms (Views: 5.7ms | 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/1095" for 127.0.0.1 at 2013-07-17 17:47:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1095"} 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" = 886 AND "public"."cadenero_users"."id" = 1095 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1095 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1095 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1095 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1095 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1095], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ff6mnCnJrsi3pC6Ei2vR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1095, "created_at" = '2013-07-17 22:47:40.335632', "updated_at" = '2013-07-17 22:47:40.335632', "authentication_token" = 'ff6mnCnJrsi3pC6Ei2vR' WHERE "public"."cadenero_accounts"."id" = 887  (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", 887], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["user_id", 1095]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1fBA123Nsu8aqhpgfxA6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 887, "user_id" = 1095, "created_at" = '2013-07-17 22:47:40.343417', "updated_at" = '2013-07-17 22:47:40.343417', "auth_token" = '1fBA123Nsu8aqhpgfxA6' WHERE "public"."cadenero_members"."id" = 1097  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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.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.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:47:40 -0500 Processing by 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", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9QvVoPAwuTFsShCqRW8KvuhS2GWtlGp0ojdCrPfaLSiIU74ysxlf6"], ["updated_at", Wed, 17 Jul 2013 22:47:40 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", 887], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:40 UTC +00:00], ["user_id", 1096]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UUzxQNd7mqBy9kq8ocSE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 887, "user_id" = 1096, "created_at" = '2013-07-17 22:47:40.499621', "updated_at" = '2013-07-17 22:47:40.499621', "auth_token" = 'UUzxQNd7mqBy9kq8ocSE' WHERE "public"."cadenero_members"."id" = 1098  (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" = 1096 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1096 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1096 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1096 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/1096" for 127.0.0.1 at 2013-07-17 17:47:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1096"} 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" = 887 AND "public"."cadenero_users"."id" = 1096 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1096 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1096 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1096 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" = 1096 Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 1.9ms) Started GET "/v1/users/1095" for 127.0.0.1 at 2013-07-17 17:47:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1095"} 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" = 886 AND "public"."cadenero_users"."id" = 1095 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1095 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1095 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1095 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" = 1095 Completed 200 OK in 16ms (Views: 10.8ms | ActiveRecord: 1.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 17:47:40 -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" = 886 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1095 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1095 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1095 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1095 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1094 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1094 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1094 Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 2.5ms)  (15.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:47:41 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$uFMqTl/XTzrJ3fDydfVKWOJk.hGhw49uI7V7vRoeMo16Q3p1jt8cq"], ["updated_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00], ["name", "Testy"], ["owner_id", 1097], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DeEit2WgynTH6r13oarW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1097, "created_at" = '2013-07-17 22:47:41.188329', "updated_at" = '2013-07-17 22:47:41.188329', "authentication_token" = 'DeEit2WgynTH6r13oarW' WHERE "public"."cadenero_accounts"."id" = 888  (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", 888], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00], ["user_id", 1097]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5f88jnxC5TwTXeQEWtvt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 888, "user_id" = 1097, "created_at" = '2013-07-17 22:47:41.225741', "updated_at" = '2013-07-17 22:47:41.225741', "auth_token" = '5f88jnxC5TwTXeQEWtvt' WHERE "public"."cadenero_members"."id" = 1099  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.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.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.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" != 888) LIMIT 1 Completed 201 Created in 248ms (Views: 2.6ms | ActiveRecord: 37.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.7ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$27bPMXJHfwZcO4ZfjhAasuEQJ98DyNwMNECFoEe1qzKxfE0Gny.P6"], ["updated_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00], ["name", "Testy"], ["owner_id", 1098], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:47:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's2DGbBkzrnmMJor3iz1o' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1098, "created_at" = '2013-07-17 22:47:41.447053', "updated_at" = '2013-07-17 22:47:41.447053', "authentication_token" = 's2DGbBkzrnmMJor3iz1o' WHERE "public"."cadenero_accounts"."id" = 889  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:47: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.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 101ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$pAaQsXE4otbb65k65HlmkOMWI1SjkjYFpPH1sOFPgInwCtuRmBHJS"], ["updated_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1099], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xvLbnh8ypE3xavsGErFt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1099, "created_at" = '2013-07-17 22:47:45.021209', "updated_at" = '2013-07-17 22:47:45.021209', "authentication_token" = 'xvLbnh8ypE3xavsGErFt' WHERE "public"."cadenero_accounts"."id" = 890  (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", 890], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["user_id", 1099]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CAC2hR48tae6Lzx2pPyL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 890, "user_id" = 1099, "created_at" = '2013-07-17 22:47:45.027504', "updated_at" = '2013-07-17 22:47:45.027504', "auth_token" = 'CAC2hR48tae6Lzx2pPyL' WHERE "public"."cadenero_members"."id" = 1100  (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", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$laR/MXwlyTfR/KNcY7eBr.y/6bqNJFPfoIyJDtg8pIM5JngdfB6N6"], ["updated_at", Wed, 17 Jul 2013 22:47: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", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$F7G65jsm4v9hS6nLjGrJ8e01RiwgmqQuqc6wnZeJM8e/aSNa1rlZm"], ["updated_at", Wed, 17 Jul 2013 22:47: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", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["name", "Root"], ["owner_id", 1101], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PwHenyZYVByEz96NZb8X' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 1101, "created_at" = '2013-07-17 22:47:45.231284', "updated_at" = '2013-07-17 22:47:45.231284', "authentication_token" = 'PwHenyZYVByEz96NZb8X' WHERE "public"."cadenero_accounts"."id" = 891  (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", 891], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:45 UTC +00:00], ["user_id", 1101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z5o6mEVScHMVNrU3qfsB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 891, "user_id" = 1101, "created_at" = '2013-07-17 22:47:45.236731', "updated_at" = '2013-07-17 22:47:45.236731', "auth_token" = 'Z5o6mEVScHMVNrU3qfsB' WHERE "public"."cadenero_members"."id" = 1101  (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)   (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.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_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", Wed, 17 Jul 2013 22:47:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:49 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tBxq55wXzfuLsfFFRzNe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 22:47:49.600271', "updated_at" = '2013-07-17 22:47:49.600271', "auth_token" = 'tBxq55wXzfuLsfFFRzNe' WHERE "public"."cadenero_members"."id" = 1102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:49 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$t2wC3PNZlzprn6CE1IOw6O6AZjsFz.1UTT7yB.EytPAXfQ/CYyN8S"], ["updated_at", Wed, 17 Jul 2013 22:47: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" = '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", Wed, 17 Jul 2013 22:47:49 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1102], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:47:49 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sKLf5Z3yHeX2SRPPRix5' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1102, "created_at" = '2013-07-17 22:47:49.712315', "updated_at" = '2013-07-17 22:47:49.712315', "authentication_token" = 'sKLf5Z3yHeX2SRPPRix5' WHERE "public"."cadenero_accounts"."id" = 892  (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", 892], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:49 UTC +00:00], ["user_id", 1102]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'm2Bxp1FpbpG3TTnGGuyp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 892, "user_id" = 1102, "created_at" = '2013-07-17 22:47:49.719787', "updated_at" = '2013-07-17 22:47:49.719787', "auth_token" = 'm2Bxp1FpbpG3TTnGGuyp' WHERE "public"."cadenero_members"."id" = 1103  (0.1ms) 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.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, "auth_token" character varying(255))   (1.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")  (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.9ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 892 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1102 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1102 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1102 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1102 Completed 201 Created in 120ms (Views: 7.7ms | 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" = 892 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:49 -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" = 1102 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$8Xq8IsMt9vniGZUTwhUl6edUcCOrGzDEhHB1ZPNE0BmNa42OgYfD."], ["updated_at", Wed, 17 Jul 2013 22:47: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.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", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1103], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GyTc5xkDQAxKHcSFqnBG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1103, "created_at" = '2013-07-17 22:47:50.100689', "updated_at" = '2013-07-17 22:47:50.100689', "authentication_token" = 'GyTc5xkDQAxKHcSFqnBG' WHERE "public"."cadenero_accounts"."id" = 893  (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", 893], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["user_id", 1103]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zyE2514nyPWAWzomX4Zv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 893, "user_id" = 1103, "created_at" = '2013-07-17 22:47:50.106488', "updated_at" = '2013-07-17 22:47:50.106488', "auth_token" = 'zyE2514nyPWAWzomX4Zv' WHERE "public"."cadenero_members"."id" = 1104  (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)   (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")  (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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47: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 (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" = 893 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" = 1103 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1103 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1103 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1103 Completed 201 Created in 108ms (Views: 5.5ms | 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" = 893 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1103", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1103 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47: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.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:47:50 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$F3ej1lCzcjJHikJUU4q.q.ZrkqNa6g21wIi8qcOhkelaYWZZRWv6."], ["updated_at", Wed, 17 Jul 2013 22:47:50 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", 893], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["user_id", 1104]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qgJCznkXEqpCGL1RsgyN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 893, "user_id" = 1104, "created_at" = '2013-07-17 22:47:50.391487', "updated_at" = '2013-07-17 22:47:50.391487', "auth_token" = 'qgJCznkXEqpCGL1RsgyN' WHERE "public"."cadenero_members"."id" = 1105  (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" = 1104 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1104 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1104 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1104 Completed 201 Created in 113ms (Views: 5.8ms | 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/1104" for 127.0.0.1 at 2013-07-17 17:47:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1104"} 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" = 893 AND "public"."cadenero_users"."id" = 1104 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1104 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1104 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1104 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1104 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47:50 -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" = 1104 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1104 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1104 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" = 1104 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bvl/CtkQDpexlD.IGhzt8.lzzlVf97xKjZfTdYdMvowM05EYiPPeG"], ["updated_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1105], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'danbxTY8jaNLcxJwSsyH' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1105, "created_at" = '2013-07-17 22:47:50.570169', "updated_at" = '2013-07-17 22:47:50.570169', "authentication_token" = 'danbxTY8jaNLcxJwSsyH' WHERE "public"."cadenero_accounts"."id" = 894  (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", 894], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:50 UTC +00:00], ["user_id", 1105]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JHLZR2gQ3G8XvuGs7SE5' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 894, "user_id" = 1105, "created_at" = '2013-07-17 22:47:50.575797', "updated_at" = '2013-07-17 22:47:50.575797', "auth_token" = 'JHLZR2gQ3G8XvuGs7SE5' WHERE "public"."cadenero_members"."id" = 1106  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (28.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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 ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47: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.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" = 894 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" = 1105 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1105 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1105 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1105 Completed 201 Created in 258ms (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" = 894 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1105", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1105 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47: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.2ms | ActiveRecord: 0.0ms)  (15.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (14.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", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Z0oAld4wSw1gVgC3JTbl3u/a9BAFQtNyPRf6McO.JLpWiNmLFZSWC"], ["updated_at", Wed, 17 Jul 2013 22:47: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" = '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", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1106], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XrUdybNnfZPKJSaEYHfu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1106, "created_at" = '2013-07-17 22:47:51.221144', "updated_at" = '2013-07-17 22:47:51.221144', "authentication_token" = 'XrUdybNnfZPKJSaEYHfu' WHERE "public"."cadenero_accounts"."id" = 895  (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", 895], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["user_id", 1106]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zFH5evbTBZmwX9kCsBjY' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 895, "user_id" = 1106, "created_at" = '2013-07-17 22:47:51.226715', "updated_at" = '2013-07-17 22:47:51.226715', "auth_token" = 'zFH5evbTBZmwX9kCsBjY' WHERE "public"."cadenero_members"."id" = 1107  (10.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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)  (13.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")  (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))   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.3ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (10.1ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 17:47: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/users" for 127.0.0.1 at 2013-07-17 17:47:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (8.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (1.8ms) 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", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$R6EU3DL5nqcXTl4BQZl5pujh6/FnoK4mifahXHzeeMgaeCoX6ZOKu"], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00]] SQL (18.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", 895], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["user_id", 1107]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xshpdPpsZo8wRkrCVz62' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 895, "user_id" = 1107, "created_at" = '2013-07-17 22:47:51.564173', "updated_at" = '2013-07-17 22:47:51.564173', "auth_token" = 'xshpdPpsZo8wRkrCVz62' WHERE "public"."cadenero_members"."id" = 1108  (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" = 1107 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1107 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1107 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1107 Completed 201 Created in 150ms (Views: 5.7ms | ActiveRecord: 39.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/1107" for 127.0.0.1 at 2013-07-17 17:47:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1107"} 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" = 895 AND "public"."cadenero_users"."id" = 1107 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1107 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1107 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1107 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1107 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1107 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1107 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1107 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1107 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1107 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (1.2ms) COMMIT  (1.9ms) BEGIN  (10.1ms) 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", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$DGDZUOKXwLWuhe8McbTY/.H5RnQFpQHQuFE7aqZTe8EKwHbX.XjcK"], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00]]  (6.7ms) RELEASE SAVEPOINT active_record_1  (11.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1108], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CdKy2PyGY4nBgcktRAeY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1108, "created_at" = '2013-07-17 22:47:51.895409', "updated_at" = '2013-07-17 22:47:51.895409', "authentication_token" = 'CdKy2PyGY4nBgcktRAeY' WHERE "public"."cadenero_accounts"."id" = 896  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 896], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:51 UTC +00:00], ["user_id", 1108]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jWrid197aPMVdF5AiGb2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 896, "user_id" = 1108, "created_at" = '2013-07-17 22:47:51.901690', "updated_at" = '2013-07-17 22:47:51.901690', "auth_token" = 'jWrid197aPMVdF5AiGb2' WHERE "public"."cadenero_members"."id" = 1109  (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)   (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.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))  (6.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.9ms) 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)   (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (11.0ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47: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 (10.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') 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" = 896 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 25ms (Views: 0.4ms | ActiveRecord: 20.4ms) Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (14.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.2ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$i/kD25lvtZbSCWQJQ3CmHecL4w.t.Fjh8x8sxUhtm1Af54jr2msj2"], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00]]  (6.7ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1109], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ssgxNZar9XDagxtPmnWW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1109, "created_at" = '2013-07-17 22:47:52.288959', "updated_at" = '2013-07-17 22:47:52.288959', "authentication_token" = 'ssgxNZar9XDagxtPmnWW' WHERE "public"."cadenero_accounts"."id" = 897  (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", 897], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["user_id", 1109]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zAV5Qe5Hk39edHhrbgcN' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 897, "user_id" = 1109, "created_at" = '2013-07-17 22:47:52.304960', "updated_at" = '2013-07-17 22:47:52.304960', "auth_token" = 'zAV5Qe5Hk39edHhrbgcN' WHERE "public"."cadenero_members"."id" = 1110  (5.0ms) RELEASE SAVEPOINT active_record_1  (5.8ms) CREATE SCHEMA "test10"  (12.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")  (7.0ms) 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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.6ms) 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")  (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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47:52 -0500 Cadenero::V1::Account Load (6.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.9ms) ROLLBACK  (2.8ms) BEGIN  (2.7ms) COMMIT  (4.0ms) BEGIN  (13.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", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$WXiuFkjkmoPOhtiBuIlZ3.dJpIjgw4ZHtBtg2sFli2UAPtvp.DiWy"], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1110], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fMssrMgvsabFnhTyfNHH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1110, "created_at" = '2013-07-17 22:47:52.624562', "updated_at" = '2013-07-17 22:47:52.624562', "authentication_token" = 'fMssrMgvsabFnhTyfNHH' WHERE "public"."cadenero_accounts"."id" = 898  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 898], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["user_id", 1110]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1xizqB3prxEzvbVrnS5s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 898, "user_id" = 1110, "created_at" = '2013-07-17 22:47:52.630623', "updated_at" = '2013-07-17 22:47:52.630623', "auth_token" = '1xizqB3prxEzvbVrnS5s' WHERE "public"."cadenero_members"."id" = 1111  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.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")  (11.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")  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (7.8ms) 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)  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$8TrpnRCaxD1baacILTPOP.muqNKTbApYnyltWvnoDLG0Q3VHrSknG"], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1111], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iHg5CKy4W5q8NA54mqsQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1111, "created_at" = '2013-07-17 22:47:52.902781', "updated_at" = '2013-07-17 22:47:52.902781', "authentication_token" = 'iHg5CKy4W5q8NA54mqsQ' WHERE "public"."cadenero_accounts"."id" = 899  (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", 899], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:52 UTC +00:00], ["user_id", 1111]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nHZqQJyFBNZVQqzDQonk' LIMIT 1  (2.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 899, "user_id" = 1111, "created_at" = '2013-07-17 22:47:52.915359', "updated_at" = '2013-07-17 22:47:52.915359', "auth_token" = 'nHZqQJyFBNZVQqzDQonk' WHERE "public"."cadenero_members"."id" = 1112  (6.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47: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-17 17:47:52 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user12@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.1ms) 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" = 898 AND "public"."cadenero_users"."email" = 'user12@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.5ms | 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  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (8.7ms) 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", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$luJDOW2X9FNWa1OpNdTMP./EIZLRfmTSMws3L7ZaoyHTlELDezjmS"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (9.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1112], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yyMxxNGWqbq4PMYhFt4o' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1112, "created_at" = '2013-07-17 22:47:53.178703', "updated_at" = '2013-07-17 22:47:53.178703', "authentication_token" = 'yyMxxNGWqbq4PMYhFt4o' WHERE "public"."cadenero_accounts"."id" = 900  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 900], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["user_id", 1112]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zHxpAygB3QpDVSPf3oWz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 900, "user_id" = 1112, "created_at" = '2013-07-17 22:47:53.185120', "updated_at" = '2013-07-17 22:47:53.185120', "auth_token" = 'zHxpAygB3QpDVSPf3oWz' WHERE "public"."cadenero_members"."id" = 1113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (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.9ms) 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")  (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, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.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")  (16.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.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')  (7.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:47: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 900 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.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", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$3UjsjHHanWO2H8xWzdZCau07ARn1oTcKVLXxUROg99rAfjRd6AERa"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1113], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cdraadPxau8bjpdCXRqS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 1113, "created_at" = '2013-07-17 22:47:53.548440', "updated_at" = '2013-07-17 22:47:53.548440', "authentication_token" = 'cdraadPxau8bjpdCXRqS' WHERE "public"."cadenero_accounts"."id" = 901  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 901], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["user_id", 1113]] Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CM4qHyXY35BRW56pKhYT' LIMIT 1  (3.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 901, "user_id" = 1113, "created_at" = '2013-07-17 22:47:53.554287', "updated_at" = '2013-07-17 22:47:53.554287', "auth_token" = 'CM4qHyXY35BRW56pKhYT' WHERE "public"."cadenero_members"."id" = 1114  (2.3ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test14"  (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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1113 Started GET "/v1?auth_token[]=CM4qHyXY35BRW56pKhYT" for 127.0.0.1 at 2013-07-17 17:47:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["CM4qHyXY35BRW56pKhYT"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 901 AND "public"."cadenero_members"."auth_token" IN ('CM4qHyXY35BRW56pKhYT') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1113 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1113 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (6.6ms) COMMIT  (7.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$gJwN3K4HBpx9xsFkabI29O14bizwHqbqeQ1dck3xWtRrsFJxcLfY6"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 1114], ["subdomain", "test15"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YqNCBarcCZpGbLJsRu2D' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 1114, "created_at" = '2013-07-17 22:47:53.828998', "updated_at" = '2013-07-17 22:47:53.828998', "authentication_token" = 'YqNCBarcCZpGbLJsRu2D' WHERE "public"."cadenero_accounts"."id" = 902  (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", 902], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["user_id", 1114]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DmSsx8Lz4fFCrxEjmzE7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 902, "user_id" = 1114, "created_at" = '2013-07-17 22:47:53.835610', "updated_at" = '2013-07-17 22:47:53.835610', "auth_token" = 'DmSsx8Lz4fFCrxEjmzE7' WHERE "public"."cadenero_members"."id" = 1115  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$tu0pnSsC6cPZLRiWdS/1teuvLnqtIjo/snRq5JGmsdSniISC1QdSC"], ["updated_at", Wed, 17 Jul 2013 22:47: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" = 'test16' 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", Wed, 17 Jul 2013 22:47:53 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 1115], ["subdomain", "test16"], ["updated_at", Wed, 17 Jul 2013 22:47:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W5DkWFpU9ss96yno2b6H' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 1115, "created_at" = '2013-07-17 22:47:53.996917', "updated_at" = '2013-07-17 22:47:53.996917', "authentication_token" = 'W5DkWFpU9ss96yno2b6H' WHERE "public"."cadenero_accounts"."id" = 903  (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", 903], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["user_id", 1115]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sBKfj2qWsmMffWs8psp1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 903, "user_id" = 1115, "created_at" = '2013-07-17 22:47:54.002090', "updated_at" = '2013-07-17 22:47:54.002090', "auth_token" = 'sBKfj2qWsmMffWs8psp1' WHERE "public"."cadenero_members"."id" = 1116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (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.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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1115 Started GET "/v1?auth_token[]=sBKfj2qWsmMffWs8psp1" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["sBKfj2qWsmMffWs8psp1"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 902 AND "public"."cadenero_members"."auth_token" IN ('sBKfj2qWsmMffWs8psp1') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (12.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$5CGKj39xDv.SiRtfNSeJ7uOv9YO2uPbxexc.4zndK131TtAbC.0Z2"], ["updated_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00]]  (0.4ms) 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" = 'test17' 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", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 1116], ["subdomain", "test17"], ["updated_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'j6v5ccTpcXW6zRmxiNxC' LIMIT 1  (1.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 1116, "created_at" = '2013-07-17 22:47:54.203324', "updated_at" = '2013-07-17 22:47:54.203324', "authentication_token" = 'j6v5ccTpcXW6zRmxiNxC' WHERE "public"."cadenero_accounts"."id" = 904  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 904], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["user_id", 1116]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zYgSe6q6SuxUt7XoSsoN' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 904, "user_id" = 1116, "created_at" = '2013-07-17 22:47:54.212953', "updated_at" = '2013-07-17 22:47:54.212953', "auth_token" = 'zYgSe6q6SuxUt7XoSsoN' WHERE "public"."cadenero_members"."id" = 1117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (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")  (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, "auth_token" character varying(255))  (9.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.4ms) 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.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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' 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", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$b/OZNgcMjt0LXve6Hbw/pOEMLJeqkIcgywRzCTHCpvQcowtQwbJ9S"], ["updated_at", Wed, 17 Jul 2013 22:47: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", 904], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:47:54 UTC +00:00], ["user_id", 1117]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8JGCpZ3pKLcMyH2RFp11' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 904, "user_id" = 1117, "created_at" = '2013-07-17 22:47:54.404899', "updated_at" = '2013-07-17 22:47:54.404899', "auth_token" = '8JGCpZ3pKLcMyH2RFp11' WHERE "public"."cadenero_members"."id" = 1118  (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" = 1117 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1117 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1117 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1117 Completed 201 Created in 118ms (Views: 5.5ms | ActiveRecord: 4.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/1117" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1117"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 904 AND "public"."cadenero_users"."id" = 1117 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1117 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1117 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1117 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" = 1117 Completed 200 OK in 10ms (Views: 5.6ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1116 Started GET "/v1?auth_token[]=zYgSe6q6SuxUt7XoSsoN" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zYgSe6q6SuxUt7XoSsoN"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 904 AND "public"."cadenero_members"."auth_token" IN ('zYgSe6q6SuxUt7XoSsoN') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1116 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1116 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1117 Started GET "/v1?auth_token[]=8JGCpZ3pKLcMyH2RFp11" for 127.0.0.1 at 2013-07-17 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["8JGCpZ3pKLcMyH2RFp11"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 904 AND "public"."cadenero_members"."auth_token" IN ('8JGCpZ3pKLcMyH2RFp11') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1117 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1117 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (7.6ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (1.1ms) COMMIT  (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.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Ys/7bDp8VpF1g9fDSmJ.Rut5iG5XeRzRQFeHKHtzu1MMTPmfEzgAa"], ["updated_at", Wed, 17 Jul 2013 22:48:12 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 (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", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1118], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qsJEdhxDRA6UuUa1wKFi' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1118, "created_at" = '2013-07-17 22:48:12.096464', "updated_at" = '2013-07-17 22:48:12.096464', "authentication_token" = 'qsJEdhxDRA6UuUa1wKFi' WHERE "public"."cadenero_accounts"."id" = 905  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 905], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["user_id", 1118]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pw4keiDCGhEdsZe8ejdL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 905, "user_id" = 1118, "created_at" = '2013-07-17 22:48:12.197951', "updated_at" = '2013-07-17 22:48:12.197951', "auth_token" = 'pw4keiDCGhEdsZe8ejdL' WHERE "public"."cadenero_members"."id" = 1119  (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", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$wr.pqxQceqyasomMK1VKHeHUCMYaBiLv55M8dB3RTcehiXNSGaqYO"], ["updated_at", Wed, 17 Jul 2013 22:48: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", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$hCKPts0XTK/F6UqVTouGqeXyhj3hkicLRAQFyx8TJ1prnoZvvqVCG"], ["updated_at", Wed, 17 Jul 2013 22:48: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", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["name", "Root"], ["owner_id", 1120], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UMwzer8Gp7zyeyhFU4gH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 1120, "created_at" = '2013-07-17 22:48:12.402751', "updated_at" = '2013-07-17 22:48:12.402751', "authentication_token" = 'UMwzer8Gp7zyeyhFU4gH' WHERE "public"."cadenero_accounts"."id" = 906  (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", 906], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:12 UTC +00:00], ["user_id", 1120]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UXkdZCPxREH3Xzsxyptn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 906, "user_id" = 1120, "created_at" = '2013-07-17 22:48:12.408126', "updated_at" = '2013-07-17 22:48:12.408126', "auth_token" = 'UXkdZCPxREH3Xzsxyptn' WHERE "public"."cadenero_members"."id" = 1120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.6ms) BEGIN Connecting to database specified by database.yml  (0.8ms) 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GvuSHTsMgydLpXEkWRpM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 22:48:17.145101', "updated_at" = '2013-07-17 22:48:17.145101', "auth_token" = 'GvuSHTsMgydLpXEkWRpM' WHERE "public"."cadenero_members"."id" = 1121  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$SjvHkJwdcYzHqF.GeKYLJec.S9fmQhheUES60r.Vy5fe8Y7bQEUjC"], ["updated_at", Wed, 17 Jul 2013 22:48: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" = '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", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1121], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'drWRw4NnK8ugHfskaP7s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1121, "created_at" = '2013-07-17 22:48:17.277515', "updated_at" = '2013-07-17 22:48:17.277515', "authentication_token" = 'drWRw4NnK8ugHfskaP7s' WHERE "public"."cadenero_accounts"."id" = 907  (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", 907], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["user_id", 1121]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zkVgTvpwzDu9xgnsvqoD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 907, "user_id" = 1121, "created_at" = '2013-07-17 22:48:17.283936', "updated_at" = '2013-07-17 22:48:17.283936', "auth_token" = 'zkVgTvpwzDu9xgnsvqoD' WHERE "public"."cadenero_members"."id" = 1122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)   (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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:48: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" = 'test2' 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", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$kQPKvOcTC0fKoI59ykjWkeMDD.C4lxn1qba9pGYfrMxN8lkTIgRUi"], ["updated_at", Wed, 17 Jul 2013 22:48:17 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", 907], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["user_id", 1122]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '17rKR6p2S8qfutU6Jxyq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 907, "user_id" = 1122, "created_at" = '2013-07-17 22:48:17.582182', "updated_at" = '2013-07-17 22:48:17.582182', "auth_token" = '17rKR6p2S8qfutU6Jxyq' WHERE "public"."cadenero_members"."id" = 1123  (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" = 1122 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1122 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1122 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" = 1122 Completed 201 Created in 167ms (Views: 36.9ms | ActiveRecord: 4.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/1122" for 127.0.0.1 at 2013-07-17 17:48:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1122"} 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" = 907 AND "public"."cadenero_users"."id" = 1122 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1122 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1122 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1122 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" = 1122 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 1.6ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$0fN8zbNVWC1nKEY1n4.IuewEAeq.sI25WmYQj6QcrZUJoq5KNFfaa"], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1123], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QqrZcXhsUYh4rzfNb7FQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1123, "created_at" = '2013-07-17 22:48:17.784162', "updated_at" = '2013-07-17 22:48:17.784162', "authentication_token" = 'QqrZcXhsUYh4rzfNb7FQ' WHERE "public"."cadenero_accounts"."id" = 908  (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", 908], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["user_id", 1123]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vZ2ESxGNDxpLg5aZky6W' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 908, "user_id" = 1123, "created_at" = '2013-07-17 22:48:17.789649', "updated_at" = '2013-07-17 22:48:17.789649', "auth_token" = 'vZ2ESxGNDxpLg5aZky6W' WHERE "public"."cadenero_members"."id" = 1124  (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)   (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")  (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")  (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")  (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:48: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (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", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$kgPXueFHV2yCNb/CqqfC9OT86NzBEM5bTHauddF1/riROeKkQQ5Wy"], ["updated_at", Wed, 17 Jul 2013 22:48:17 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", 908], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["user_id", 1124]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bdcLvpEKjvND5MyMDsLT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 908, "user_id" = 1124, "created_at" = '2013-07-17 22:48:17.957183', "updated_at" = '2013-07-17 22:48:17.957183', "auth_token" = 'bdcLvpEKjvND5MyMDsLT' WHERE "public"."cadenero_members"."id" = 1125  (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" = 1124 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1124 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1124 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" = 1124 Completed 201 Created in 127ms (Views: 6.3ms | ActiveRecord: 7.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/1124" for 127.0.0.1 at 2013-07-17 17:48:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1124"} 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" = 908 AND "public"."cadenero_users"."id" = 1124 LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1124 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1124 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1124 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1124 Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 2.6ms) 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" = '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", Wed, 17 Jul 2013 22:48:17 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1124], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:48:17 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AyqBNeVExHSrNfxkKPsd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1124, "created_at" = '2013-07-17 22:48:17.997896', "updated_at" = '2013-07-17 22:48:17.997896', "authentication_token" = 'AyqBNeVExHSrNfxkKPsd' WHERE "public"."cadenero_accounts"."id" = 909  (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", 909], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["user_id", 1124]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MqqfzCmYBCbyzjjv7Mdq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 909, "user_id" = 1124, "created_at" = '2013-07-17 22:48:18.003653', "updated_at" = '2013-07-17 22:48:18.003653', "auth_token" = 'MqqfzCmYBCbyzjjv7Mdq' WHERE "public"."cadenero_members"."id" = 1126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (12.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (21.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:48: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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5uLykyY2FAuvTaOeR/kIx.vGIuvNxRBNI44sK06yq2Kh3B0gMP/LG"], ["updated_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00]] SQL (15.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 909], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["user_id", 1125]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2UQYesoM4gQsoyp2CaJ4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 909, "user_id" = 1125, "created_at" = '2013-07-17 22:48:18.481300', "updated_at" = '2013-07-17 22:48:18.481300', "auth_token" = '2UQYesoM4gQsoyp2CaJ4' WHERE "public"."cadenero_members"."id" = 1127  (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" = 1125 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1125 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1125 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1125 Completed 201 Created in 349ms (Views: 6.2ms | ActiveRecord: 29.2ms) Cadenero::V1::Account Load (7.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1125" for 127.0.0.1 at 2013-07-17 17:48:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1125"} 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" = 909 AND "public"."cadenero_users"."id" = 1125 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1125 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1125 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1125 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1125 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.7ms) Started GET "/v1/users/1124" for 127.0.0.1 at 2013-07-17 17:48:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1124"} Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (5.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" = 908 AND "public"."cadenero_users"."id" = 1124 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1124 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1124 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1124 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1124 Completed 200 OK in 23ms (Views: 6.9ms | ActiveRecord: 12.4ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 17:48:18 -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" = 908 Cadenero::User Load (10.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1124 LIMIT 1 Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1124 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1124 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1124 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1123 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1123 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" = 1123 Completed 200 OK in 33ms (Views: 13.1ms | ActiveRecord: 17.9ms)  (21.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms)  (18.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:48: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 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$FDfY8Vaoz1/v6Wuav5UdnukKzW5FKzohD3gHboenc/AWkeEs2aCmW"], ["updated_at", Wed, 17 Jul 2013 22:48:18 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", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["name", "Testy"], ["owner_id", 1126], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gRhBAmns54DmFsF9pJpr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1126, "created_at" = '2013-07-17 22:48:18.933453', "updated_at" = '2013-07-17 22:48:18.933453', "authentication_token" = 'gRhBAmns54DmFsF9pJpr' WHERE "public"."cadenero_accounts"."id" = 910  (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", 910], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:18 UTC +00:00], ["user_id", 1126]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'k8efmxsQ6z7pvvqpVKoq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 910, "user_id" = 1126, "created_at" = '2013-07-17 22:48:18.943090', "updated_at" = '2013-07-17 22:48:18.943090', "auth_token" = 'k8efmxsQ6z7pvvqpVKoq' WHERE "public"."cadenero_members"."id" = 1128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) 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.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))   (9.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (19.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.9ms) 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')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (3.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 910) LIMIT 1 Completed 201 Created in 365ms (Views: 1.7ms | ActiveRecord: 182.7ms) Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (3.8ms) BEGIN  (10.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (13.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (14.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:19 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$M8jpHLDdVVnuEw85pWQsZe8Q0UPKm2TDRJuGXgwg3gHpYhy05xaRC"], ["updated_at", Wed, 17 Jul 2013 22:48:19 UTC +00:00]] SQL (15.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", Wed, 17 Jul 2013 22:48:19 UTC +00:00], ["name", "Testy"], ["owner_id", 1127], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:48:19 UTC +00:00]] Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '32Uhp1ATQivtZZGZ6jK9' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1127, "created_at" = '2013-07-17 22:48:19.345593', "updated_at" = '2013-07-17 22:48:19.345593', "authentication_token" = '32Uhp1ATQivtZZGZ6jK9' WHERE "public"."cadenero_accounts"."id" = 911  (9.7ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:48:19 -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 150ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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  (6.8ms) BEGIN  (25.1ms) COMMIT  (19.7ms) BEGIN Cadenero::V1::Account Exists (19.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (14.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 (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Xl/XIVIxtrxAPZk1XZkm4O6XIk4FKZho7U4o.pGxtsot5UvF2JWJe"], ["updated_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["name", "Test Account"], ["owner_id", 1128], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ENfeVFfyhrorTn4U3UEL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1128, "created_at" = '2013-07-17 22:48:20.007418', "updated_at" = '2013-07-17 22:48:20.007418', "authentication_token" = 'ENfeVFfyhrorTn4U3UEL' WHERE "public"."cadenero_accounts"."id" = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.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", 912], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["user_id", 1128]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vyYkqZ9ruWsD9T9eD1Sg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 912, "user_id" = 1128, "created_at" = '2013-07-17 22:48:20.013006', "updated_at" = '2013-07-17 22:48:20.013006', "auth_token" = 'vyYkqZ9ruWsD9T9eD1Sg' WHERE "public"."cadenero_members"."id" = 1129  (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)  (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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" = 912 LIMIT 1  (11.6ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) COMMIT  (0.3ms) BEGIN Cadenero::V1::Account Exists (13.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$roN1kYDAaoKNBDp64O2aR.hZNGCyOyjviTIaCEgxWYnvRVti87tQa"], ["updated_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1129], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CirsnpwLWeWDRnY3fGfv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1129, "created_at" = '2013-07-17 22:48:20.639304', "updated_at" = '2013-07-17 22:48:20.639304', "authentication_token" = 'CirsnpwLWeWDRnY3fGfv' WHERE "public"."cadenero_accounts"."id" = 913  (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", 913], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:20 UTC +00:00], ["user_id", 1129]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yCuekJhUBbjKdFPtjgiN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 913, "user_id" = 1129, "created_at" = '2013-07-17 22:48:20.645373', "updated_at" = '2013-07-17 22:48:20.645373', "auth_token" = 'yCuekJhUBbjKdFPtjgiN' WHERE "public"."cadenero_members"."id" = 1130  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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, "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.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.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')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 913 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1129 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1129 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1129 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1129 Completed 201 Created in 175ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 913 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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" = 1129 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (10.6ms) ROLLBACK  (5.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$SLn1L22prC0p74oitXeLF.PwhBZJBaJ34wyMusPSkWeU30yK2Ry32"], ["updated_at", Wed, 17 Jul 2013 22:48: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.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", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1130], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cxKkjUHfjhxpgAyDpox3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1130, "created_at" = '2013-07-17 22:48:21.070781', "updated_at" = '2013-07-17 22:48:21.070781', "authentication_token" = 'cxKkjUHfjhxpgAyDpox3' WHERE "public"."cadenero_accounts"."id" = 914  (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", 914], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["user_id", 1130]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1bQBBoGZ2HK7qn5ykkLN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 914, "user_id" = 1130, "created_at" = '2013-07-17 22:48:21.077362', "updated_at" = '2013-07-17 22:48:21.077362', "auth_token" = '1bQBBoGZ2HK7qn5ykkLN' WHERE "public"."cadenero_members"."id" = 1131  (0.1ms) 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.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, "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")  (2.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)   (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 914 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" = 1130 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1130 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1130 Cadenero::V1::Account Load (5.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" = 1130 Completed 201 Created in 127ms (Views: 7.4ms | ActiveRecord: 9.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 914 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1130", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1130 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$FTCLmLrlSrs24NigUrA0qOymQ6M93yEnkC6YJqARrbrawbTiBgJ/W"], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1131], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1jxFyfskSYcV8cJSTbGH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1131, "created_at" = '2013-07-17 22:48:21.497945', "updated_at" = '2013-07-17 22:48:21.497945', "authentication_token" = '1jxFyfskSYcV8cJSTbGH' WHERE "public"."cadenero_accounts"."id" = 915  (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", 915], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["user_id", 1131]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2PF6Pxu8NhBm2zBLqMa3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 915, "user_id" = 1131, "created_at" = '2013-07-17 22:48:21.503611', "updated_at" = '2013-07-17 22:48:21.503611', "auth_token" = '2PF6Pxu8NhBm2zBLqMa3' WHERE "public"."cadenero_members"."id" = 1132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)  (0.8ms) 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.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.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")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 915 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" = 1131 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1131 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1131 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" = 1131 Completed 201 Created in 115ms (Views: 6.0ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 915 Cadenero::User Load (4.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1131", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1131 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) 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", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$qlpiPX7jsLTTkEtXxK8SzOWRfQptKpV5U8k6Q8cjjFU23u3iyNqqa"], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 915], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["user_id", 1132]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MmyuspRMzdtMJy6V7Q6r' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 915, "user_id" = 1132, "created_at" = '2013-07-17 22:48:21.823380', "updated_at" = '2013-07-17 22:48:21.823380', "auth_token" = 'MmyuspRMzdtMJy6V7Q6r' WHERE "public"."cadenero_members"."id" = 1133  (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" = 1132 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1132 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1132 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1132 Completed 201 Created in 116ms (Views: 5.6ms | 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/1132" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1132"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.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" = 915 AND "public"."cadenero_users"."id" = 1132 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1132 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1132 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1132 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" = 1132 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1132 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1132 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1132 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1132 Completed 201 Created in 7ms (Views: 4.7ms | 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.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Ml2V2LOsiG31oqjIOWDx9.JN.MoWhyatnQWRL9mfR2d9LNhvT/qEe"], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1133], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:48:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vkm4oRmbY6etnVUSikBz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1133, "created_at" = '2013-07-17 22:48:21.996418', "updated_at" = '2013-07-17 22:48:21.996418', "authentication_token" = 'vkm4oRmbY6etnVUSikBz' WHERE "public"."cadenero_accounts"."id" = 916  (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", 916], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["user_id", 1133]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FQbxVNqKsZzmywdiZkdi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 916, "user_id" = 1133, "created_at" = '2013-07-17 22:48:22.001958', "updated_at" = '2013-07-17 22:48:22.001958', "auth_token" = 'FQbxVNqKsZzmywdiZkdi' WHERE "public"."cadenero_members"."id" = 1134  (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)  (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.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")  (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.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.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')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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/users" for 127.0.0.1 at 2013-07-17 17:48: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$98I0fAAg44a0Y6.K.9N5T.uBzqHjX0.D7MlJ8SRMOvNOqw09Ldjlm"], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 916], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["user_id", 1134]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ELhtxmg1QR8Rj13epxyP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 916, "user_id" = 1134, "created_at" = '2013-07-17 22:48:22.177932', "updated_at" = '2013-07-17 22:48:22.177932', "auth_token" = 'ELhtxmg1QR8Rj13epxyP' WHERE "public"."cadenero_members"."id" = 1135  (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" = 1134 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1134 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1134 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1134 Completed 201 Created in 122ms (Views: 7.5ms | 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/1134" for 127.0.0.1 at 2013-07-17 17:48:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1134"} 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" = 916 AND "public"."cadenero_users"."id" = 1134 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1134 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1134 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1134 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1134 Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48: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" = 1134 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1134 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1134 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" = 1134 Completed 201 Created in 8ms (Views: 4.8ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:22 -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" = 1134 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$9wPYKmIEIwlSWrAMUEwK0OwK7YDqaz4O8EegQZg21DlVIPXcpeq9."], ["updated_at", Wed, 17 Jul 2013 22:48: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" = '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", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1135], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Jrt3vciqzeJKxcZ5FJqN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1135, "created_at" = '2013-07-17 22:48:22.399053', "updated_at" = '2013-07-17 22:48:22.399053', "authentication_token" = 'Jrt3vciqzeJKxcZ5FJqN' WHERE "public"."cadenero_accounts"."id" = 917  (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", 917], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["user_id", 1135]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BMnuymWGEWqj7YUxTxci' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 917, "user_id" = 1135, "created_at" = '2013-07-17 22:48:22.405878', "updated_at" = '2013-07-17 22:48:22.405878', "auth_token" = 'BMnuymWGEWqj7YUxTxci' WHERE "public"."cadenero_members"."id" = 1136  (0.1ms) 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)   (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")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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-17 17:48: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 (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') 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" = 917 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (17.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$cQL.qrNz2fkZmp/yNo5Lj.FVSXiIsBEvSKtBzJOeU.41Q/az3NQ1S"], ["updated_at", Wed, 17 Jul 2013 22:48: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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1136], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2PbQYpa88UX9jvCDkp9g' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1136, "created_at" = '2013-07-17 22:48:22.663532', "updated_at" = '2013-07-17 22:48:22.663532', "authentication_token" = '2PbQYpa88UX9jvCDkp9g' WHERE "public"."cadenero_accounts"."id" = 918  (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", 918], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["user_id", 1136]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WQ9uDbyGvAphKqbYaLXz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 918, "user_id" = 1136, "created_at" = '2013-07-17 22:48:22.669189', "updated_at" = '2013-07-17 22:48:22.669189', "auth_token" = 'WQ9uDbyGvAphKqbYaLXz' WHERE "public"."cadenero_members"."id" = 1137  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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")  (6.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.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", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$3TbYS/8lqrCuQ.tCXy7XF.V9xcixZqwhs9hmTb9OmKWA9Igsu5Byi"], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1137], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J9gBpYGFq97vx18BxVii' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1137, "created_at" = '2013-07-17 22:48:22.865843', "updated_at" = '2013-07-17 22:48:22.865843', "authentication_token" = 'J9gBpYGFq97vx18BxVii' WHERE "public"."cadenero_accounts"."id" = 919  (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", 919], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:22 UTC +00:00], ["user_id", 1137]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Fz7k5VmKUSg2Y3SUUCz2' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 919, "user_id" = 1137, "created_at" = '2013-07-17 22:48:22.871118', "updated_at" = '2013-07-17 22:48:22.871118', "auth_token" = 'Fz7k5VmKUSg2Y3SUUCz2' WHERE "public"."cadenero_members"."id" = 1138  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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-17 17:48:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 918 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$4Bh.Wvg88wr01mn5H7kEoOmjQ1Z1MRAUpemxr5PETHmik7HCLZBkW"], ["updated_at", Wed, 17 Jul 2013 22:48:23 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" = '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", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1138], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PZCbZzqEmx1uWFDBfaHy' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1138, "created_at" = '2013-07-17 22:48:23.041091', "updated_at" = '2013-07-17 22:48:23.041091', "authentication_token" = 'PZCbZzqEmx1uWFDBfaHy' WHERE "public"."cadenero_accounts"."id" = 920  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 920], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["user_id", 1138]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SppmaLvNbtUVMAzjE8DN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 920, "user_id" = 1138, "created_at" = '2013-07-17 22:48:23.050307', "updated_at" = '2013-07-17 22:48:23.050307', "auth_token" = 'SppmaLvNbtUVMAzjE8DN' WHERE "public"."cadenero_members"."id" = 1139  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (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")  (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))  (0.8ms) 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.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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:23 -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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$YIxjnkvI4J6vQyu/V7VAr.O4fKQz8S6tXJ9x3/Fwrdo0uVO2mGxaK"], ["updated_at", Wed, 17 Jul 2013 22:48:23 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" = 'test13' 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", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1139], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xB3etkPsmgnWnLWgf43S' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1139, "created_at" = '2013-07-17 22:48:23.254849', "updated_at" = '2013-07-17 22:48:23.254849', "authentication_token" = 'xB3etkPsmgnWnLWgf43S' WHERE "public"."cadenero_accounts"."id" = 921  (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", 921], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["user_id", 1139]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TxrS7qmy9qbyng2se3m3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 921, "user_id" = 1139, "created_at" = '2013-07-17 22:48:23.260816', "updated_at" = '2013-07-17 22:48:23.260816', "auth_token" = 'TxrS7qmy9qbyng2se3m3' WHERE "public"."cadenero_members"."id" = 1140  (0.1ms) 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.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.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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48: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 ('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" = 921 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$f3qOP4zqgvRISe19KJNsi.0jE5cDY675S8b5hvILmxuzu2LF.1e5e"], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1140], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PeLq7zzP4i9TrNQHHkJt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 1140, "created_at" = '2013-07-17 22:48:23.448107', "updated_at" = '2013-07-17 22:48:23.448107', "authentication_token" = 'PeLq7zzP4i9TrNQHHkJt' WHERE "public"."cadenero_accounts"."id" = 922  (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", 922], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["user_id", 1140]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7GAvBBYweNosGEXr7Wpk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 922, "user_id" = 1140, "created_at" = '2013-07-17 22:48:23.453845', "updated_at" = '2013-07-17 22:48:23.453845', "auth_token" = '7GAvBBYweNosGEXr7Wpk' WHERE "public"."cadenero_members"."id" = 1141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (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.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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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)   (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1140 Started GET "/v1?auth_token[]=7GAvBBYweNosGEXr7Wpk" for 127.0.0.1 at 2013-07-17 17:48:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["7GAvBBYweNosGEXr7Wpk"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 922 AND "public"."cadenero_members"."auth_token" IN ('7GAvBBYweNosGEXr7Wpk') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1140 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1140 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$Et7Skck79UTOP4CuoNvOROgS69a8QQ9jlJJ/CY4HaDutkMlg32Rm6"], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 1141], ["subdomain", "test15"], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UJqzzyGZN9nAA1r3oJAk' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 1141, "created_at" = '2013-07-17 22:48:23.746139', "updated_at" = '2013-07-17 22:48:23.746139', "authentication_token" = 'UJqzzyGZN9nAA1r3oJAk' WHERE "public"."cadenero_accounts"."id" = 923  (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", 923], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:23 UTC +00:00], ["user_id", 1141]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zQaa2nUpiadAHm1SR8ge' LIMIT 1  (3.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 923, "user_id" = 1141, "created_at" = '2013-07-17 22:48:23.762559', "updated_at" = '2013-07-17 22:48:23.762559', "auth_token" = 'zQaa2nUpiadAHm1SR8ge' WHERE "public"."cadenero_members"."id" = 1142  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) CREATE SCHEMA "test15"  (28.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" ("authentication_token")  (10.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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (13.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (17.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (11.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (10.4ms) SELECT version FROM "schema_migrations"  (9.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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/users" for 127.0.0.1 at 2013-07-17 17:48:24 -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 (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Ya3P03JkG5oeZ8k/T0obrOB38RpI8oDuGGzo91QMaulhd3RkKuk5u"], ["updated_at", Wed, 17 Jul 2013 22:48:24 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", 923], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["user_id", 1142]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eFf4afgJabP4EXyqAzyp' LIMIT 1  (6.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 923, "user_id" = 1142, "created_at" = '2013-07-17 22:48:24.277780', "updated_at" = '2013-07-17 22:48:24.277780', "auth_token" = 'eFf4afgJabP4EXyqAzyp' WHERE "public"."cadenero_members"."id" = 1143  (1.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1142 LIMIT 1 Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1142 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1142 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" = 1142 Completed 201 Created in 206ms (Views: 9.9ms | ActiveRecord: 22.3ms) Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1142" for 127.0.0.1 at 2013-07-17 17:48:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1142"} Cadenero::V1::Account Load (8.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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" = 923 AND "public"."cadenero_users"."id" = 1142 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1142 LIMIT 1 Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1142 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1142 Cadenero::V1::Account Load (6.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" = 1142 Completed 200 OK in 34ms (Views: 7.4ms | ActiveRecord: 22.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 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1141 Started GET "/v1?auth_token[]=zQaa2nUpiadAHm1SR8ge" for 127.0.0.1 at 2013-07-17 17:48:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zQaa2nUpiadAHm1SR8ge"], "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 923 AND "public"."cadenero_members"."auth_token" IN ('zQaa2nUpiadAHm1SR8ge') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1141 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1141 LIMIT 1 Completed 200 OK in 17ms (Views: 6.3ms | ActiveRecord: 3.2ms) Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1142 Started GET "/v1?auth_token[]=eFf4afgJabP4EXyqAzyp" for 127.0.0.1 at 2013-07-17 17:48:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["eFf4afgJabP4EXyqAzyp"], "default"=>:json} Cadenero::V1::Account Load (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 923 AND "public"."cadenero_members"."auth_token" IN ('eFf4afgJabP4EXyqAzyp') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1142 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1142 LIMIT 1 Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 5.3ms)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$oNiPuDT0yBQMzCmC2.aNoeJ.tYDW5ondo30GVPhKTFNc7A/iW1jvq"], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' 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", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 1143], ["subdomain", "test16"], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QGQkydD7ATPk2RDsmwYD' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 1143, "created_at" = '2013-07-17 22:48:24.590292', "updated_at" = '2013-07-17 22:48:24.590292', "authentication_token" = 'QGQkydD7ATPk2RDsmwYD' WHERE "public"."cadenero_accounts"."id" = 924  (17.6ms) RELEASE SAVEPOINT active_record_1  (4.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", 924], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["user_id", 1143]] Cadenero::Member Load (6.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qPEV4DVDsmuJUy3BpMvx' LIMIT 1  (10.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 924, "user_id" = 1143, "created_at" = '2013-07-17 22:48:24.624888', "updated_at" = '2013-07-17 22:48:24.624888', "auth_token" = 'qPEV4DVDsmuJUy3BpMvx' WHERE "public"."cadenero_members"."id" = 1144  (3.3ms) RELEASE SAVEPOINT active_record_1  (7.2ms) CREATE SCHEMA "test16"  (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.6ms) 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))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (2.1ms) 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.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')  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$wJsA71/IAXqx7Im0nymIXe8E75YTUcXcCiGD0twnWRW8jA2GW9nl."], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (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", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 1144], ["subdomain", "test17"], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dUyto7n1UMsAFwsnHt6P' LIMIT 1  (4.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 1144, "created_at" = '2013-07-17 22:48:24.888379', "updated_at" = '2013-07-17 22:48:24.888379', "authentication_token" = 'dUyto7n1UMsAFwsnHt6P' WHERE "public"."cadenero_accounts"."id" = 925  (4.6ms) RELEASE SAVEPOINT active_record_1  (3.8ms) 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", 925], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:24 UTC +00:00], ["user_id", 1144]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZJJoamNGhTv1wZPsP1mb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 925, "user_id" = 1144, "created_at" = '2013-07-17 22:48:24.909067', "updated_at" = '2013-07-17 22:48:24.909067', "auth_token" = 'ZJJoamNGhTv1wZPsP1mb' WHERE "public"."cadenero_members"."id" = 1145  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (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.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.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")  (3.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")  (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")  (1.9ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1144 Started GET "/v1?auth_token[]=ZJJoamNGhTv1wZPsP1mb" for 127.0.0.1 at 2013-07-17 17:48:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ZJJoamNGhTv1wZPsP1mb"], "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 924 AND "public"."cadenero_members"."auth_token" IN ('ZJJoamNGhTv1wZPsP1mb') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.8ms)  (9.5ms) ROLLBACK  (2.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.8ms) ROLLBACK  (1.1ms) BEGIN  (2.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 22ms (Views: 15.2ms | ActiveRecord: 6.9ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (3.4ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 22:48:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$hkV6uTm3oDUiHVayCTJErO1hV.UZq8oXVklkI82FEjL5gf9DOwUAK"], ["updated_at", Wed, 17 Jul 2013 22:48:50 UTC +00:00]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (9.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1145], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:48:50 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'u17pzzVdnSpsxsmpPANQ' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1145, "created_at" = '2013-07-17 22:48:50.873035', "updated_at" = '2013-07-17 22:48:50.873035', "authentication_token" = 'u17pzzVdnSpsxsmpPANQ' WHERE "public"."cadenero_accounts"."id" = 926  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 926], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:50 UTC +00:00], ["user_id", 1145]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7vQqHDgx29piXgz1JaNF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 926, "user_id" = 1145, "created_at" = '2013-07-17 22:48:50.984361', "updated_at" = '2013-07-17 22:48:50.984361', "auth_token" = '7vQqHDgx29piXgz1JaNF' WHERE "public"."cadenero_members"."id" = 1146  (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")  (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, "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.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.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 ('20130715174857')  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 926 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" = 1145 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1145 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1145 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1145 Completed 201 Created in 185ms (Views: 29.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 926 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1145", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1145 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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)  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$ED0gDRfVo2e3xV0TMcoPDujD0NT2awp9QczHqKb3F8mZOjSppFBxa"], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1146], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ySrizAwFTmd7TqZbmipM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1146, "created_at" = '2013-07-17 22:48:51.412821', "updated_at" = '2013-07-17 22:48:51.412821', "authentication_token" = 'ySrizAwFTmd7TqZbmipM' WHERE "public"."cadenero_accounts"."id" = 927  (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", 927], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["user_id", 1146]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xy3yy885tpWbovrmbVbX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 927, "user_id" = 1146, "created_at" = '2013-07-17 22:48:51.418249', "updated_at" = '2013-07-17 22:48:51.418249', "auth_token" = 'xy3yy885tpWbovrmbVbX' WHERE "public"."cadenero_members"."id" = 1147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (4.0ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 927 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" = 1146 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1146 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1146 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" = 1146 Completed 201 Created in 107ms (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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 927 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1146 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$k/.I9XFcKIhcIQl.cZ1jpO0TRPrB3/mHhn2GIhm17hGEhWCmQXzxm"], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1147], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '37TGJFFqBAmxvvJzagFq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1147, "created_at" = '2013-07-17 22:48:51.737605', "updated_at" = '2013-07-17 22:48:51.737605', "authentication_token" = '37TGJFFqBAmxvvJzagFq' WHERE "public"."cadenero_accounts"."id" = 928  (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", 928], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["user_id", 1147]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'k2weq1Pv3nvtUcBN7k6n' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 928, "user_id" = 1147, "created_at" = '2013-07-17 22:48:51.744266', "updated_at" = '2013-07-17 22:48:51.744266', "auth_token" = 'k2weq1Pv3nvtUcBN7k6n' WHERE "public"."cadenero_members"."id" = 1148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (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, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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/users" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.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", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$oZMhVb7.UGxAs0oDVSqHvOSYLcZkWopZn5RQVc8p1e3HO/h5Wbc7O"], ["updated_at", Wed, 17 Jul 2013 22:48:51 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", 928], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:51 UTC +00:00], ["user_id", 1148]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '21yHi3pDfUHS591K9gpk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 928, "user_id" = 1148, "created_at" = '2013-07-17 22:48:51.925791', "updated_at" = '2013-07-17 22:48:51.925791', "auth_token" = '21yHi3pDfUHS591K9gpk' WHERE "public"."cadenero_members"."id" = 1149  (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" = 1148 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1148 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1148 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1148 Completed 201 Created in 115ms (Views: 6.1ms | ActiveRecord: 4.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/1148" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1148"} 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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 928 AND "public"."cadenero_users"."id" = 1148 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1148 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1148 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1148 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1148 Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1148 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1148 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1148 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1148 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:51 -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" = 1148 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$yB.IHT64yEwFWLWfW0l9wOapath1.Ads35HYJvqI9rbXMEjtop1sy"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1149], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CDsGnAVhaUTs2YApcXSp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1149, "created_at" = '2013-07-17 22:48:52.100197', "updated_at" = '2013-07-17 22:48:52.100197', "authentication_token" = 'CDsGnAVhaUTs2YApcXSp' WHERE "public"."cadenero_accounts"."id" = 929  (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", 929], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["user_id", 1149]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XCcArZZz6qLj8BqdcZg1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 929, "user_id" = 1149, "created_at" = '2013-07-17 22:48:52.105843', "updated_at" = '2013-07-17 22:48:52.105843', "auth_token" = 'XCcArZZz6qLj8BqdcZg1' WHERE "public"."cadenero_members"."id" = 1150  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:52 -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.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" = 929 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" = 1149 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1149 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1149 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1149 Completed 201 Created in 108ms (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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 929 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1149", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1149 LIMIT 1 Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:48:52 -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", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$nSxLiIR2ZTzGcHquY0KBP.XSAxyBLTdSd9s3xmzrIECAsq.NDXgom"], ["updated_at", Wed, 17 Jul 2013 22:48:52 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", 929], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["user_id", 1150]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LyVVqUtXUVqdxEWiwgxq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 929, "user_id" = 1150, "created_at" = '2013-07-17 22:48:52.387670', "updated_at" = '2013-07-17 22:48:52.387670', "auth_token" = 'LyVVqUtXUVqdxEWiwgxq' WHERE "public"."cadenero_members"."id" = 1151  (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" = 1150 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1150 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1150 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" = 1150 Completed 201 Created in 113ms (Views: 6.2ms | 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/1150" for 127.0.0.1 at 2013-07-17 17:48:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1150"} 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.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" = 929 AND "public"."cadenero_users"."id" = 1150 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1150 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1150 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1150 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1150 Completed 200 OK in 60ms (Views: 5.9ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:52 -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" = 1150 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1150 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1150 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1150 Completed 201 Created in 7ms (Views: 4.9ms | 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  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$CE8BCNrjRrLAZehg7lxKWu5BoEKLAGg9n51fZSktIOa3u5.XweCBe"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1151], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9JHs7VGXoVjCXjLvrtgp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1151, "created_at" = '2013-07-17 22:48:52.620042', "updated_at" = '2013-07-17 22:48:52.620042', "authentication_token" = '9JHs7VGXoVjCXjLvrtgp' WHERE "public"."cadenero_accounts"."id" = 930  (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", 930], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["user_id", 1151]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fuNy6bwEAWX9kH5Rt8ex' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 930, "user_id" = 1151, "created_at" = '2013-07-17 22:48:52.633487', "updated_at" = '2013-07-17 22:48:52.633487', "auth_token" = 'fuNy6bwEAWX9kH5Rt8ex' WHERE "public"."cadenero_members"."id" = 1152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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.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")  (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.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.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Pdh6kfTjPkKkvnJOjTDateLY0VSfjCYJJ5XQFXMlB7jPePvgncj.m"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1152], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R48K5jYKHqWrykdy82px' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1152, "created_at" = '2013-07-17 22:48:52.807173', "updated_at" = '2013-07-17 22:48:52.807173', "authentication_token" = 'R48K5jYKHqWrykdy82px' WHERE "public"."cadenero_accounts"."id" = 931  (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", 931], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["user_id", 1152]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NjZGigp7zHTUAkdAbUaC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 931, "user_id" = 1152, "created_at" = '2013-07-17 22:48:52.812423', "updated_at" = '2013-07-17 22:48:52.812423', "auth_token" = 'NjZGigp7zHTUAkdAbUaC' WHERE "public"."cadenero_members"."id" = 1153  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48: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-17 17:48:52 -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" = 930 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  (2.5ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$MTKvsXmld8jmOTK8WX3Y6uEUYsx0Jycs/N6KzOwxMtcW.tIfKYhXC"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1153], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V1WkByUSwib9MqjF8Xtz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1153, "created_at" = '2013-07-17 22:48:52.939632', "updated_at" = '2013-07-17 22:48:52.939632', "authentication_token" = 'V1WkByUSwib9MqjF8Xtz' WHERE "public"."cadenero_accounts"."id" = 932  (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", 932], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:52 UTC +00:00], ["user_id", 1153]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xarCcvshDLMsfo1zzC4A' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 932, "user_id" = 1153, "created_at" = '2013-07-17 22:48:52.945147', "updated_at" = '2013-07-17 22:48:52.945147', "auth_token" = 'xarCcvshDLMsfo1zzC4A' WHERE "public"."cadenero_members"."id" = 1154  (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.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.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.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")  (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)   (1.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 932 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  (6.0ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$q.xBU6LLHYEJ3WwRIbjmJOHkri3PAHmNGApj.ZklXKjY/YG.Rb81y"], ["updated_at", Wed, 17 Jul 2013 22:48: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" = '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", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1154], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'U9M9YarAQw1Qi7zg55Mm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1154, "created_at" = '2013-07-17 22:48:53.129777', "updated_at" = '2013-07-17 22:48:53.129777', "authentication_token" = 'U9M9YarAQw1Qi7zg55Mm' WHERE "public"."cadenero_accounts"."id" = 933  (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", 933], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["user_id", 1154]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bgLoqygXRf6Ba5zEhw4B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 933, "user_id" = 1154, "created_at" = '2013-07-17 22:48:53.135198', "updated_at" = '2013-07-17 22:48:53.135198', "auth_token" = 'bgLoqygXRf6Ba5zEhw4B' WHERE "public"."cadenero_members"."id" = 1155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 933 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mjUxjpDdIy2CED0YTd7/uOXQZEkJ5tNPaxsPhEdmA5Fr8nrBny3oO"], ["updated_at", Wed, 17 Jul 2013 22:48: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" = '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", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1155], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xeJU3thfYG8prTPbUphH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1155, "created_at" = '2013-07-17 22:48:53.315091', "updated_at" = '2013-07-17 22:48:53.315091', "authentication_token" = 'xeJU3thfYG8prTPbUphH' WHERE "public"."cadenero_accounts"."id" = 934  (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", 934], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["user_id", 1155]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ftUJHUxgWGpfzqKUdqe6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 934, "user_id" = 1155, "created_at" = '2013-07-17 22:48:53.321044', "updated_at" = '2013-07-17 22:48:53.321044', "auth_token" = 'ftUJHUxgWGpfzqKUdqe6' WHERE "public"."cadenero_members"."id" = 1156  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.5ms) ROLLBACK  (0.8ms) BEGIN  (1.2ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$L3qr56G8BtdIw8qwtqZe2Oi5NXtOoQZhDx77PcHflBvQSp4rVcPFK"], ["updated_at", Wed, 17 Jul 2013 22:48: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" = '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", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1156], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'M2v4wskwpoWwZ4jcytVC' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1156, "created_at" = '2013-07-17 22:48:53.525821', "updated_at" = '2013-07-17 22:48:53.525821', "authentication_token" = 'M2v4wskwpoWwZ4jcytVC' WHERE "public"."cadenero_accounts"."id" = 935  (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", 935], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["user_id", 1156]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kqccjj48BTpzHbxPdr1x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 935, "user_id" = 1156, "created_at" = '2013-07-17 22:48:53.532776', "updated_at" = '2013-07-17 22:48:53.532776', "auth_token" = 'Kqccjj48BTpzHbxPdr1x' WHERE "public"."cadenero_members"."id" = 1157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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)  (8.1ms) 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.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$qE4zYrKmJkABJ2Mi151ADu4agB3kygEJpFWBpxcQvAjUAki802pRG"], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1157], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qwSHo38UX6nKs97Ji1np' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1157, "created_at" = '2013-07-17 22:48:53.699795', "updated_at" = '2013-07-17 22:48:53.699795', "authentication_token" = 'qwSHo38UX6nKs97Ji1np' WHERE "public"."cadenero_accounts"."id" = 936  (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", 936], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["user_id", 1157]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nwy1NrzxBEoPgcqUrCqU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 936, "user_id" = 1157, "created_at" = '2013-07-17 22:48:53.704935', "updated_at" = '2013-07-17 22:48:53.704935', "auth_token" = 'nwy1NrzxBEoPgcqUrCqU' WHERE "public"."cadenero_members"."id" = 1158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.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")  (2.1ms) 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)   (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1157 Started GET "/v1?auth_token[]=nwy1NrzxBEoPgcqUrCqU" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["nwy1NrzxBEoPgcqUrCqU"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 935 AND "public"."cadenero_members"."auth_token" IN ('nwy1NrzxBEoPgcqUrCqU') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$L2n3XoUxj4QFbsmesyCSFOJSrHlY1XlFVCogYOTewnKO2f5gRhcdm"], ["updated_at", Wed, 17 Jul 2013 22:48: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" = '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", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1158], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9zT18XMEpdQAR6KWZhhQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1158, "created_at" = '2013-07-17 22:48:53.919600', "updated_at" = '2013-07-17 22:48:53.919600', "authentication_token" = '9zT18XMEpdQAR6KWZhhQ' WHERE "public"."cadenero_accounts"."id" = 937  (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", 937], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:53 UTC +00:00], ["user_id", 1158]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8fo7fEpZY1LKTcKyffvW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 937, "user_id" = 1158, "created_at" = '2013-07-17 22:48:53.925157', "updated_at" = '2013-07-17 22:48:53.925157', "auth_token" = '8fo7fEpZY1LKTcKyffvW' WHERE "public"."cadenero_members"."id" = 1159  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:48:53 -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" = '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", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$WLAXENQzKORwgdgMF2ZeAu8jH7cyOjimuCCvvlgMw3k5ilHmU9vHq"], ["updated_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00]] 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", 937], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["user_id", 1159]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NPpqVgPYa7jopCVBcyhp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 937, "user_id" = 1159, "created_at" = '2013-07-17 22:48:54.131459', "updated_at" = '2013-07-17 22:48:54.131459', "auth_token" = 'NPpqVgPYa7jopCVBcyhp' WHERE "public"."cadenero_members"."id" = 1160  (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" = 1159 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1159 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1159 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" = 1159 Completed 201 Created in 129ms (Views: 8.5ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1159" for 127.0.0.1 at 2013-07-17 17:48:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1159"} 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 (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" = 937 AND "public"."cadenero_users"."id" = 1159 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1159 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1159 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1159 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1159 Completed 200 OK in 19ms (Views: 8.6ms | ActiveRecord: 3.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1158 Started GET "/v1?auth_token[]=8fo7fEpZY1LKTcKyffvW" for 127.0.0.1 at 2013-07-17 17:48:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["8fo7fEpZY1LKTcKyffvW"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 937 AND "public"."cadenero_members"."auth_token" IN ('8fo7fEpZY1LKTcKyffvW') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1158 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1158 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1159 Started GET "/v1?auth_token[]=NPpqVgPYa7jopCVBcyhp" for 127.0.0.1 at 2013-07-17 17:48:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["NPpqVgPYa7jopCVBcyhp"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 937 AND "public"."cadenero_members"."auth_token" IN ('NPpqVgPYa7jopCVBcyhp') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1159 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1159 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (4.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$ThtaZjanhTEttMjPozUb4.N6Ce9WUA3lSlztv/WNzK6VQRh79joKq"], ["updated_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1160], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fyNFsoqNmwoAsGpEyqkL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1160, "created_at" = '2013-07-17 22:48:54.340193', "updated_at" = '2013-07-17 22:48:54.340193', "authentication_token" = 'fyNFsoqNmwoAsGpEyqkL' WHERE "public"."cadenero_accounts"."id" = 938  (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", 938], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:54 UTC +00:00], ["user_id", 1160]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NVqVAszF9fntiMZx7zrq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 938, "user_id" = 1160, "created_at" = '2013-07-17 22:48:54.346623', "updated_at" = '2013-07-17 22:48:54.346623', "auth_token" = 'NVqVAszF9fntiMZx7zrq' WHERE "public"."cadenero_members"."id" = 1161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.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')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:48:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1160 Started GET "/v1?auth_token[]=NVqVAszF9fntiMZx7zrq" for 127.0.0.1 at 2013-07-17 17:48:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["NVqVAszF9fntiMZx7zrq"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 938 AND "public"."cadenero_members"."auth_token" IN ('NVqVAszF9fntiMZx7zrq') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1160 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1160 LIMIT 1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (4.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_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", Wed, 17 Jul 2013 22:48:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:48:55 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'a6C9htJqLx9EpTZfuf1p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 22:48:55.072197', "updated_at" = '2013-07-17 22:48:55.072197', "auth_token" = 'a6C9htJqLx9EpTZfuf1p' WHERE "public"."cadenero_members"."id" = 1162  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$OxubsYXbqS4SVXyAouL4wezHaYXiwnq.ix7eiC/4HwuNndTsmAi3q"], ["updated_at", Wed, 17 Jul 2013 22:49: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" = 'test14' 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", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1161], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 22:49:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '55fijAdyNxk9j5yaNhLs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 1161, "created_at" = '2013-07-17 22:49:03.602499', "updated_at" = '2013-07-17 22:49:03.602499', "authentication_token" = '55fijAdyNxk9j5yaNhLs' WHERE "public"."cadenero_accounts"."id" = 939  (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", 939], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["user_id", 1161]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6BW9vBP6HixExprvF5x4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 939, "user_id" = 1161, "created_at" = '2013-07-17 22:49:03.609049', "updated_at" = '2013-07-17 22:49:03.609049', "auth_token" = '6BW9vBP6HixExprvF5x4' WHERE "public"."cadenero_members"."id" = 1163  (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", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$.NY5Ow0I79z7M1WNkNfiiuk2sDm5CF43MYXyGgsOFeSqPW8g0Hpn."], ["updated_at", Wed, 17 Jul 2013 22:49:03 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", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tKdqJbr/.YUE.pvu80qBzOLJud72/ywYG.tHh8lMFj5XtzXKr0DEW"], ["updated_at", Wed, 17 Jul 2013 22:49: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", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["name", "Root"], ["owner_id", 1163], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 22:49:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XUAwUuxzR6sseG3G1p39' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 1163, "created_at" = '2013-07-17 22:49:03.810395', "updated_at" = '2013-07-17 22:49:03.810395', "authentication_token" = 'XUAwUuxzR6sseG3G1p39' WHERE "public"."cadenero_accounts"."id" = 940  (0.4ms) 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", 940], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:03 UTC +00:00], ["user_id", 1163]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BciF7ztMCLZnJgnCucAw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 940, "user_id" = 1163, "created_at" = '2013-07-17 22:49:03.816703', "updated_at" = '2013-07-17 22:49:03.816703', "auth_token" = 'BciF7ztMCLZnJgnCucAw' WHERE "public"."cadenero_members"."id" = 1164  (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")  (2.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, "auth_token" character varying(255))  (3.9ms) 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.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.9ms) 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.4ms) ROLLBACK  (1.2ms) BEGIN  (0.9ms) COMMIT  (0.8ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$isb7zaiyy1fvzuf2hqjMPeQqzb0NTG5ZFd30Tffph0aqWxA66VsvG"], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["name", "Test Account"], ["owner_id", 1164], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EuDXwaV8CDXKMCy6MZXB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1164, "created_at" = '2013-07-17 22:49:04.262574', "updated_at" = '2013-07-17 22:49:04.262574', "authentication_token" = 'EuDXwaV8CDXKMCy6MZXB' WHERE "public"."cadenero_accounts"."id" = 941  (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", 941], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["user_id", 1164]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b4aEniKDJ6BLsQ6nE9ge' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 941, "user_id" = 1164, "created_at" = '2013-07-17 22:49:04.268189', "updated_at" = '2013-07-17 22:49:04.268189', "auth_token" = 'b4aEniKDJ6BLsQ6nE9ge' WHERE "public"."cadenero_members"."id" = 1165  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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")  (2.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.0ms) 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.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 941 LIMIT 1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (1.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:49: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 (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$7OTl5PTUsR9rSEVNQTV8peyVMe.33g6wjFt6sY3mtANCzOA5NvMSq"], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1165], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q8ttX6pmqs8XNp7EET22' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1165, "created_at" = '2013-07-17 22:49:04.538949', "updated_at" = '2013-07-17 22:49:04.538949', "authentication_token" = 'q8ttX6pmqs8XNp7EET22' WHERE "public"."cadenero_accounts"."id" = 942  (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", 942], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["user_id", 1165]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pFm5tz2XYrqePxmAutrC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 942, "user_id" = 1165, "created_at" = '2013-07-17 22:49:04.544687', "updated_at" = '2013-07-17 22:49:04.544687', "auth_token" = 'pFm5tz2XYrqePxmAutrC' WHERE "public"."cadenero_members"."id" = 1166  (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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) 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.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.7ms) 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" != 942) LIMIT 1 Completed 201 Created in 166ms (Views: 2.4ms | ActiveRecord: 39.3ms) 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.1ms) BEGIN  (0.1ms) COMMIT  (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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$jLPvR/8saU.ukQmub9gTC.JXczbXt3K4EsGstYSJFwi6HDtgAanQO"], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1166], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:49:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1ib9ssRbyy1CcDJeVq6G' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1166, "created_at" = '2013-07-17 22:49:04.716307', "updated_at" = '2013-07-17 22:49:04.716307', "authentication_token" = '1ib9ssRbyy1CcDJeVq6G' WHERE "public"."cadenero_accounts"."id" = 943  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:49: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 (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 102ms (Views: 0.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 59ms (Views: 58.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$dr4N.OLdaPjdPmQMVGn2/eumiZxmVyRoabJF.E9A971qQN72e3pzW"], ["updated_at", Wed, 17 Jul 2013 22:49: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" = 'test15' 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", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 1167], ["subdomain", "test15"], ["updated_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8t1em72fKHYdeTHVvsve' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 1167, "created_at" = '2013-07-17 22:49:05.029756', "updated_at" = '2013-07-17 22:49:05.029756', "authentication_token" = '8t1em72fKHYdeTHVvsve' WHERE "public"."cadenero_accounts"."id" = 944  (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", 944], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["user_id", 1167]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4QYHSxKHnnQzRgmxcGpx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 944, "user_id" = 1167, "created_at" = '2013-07-17 22:49:05.035317', "updated_at" = '2013-07-17 22:49:05.035317', "auth_token" = '4QYHSxKHnnQzRgmxcGpx' WHERE "public"."cadenero_members"."id" = 1167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (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)   (17.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (30.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, "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")  (9.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.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')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (9.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:49: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Qb4kerFgaH00Re03PbZvrekamxi46aZaqRFeo1rVXM/gYo7Yh.cAG"], ["updated_at", Wed, 17 Jul 2013 22:49: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", 944], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["user_id", 1168]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GqMZ1S3ZDaqWCm5zGdKD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 944, "user_id" = 1168, "created_at" = '2013-07-17 22:49:05.451830', "updated_at" = '2013-07-17 22:49:05.451830', "auth_token" = 'GqMZ1S3ZDaqWCm5zGdKD' WHERE "public"."cadenero_members"."id" = 1168  (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" = 1168 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1168 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1168 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1168 Completed 201 Created in 166ms (Views: 6.6ms | 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/1168" for 127.0.0.1 at 2013-07-17 17:49:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1168"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 944 AND "public"."cadenero_users"."id" = 1168 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1168 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1168 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1168 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1168 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.7ms)  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) 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", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$zk94sJPC1JwQBtPaer3d5.hlaNoDTy.b4xxCOKAT.wlCeYCU8ZE3a"], ["updated_at", Wed, 17 Jul 2013 22:49: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" = 'test16' 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", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 1169], ["subdomain", "test16"], ["updated_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uVtzfPFb3BpKwcyJqBto' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 1169, "created_at" = '2013-07-17 22:49:05.750250', "updated_at" = '2013-07-17 22:49:05.750250', "authentication_token" = 'uVtzfPFb3BpKwcyJqBto' WHERE "public"."cadenero_accounts"."id" = 945  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) 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", 945], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["user_id", 1169]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZGhWiPzsPTSzCsQHnwLf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 945, "user_id" = 1169, "created_at" = '2013-07-17 22:49:05.758527', "updated_at" = '2013-07-17 22:49:05.758527', "auth_token" = 'ZGhWiPzsPTSzCsQHnwLf' WHERE "public"."cadenero_members"."id" = 1169  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.0ms) CREATE SCHEMA "test16"  (11.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)   (10.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")  (20.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) 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.7ms) 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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:49: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 (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1  (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", Wed, 17 Jul 2013 22:49:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Z3mPjUKlaJFaDbSiy.7UFeC2r.j7IIv.DdfYjO2KQw.jpeLdBFrfu"], ["updated_at", Wed, 17 Jul 2013 22:49: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", 945], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["user_id", 1170]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GeX9xbq6EDVzixBascUa' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 945, "user_id" = 1170, "created_at" = '2013-07-17 22:49:06.003360', "updated_at" = '2013-07-17 22:49:06.003360', "auth_token" = 'GeX9xbq6EDVzixBascUa' WHERE "public"."cadenero_members"."id" = 1170  (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" = 1170 LIMIT 1 Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1170 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1170 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1170 Completed 201 Created in 137ms (Views: 6.1ms | ActiveRecord: 12.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/1170" for 127.0.0.1 at 2013-07-17 17:49:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1170"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (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" = 945 AND "public"."cadenero_users"."id" = 1170 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1170 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1170 Cadenero::V1::Account Load (10.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1170 Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1170 Completed 200 OK in 30ms (Views: 7.4ms | ActiveRecord: 18.9ms) 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 (5.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' 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", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 1170], ["subdomain", "test17"], ["updated_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00]] Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TpePiZeQ5ViscbAycxe3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 1170, "created_at" = '2013-07-17 22:49:06.061678', "updated_at" = '2013-07-17 22:49:06.061678', "authentication_token" = 'TpePiZeQ5ViscbAycxe3' WHERE "public"."cadenero_accounts"."id" = 946  (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", 946], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["user_id", 1170]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qDu4rdeGYHqAkkKrq9cJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 946, "user_id" = 1170, "created_at" = '2013-07-17 22:49:06.069795', "updated_at" = '2013-07-17 22:49:06.069795', "auth_token" = 'qDu4rdeGYHqAkkKrq9cJ' WHERE "public"."cadenero_members"."id" = 1171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (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.1ms) 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, "auth_token" character varying(255))  (6.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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')  (6.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:49:06 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$48WPuEfD.SY0EI31zyGtqeIGPD3VsZF1wgdOoTOKjYon35GPk5PNq"], ["updated_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00]] 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", 946], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:06 UTC +00:00], ["user_id", 1171]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VLvLLRGvzCQphNudhmPj' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 946, "user_id" = 1171, "created_at" = '2013-07-17 22:49:06.310883', "updated_at" = '2013-07-17 22:49:06.310883', "auth_token" = 'VLvLLRGvzCQphNudhmPj' WHERE "public"."cadenero_members"."id" = 1172  (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" = 1171 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1171 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1171 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" = 1171 Completed 201 Created in 146ms (Views: 8.9ms | 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/1171" for 127.0.0.1 at 2013-07-17 17:49:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1171"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 946 AND "public"."cadenero_users"."id" = 1171 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1171 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1171 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1171 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" = 1171 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.7ms) Started GET "/v1/users/1170" for 127.0.0.1 at 2013-07-17 17:49:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1170"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 945 AND "public"."cadenero_users"."id" = 1170 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1170 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1170 Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1170 Cadenero::V1::Account Load (6.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" = 1170 Completed 200 OK in 33ms (Views: 14.5ms | ActiveRecord: 10.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 17:49:06 -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" = 'test16' 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" = 945 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1170 LIMIT 1 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1170 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1170 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" = 1170 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1169 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1169 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1169 Completed 200 OK in 20ms (Views: 13.9ms | ActiveRecord: 4.5ms)  (6.9ms) ROLLBACK Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (2.1ms) BEGIN  (3.7ms) SAVEPOINT active_record_1 SQL (22.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$A74dzar6o3Osw1YQ3i3f/.Ur..djR8A3wUl5HbCQP4ckqQJyvOhGi"], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1172], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QCSygorop3qSC8mHqrVS' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1172, "created_at" = '2013-07-17 22:49:56.334760', "updated_at" = '2013-07-17 22:49:56.334760', "authentication_token" = 'QCSygorop3qSC8mHqrVS' WHERE "public"."cadenero_accounts"."id" = 947  (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", 947], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["user_id", 1172]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TsxE5xChaf1XxNDqKHpb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 947, "user_id" = 1172, "created_at" = '2013-07-17 22:49:56.440588', "updated_at" = '2013-07-17 22:49:56.440588', "auth_token" = 'TsxE5xChaf1XxNDqKHpb' WHERE "public"."cadenero_members"."id" = 1173  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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)  (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.7ms) SELECT version FROM "schema_migrations"  (5.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/users" for 127.0.0.1 at 2013-07-17 17:49: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.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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NJrLIimmWGd9I0b.7lluJOeMlibEZ3cWs.D7hzZnnPxPo2FNjBsm6"], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 947], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["user_id", 1173]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4NcQeysq8uNKyBnYfXFX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 947, "user_id" = 1173, "created_at" = '2013-07-17 22:49:56.660203', "updated_at" = '2013-07-17 22:49:56.660203', "auth_token" = '4NcQeysq8uNKyBnYfXFX' WHERE "public"."cadenero_members"."id" = 1174  (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" = 1173 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1173 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1173 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" = 1173 Completed 201 Created in 190ms (Views: 77.0ms | 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/1173" for 127.0.0.1 at 2013-07-17 17:49:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1173"} 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" = 947 AND "public"."cadenero_users"."id" = 1173 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1173 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1173 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1173 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" = 1173 Completed 200 OK in 15ms (Views: 5.9ms | ActiveRecord: 1.6ms)  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$sFfp0Zl86b3mzoJOq5vK2eSUa5iHng0MX7VYIamlYuV7gdqMBirTG"], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1174], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nqC3yU881xNm8HG4dWa6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1174, "created_at" = '2013-07-17 22:49:56.895375', "updated_at" = '2013-07-17 22:49:56.895375', "authentication_token" = 'nqC3yU881xNm8HG4dWa6' WHERE "public"."cadenero_accounts"."id" = 948  (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", 948], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:56 UTC +00:00], ["user_id", 1174]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AqzsMNBhz8M5uPxyvsTF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 948, "user_id" = 1174, "created_at" = '2013-07-17 22:49:56.900926', "updated_at" = '2013-07-17 22:49:56.900926', "auth_token" = 'AqzsMNBhz8M5uPxyvsTF' WHERE "public"."cadenero_members"."id" = 1175  (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")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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)  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:49: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" = 'test2' 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", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NV5CFi3FiUCBeWMvTxPl7O3R/nYQLIfIztb9/k.rRDE8y3sgQeCXq"], ["updated_at", Wed, 17 Jul 2013 22:49:57 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", 948], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["user_id", 1175]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ndLGXkurUxZZTTfxCeL9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 948, "user_id" = 1175, "created_at" = '2013-07-17 22:49:57.063317', "updated_at" = '2013-07-17 22:49:57.063317', "auth_token" = 'ndLGXkurUxZZTTfxCeL9' WHERE "public"."cadenero_members"."id" = 1176  (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" = 1175 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1175 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1175 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1175 Completed 201 Created in 116ms (Views: 5.8ms | 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/1175" for 127.0.0.1 at 2013-07-17 17:49:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1175"} 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" = 948 AND "public"."cadenero_users"."id" = 1175 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1175 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1175 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1175 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" = 1175 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@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", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1175], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'inTf2FskKhaFeUF41QEz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1175, "created_at" = '2013-07-17 22:49:57.094343', "updated_at" = '2013-07-17 22:49:57.094343', "authentication_token" = 'inTf2FskKhaFeUF41QEz' WHERE "public"."cadenero_accounts"."id" = 949  (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", 949], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["user_id", 1175]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TqYKHAth16yL1SXGbDey' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 949, "user_id" = 1175, "created_at" = '2013-07-17 22:49:57.104353', "updated_at" = '2013-07-17 22:49:57.104353', "auth_token" = 'TqYKHAth16yL1SXGbDey' WHERE "public"."cadenero_members"."id" = 1177  (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")  (2.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, "auth_token" character varying(255))  (0.7ms) 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")  (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:49:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$weW/Ht7b8P8Qx0hzljkid.QH9GnUnly3QqHzxDZWBDUO4jJQ8OBne"], ["updated_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 949], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["user_id", 1176]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gc46qoLq2NvwW3uvEVGQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 949, "user_id" = 1176, "created_at" = '2013-07-17 22:49:57.268627', "updated_at" = '2013-07-17 22:49:57.268627', "auth_token" = 'Gc46qoLq2NvwW3uvEVGQ' WHERE "public"."cadenero_members"."id" = 1178  (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" = 1176 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1176 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1176 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1176 Completed 201 Created in 113ms (Views: 5.5ms | 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/1176" for 127.0.0.1 at 2013-07-17 17:49:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1176"} 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" = 949 AND "public"."cadenero_users"."id" = 1176 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1176 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1176 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1176 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1176 Completed 200 OK in 17ms (Views: 12.2ms | ActiveRecord: 1.9ms) Started GET "/v1/users/1175" for 127.0.0.1 at 2013-07-17 17:49:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1175"} 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" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 948 AND "public"."cadenero_users"."id" = 1175 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1175 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1175 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1175 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1175 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 17:49:57 -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" = 948 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1175 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1175 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1175 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" = 1175 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1174 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1174 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1174 Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 4.5ms)  (9.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (6.3ms) SAVEPOINT active_record_1 SQL (10.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", Wed, 17 Jul 2013 22:49:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:49:57 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" = 't8VAdhh54SvrfU3f6ZsY' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-17 22:49:57.534918', "updated_at" = '2013-07-17 22:49:57.534918', "auth_token" = 't8VAdhh54SvrfU3f6ZsY' WHERE "public"."cadenero_members"."id" = 1179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.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", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$lDA6BcFZprEd.cP5ZWQQPOJ17RiHDXVBO.u8dhBC/2vRHaMsXwUYe"], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1177], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8ysfzwXezFrWhMzEfxGM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1177, "created_at" = '2013-07-17 22:50:01.023098', "updated_at" = '2013-07-17 22:50:01.023098', "authentication_token" = '8ysfzwXezFrWhMzEfxGM' WHERE "public"."cadenero_accounts"."id" = 950  (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", 950], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["user_id", 1177]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FWFEaxbKSsu8U5ZJLDKu' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 950, "user_id" = 1177, "created_at" = '2013-07-17 22:50:01.029268', "updated_at" = '2013-07-17 22:50:01.029268', "auth_token" = 'FWFEaxbKSsu8U5ZJLDKu' WHERE "public"."cadenero_members"."id" = 1180  (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", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$GVZxwkCKaTdNPL39.UNSf.cG85Ms8ovVJGLyUSMRQDwgtywYZqX7K"], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5XWR.VLX1uzYBMfmCUcpzeQiw3MFyY/1ahLNCXGG3RFk3LRapnv4C"], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["name", "Root"], ["owner_id", 1179], ["subdomain", "www"], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qou2s8ZjUQJjmw6ya6Vx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 1179, "created_at" = '2013-07-17 22:50:01.313835', "updated_at" = '2013-07-17 22:50:01.313835', "authentication_token" = 'qou2s8ZjUQJjmw6ya6Vx' WHERE "public"."cadenero_accounts"."id" = 951  (0.6ms) 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", 951], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:01 UTC +00:00], ["user_id", 1179]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SsfJzqQQumuz7GDf3q2H' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 951, "user_id" = 1179, "created_at" = '2013-07-17 22:50:01.321233', "updated_at" = '2013-07-17 22:50:01.321233', "auth_token" = 'SsfJzqQQumuz7GDf3q2H' WHERE "public"."cadenero_members"."id" = 1181  (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.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.5ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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: 6.1ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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 (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DPYhpbflsV4Zwj5nscbzc.WAPXui3cN73CwsABynmQbMOmQo2gM2G"], ["updated_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["name", "Test Account"], ["owner_id", 1180], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3QuiApQ3wz9NPq9c2AY8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1180, "created_at" = '2013-07-17 22:50:06.390732', "updated_at" = '2013-07-17 22:50:06.390732', "authentication_token" = '3QuiApQ3wz9NPq9c2AY8' WHERE "public"."cadenero_accounts"."id" = 952  (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", 952], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["user_id", 1180]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bcYFCcnQT95XYgRkVXoP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 952, "user_id" = 1180, "created_at" = '2013-07-17 22:50:06.396851', "updated_at" = '2013-07-17 22:50:06.396851', "auth_token" = 'bcYFCcnQT95XYgRkVXoP' WHERE "public"."cadenero_members"."id" = 1182  (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)   (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.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.5ms) 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" = 952 LIMIT 1  (7.8ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:50: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}  (23.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 SQL (25.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ONr4YLllmNk2XRPtJRL75uQONdZqJvyHviyyqB9ng4QM9kTujRI0G"], ["updated_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00]] 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", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["name", "Testy"], ["owner_id", 1181], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Nb37pqq9wny6JLfgnrYu' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1181, "created_at" = '2013-07-17 22:50:06.926899', "updated_at" = '2013-07-17 22:50:06.926899', "authentication_token" = 'Nb37pqq9wny6JLfgnrYu' WHERE "public"."cadenero_accounts"."id" = 953  (2.4ms) RELEASE SAVEPOINT active_record_1  (11.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 953], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:06 UTC +00:00], ["user_id", 1181]] Cadenero::Member Load (65.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Agxqux18SiiKvwThVYx1' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 953, "user_id" = 1181, "created_at" = '2013-07-17 22:50:06.948771', "updated_at" = '2013-07-17 22:50:06.948771', "auth_token" = 'Agxqux18SiiKvwThVYx1' WHERE "public"."cadenero_members"."id" = 1183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) 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)  (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') Cadenero::V1::Account Exists (2.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 953) LIMIT 1 Completed 201 Created in 466ms (Views: 2.0ms | ActiveRecord: 178.2ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.9ms) ROLLBACK  (3.1ms) BEGIN  (7.2ms) COMMIT  (10.0ms) BEGIN  (6.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (67.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$lQDHxKv3ijDY1xOQz8mU9.hbCM6sl62ebHW4fxPL4M0CGwpNynWcm"], ["updated_at", Wed, 17 Jul 2013 22:50:07 UTC +00:00]] SQL (26.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", Wed, 17 Jul 2013 22:50:07 UTC +00:00], ["name", "Testy"], ["owner_id", 1182], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 22:50:07 UTC +00:00]] Cadenero::V1::Account Load (8.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6nxrHKcbTcvJHPMNGqNp' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1182, "created_at" = '2013-07-17 22:50:07.452913', "updated_at" = '2013-07-17 22:50:07.452913', "authentication_token" = '6nxrHKcbTcvJHPMNGqNp' WHERE "public"."cadenero_accounts"."id" = 954  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 17:50: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 (12.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (22.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 196ms (Views: 0.3ms | ActiveRecord: 35.0ms) Cadenero::V1::Account Load (10.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (17.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (5.0ms) ROLLBACK  (3.0ms) BEGIN  (0.9ms) COMMIT  (3.0ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (11.1ms) 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", Wed, 17 Jul 2013 22:50:07 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$BiMZNQG0kVy4WhpfZh5VD.wFhLNxl/wjlFU7M2eG0I4QLUqsJC0jq"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = '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", Wed, 17 Jul 2013 22:50:07 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1183], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 22:50:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PebNaqMo2Npbz7fxouge' LIMIT 1  (13.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1183, "created_at" = '2013-07-17 22:50:07.957963', "updated_at" = '2013-07-17 22:50:07.957963', "authentication_token" = 'PebNaqMo2Npbz7fxouge' WHERE "public"."cadenero_accounts"."id" = 955  (13.5ms) 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", 955], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:07 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:07 UTC +00:00], ["user_id", 1183]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pxWu4YxFBDYzGyFbNUGb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 955, "user_id" = 1183, "created_at" = '2013-07-17 22:50:07.991726', "updated_at" = '2013-07-17 22:50:07.991726', "auth_token" = 'pxWu4YxFBDYzGyFbNUGb' WHERE "public"."cadenero_members"."id" = 1184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (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))   (7.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (3.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:08 -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 ('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" = 955 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1183 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1183 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1183 Cadenero::V1::Account Load (12.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" = 1183 Completed 201 Created in 221ms (Views: 6.0ms | ActiveRecord: 15.8ms) Cadenero::V1::Account Load (8.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (11.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 955 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1183 LIMIT 1 Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 8.1ms)  (14.3ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (12.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", Wed, 17 Jul 2013 22:50:08 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$CTEs2Y3yFqP9IDVQkB5cgeVhTkhFwx5t9q3j3SCePJswJ3AswYv8S"], ["updated_at", Wed, 17 Jul 2013 22:50:08 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", Wed, 17 Jul 2013 22:50:08 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1184], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 22:50:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'etqSQWG6syGTgpJdc5vz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1184, "created_at" = '2013-07-17 22:50:08.628077', "updated_at" = '2013-07-17 22:50:08.628077', "authentication_token" = 'etqSQWG6syGTgpJdc5vz' WHERE "public"."cadenero_accounts"."id" = 956  (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", 956], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:08 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:08 UTC +00:00], ["user_id", 1184]] Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yxLLms48e6kS8y5tpVkQ' LIMIT 1  (3.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 956, "user_id" = 1184, "created_at" = '2013-07-17 22:50:08.634214', "updated_at" = '2013-07-17 22:50:08.634214', "auth_token" = 'yxLLms48e6kS8y5tpVkQ' WHERE "public"."cadenero_members"."id" = 1185  (16.0ms) RELEASE SAVEPOINT active_record_1  (5.0ms) 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)   (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")  (12.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.4ms) 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")  (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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 956 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1184 LIMIT 1 Cadenero::Member Load (3.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1184 Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1184 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" = 1184 Completed 201 Created in 134ms (Views: 5.8ms | ActiveRecord: 16.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" = 956 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:08 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1184", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1184 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:50:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.2ms) 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", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$UOdCZKs71XLyfcqEB8AjWeORYI8Rz.6O7pp8SMgurdepqCmUL2w0m"], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00]] SQL (12.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", 956], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["user_id", 1185]] Cadenero::Member Load (7.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yyk2ph94JQ7jZXMstk9H' LIMIT 1  (3.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 956, "user_id" = 1185, "created_at" = '2013-07-17 22:50:09.139049', "updated_at" = '2013-07-17 22:50:09.139049', "auth_token" = 'yyk2ph94JQ7jZXMstk9H' WHERE "public"."cadenero_members"."id" = 1186  (10.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (5.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1185 LIMIT 1 Cadenero::Member Load (2.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1185 Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1185 Cadenero::V1::Account Load (5.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" = 1185 Completed 201 Created in 220ms (Views: 6.7ms | ActiveRecord: 49.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/1185" for 127.0.0.1 at 2013-07-17 17:50:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1185"} 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" = 956 AND "public"."cadenero_users"."id" = 1185 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1185 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1185 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1185 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1185 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:09 -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" = 1185 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1185 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1185 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1185 Completed 201 Created in 7ms (Views: 4.7ms | 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.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (25.6ms) 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", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$MqqBL2vgosOnk7y/xFqDZelkdE4l2tOYpHkAs2ngf1YwR0oi2D3xm"], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00]]  (17.6ms) RELEASE SAVEPOINT active_record_1  (0.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", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1186], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oM6wGKZMVTd9QHmnrgiq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1186, "created_at" = '2013-07-17 22:50:09.496626', "updated_at" = '2013-07-17 22:50:09.496626', "authentication_token" = 'oM6wGKZMVTd9QHmnrgiq' WHERE "public"."cadenero_accounts"."id" = 957  (2.8ms) RELEASE SAVEPOINT active_record_1  (2.2ms) 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", 957], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["user_id", 1186]] Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jgHJxFmeA7kGm9guAWj8' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 957, "user_id" = 1186, "created_at" = '2013-07-17 22:50:09.508965', "updated_at" = '2013-07-17 22:50:09.508965', "auth_token" = 'jgHJxFmeA7kGm9guAWj8' WHERE "public"."cadenero_members"."id" = 1187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (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")  (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))  (8.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")  (5.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 17:50:09 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (8.0ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$gv8BECykEusk8lLvgz630eKzoyD5r9RxBNN740ck/fmp/3/xlQ3hS"], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00]] 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", 957], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:09 UTC +00:00], ["user_id", 1187]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xhZHor8smsx2ThisGUzN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 957, "user_id" = 1187, "created_at" = '2013-07-17 22:50:09.757997', "updated_at" = '2013-07-17 22:50:09.757997', "auth_token" = 'xhZHor8smsx2ThisGUzN' WHERE "public"."cadenero_members"."id" = 1188  (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" = 1187 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1187 Cadenero::V1::Account Load (5.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1187 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" = 1187 Completed 201 Created in 159ms (Views: 7.7ms | ActiveRecord: 34.5ms) Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1187" for 127.0.0.1 at 2013-07-17 17:50:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1187"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 957 AND "public"."cadenero_users"."id" = 1187 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1187 LIMIT 1 Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1187 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1187 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1187 Completed 200 OK in 38ms (Views: 7.6ms | ActiveRecord: 26.7ms) Cadenero::User Load (10.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (6.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1187 LIMIT 1 Cadenero::Member Load (4.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1187 Cadenero::V1::Account Load (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1187 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1187 Completed 201 Created in 34ms (Views: 6.3ms | ActiveRecord: 26.3ms) Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (12.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1187 LIMIT 1 Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 12.1ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$N4GugDo8odFmfANCGcAnOuhkb4muWlc87aZcNPpT.eZ0KLjP8vKWm"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1188], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Uzywd4RnCwzEYBodyqjQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1188, "created_at" = '2013-07-17 22:50:10.072681', "updated_at" = '2013-07-17 22:50:10.072681', "authentication_token" = 'Uzywd4RnCwzEYBodyqjQ' WHERE "public"."cadenero_accounts"."id" = 958  (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", 958], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["user_id", 1188]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RxsQAiQiiTJr911aAzhS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 958, "user_id" = 1188, "created_at" = '2013-07-17 22:50:10.077976', "updated_at" = '2013-07-17 22:50:10.077976', "auth_token" = 'RxsQAiQiiTJr911aAzhS' WHERE "public"."cadenero_members"."id" = 1189  (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")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.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)   (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50: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 ('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" = 958 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" = 1188 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1188 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1188 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1188 Completed 201 Created in 156ms (Views: 6.8ms | 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" = 958 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:10 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1188", "default"=>:json} Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1188 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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.2ms | ActiveRecord: 0.0ms)  (15.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (1.3ms) BEGIN  (3.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", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$sqqJiS2NUebupU56afLxse5vKzVQP6eZNkyuKDeSDEC1Tq2kpCxoq"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = 'test9' LIMIT 1 SQL (33.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", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1189], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tC8ZgJq5eoPMziBFtyop' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1189, "created_at" = '2013-07-17 22:50:10.457724', "updated_at" = '2013-07-17 22:50:10.457724', "authentication_token" = 'tC8ZgJq5eoPMziBFtyop' WHERE "public"."cadenero_accounts"."id" = 959  (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", 959], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["user_id", 1189]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xyCLxnQYLhRgQn9W1JXx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 959, "user_id" = 1189, "created_at" = '2013-07-17 22:50:10.497115', "updated_at" = '2013-07-17 22:50:10.497115', "auth_token" = 'xyCLxnQYLhRgQn9W1JXx' WHERE "public"."cadenero_members"."id" = 1190  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (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.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.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")  (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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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-17 17:50: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 (2.1ms) 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" = 959 AND "public"."cadenero_users"."email" = 'user@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  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$A2bBZ/w.x0//6pWaFHnT3udUzP3bnb37rrgFq7deOGDR7cEbqe84G"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1190], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JwvxBCkMFVvYh7N1QYrL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1190, "created_at" = '2013-07-17 22:50:10.712729', "updated_at" = '2013-07-17 22:50:10.712729', "authentication_token" = 'JwvxBCkMFVvYh7N1QYrL' WHERE "public"."cadenero_accounts"."id" = 960  (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", 960], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["user_id", 1190]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YzDMbKbmqx4JC3ugECMZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 960, "user_id" = 1190, "created_at" = '2013-07-17 22:50:10.718403', "updated_at" = '2013-07-17 22:50:10.718403', "auth_token" = 'YzDMbKbmqx4JC3ugECMZ' WHERE "public"."cadenero_members"."id" = 1191  (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)  (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.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (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)  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 17:50:10 -0500 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$pt9hqxXBEgMEcWbj5w7s4uw3JOtrBhCo4kYCFTFTm3pJEyaNg6Cqe"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1191], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DbdMzncNJpgy3qyzKP7b' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1191, "created_at" = '2013-07-17 22:50:10.907944', "updated_at" = '2013-07-17 22:50:10.907944', "authentication_token" = 'DbdMzncNJpgy3qyzKP7b' WHERE "public"."cadenero_accounts"."id" = 961  (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", 961], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:10 UTC +00:00], ["user_id", 1191]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DgJ6KPtewsRHENKpua59' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 961, "user_id" = 1191, "created_at" = '2013-07-17 22:50:10.913517', "updated_at" = '2013-07-17 22:50:10.913517', "auth_token" = 'DgJ6KPtewsRHENKpua59' WHERE "public"."cadenero_members"."id" = 1192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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)   (0.8ms) 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.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))  (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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-17 17:50: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 ('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" = 961 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$Kg2TQS1pfZNeJbLkxCKeVuwL7SbIG5mLDATu1nEx2TeI/37e7Qwh6"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = '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", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1192], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BAA77DHRGweefA4Dypqv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1192, "created_at" = '2013-07-17 22:50:11.108696', "updated_at" = '2013-07-17 22:50:11.108696', "authentication_token" = 'BAA77DHRGweefA4Dypqv' WHERE "public"."cadenero_accounts"."id" = 962  (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", 962], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["user_id", 1192]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nAPbmAyqkVir8ggEynfp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 962, "user_id" = 1192, "created_at" = '2013-07-17 22:50:11.114943', "updated_at" = '2013-07-17 22:50:11.114943', "auth_token" = 'nAPbmAyqkVir8ggEynfp' WHERE "public"."cadenero_members"."id" = 1193  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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))   (2.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.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$NEBan2nn7peSTYBtUO31AOr1ctKjW1whv7VLsWTd1Z3LxVgGkOLNa"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1193], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'spsWtha4cPez6Rbu7oki' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1193, "created_at" = '2013-07-17 22:50:11.269331', "updated_at" = '2013-07-17 22:50:11.269331', "authentication_token" = 'spsWtha4cPez6Rbu7oki' WHERE "public"."cadenero_accounts"."id" = 963  (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", 963], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["user_id", 1193]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bVuaMQXmYU7apa5ruUGQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 963, "user_id" = 1193, "created_at" = '2013-07-17 22:50:11.275512', "updated_at" = '2013-07-17 22:50:11.275512', "auth_token" = 'bVuaMQXmYU7apa5ruUGQ' WHERE "public"."cadenero_members"."id" = 1194  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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-17 17:50:11 -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 ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 962 AND "public"."cadenero_users"."email" = 'user13@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$/LA10gfzsSsz5BZbiVk1AORrVSrHTY7e5kY4V60ma8eCS8MHzMxfy"], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1194], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sCbAsq3wsNatLcFhndtZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 1194, "created_at" = '2013-07-17 22:50:11.480561', "updated_at" = '2013-07-17 22:50:11.480561', "authentication_token" = 'sCbAsq3wsNatLcFhndtZ' WHERE "public"."cadenero_accounts"."id" = 964  (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", 964], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["user_id", 1194]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mc8goBBvUChiVYW3ErvS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 964, "user_id" = 1194, "created_at" = '2013-07-17 22:50:11.486295', "updated_at" = '2013-07-17 22:50:11.486295', "auth_token" = 'mc8goBBvUChiVYW3ErvS' WHERE "public"."cadenero_members"."id" = 1195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (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" ("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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1194 Started GET "/v1?auth_token[]=mc8goBBvUChiVYW3ErvS" for 127.0.0.1 at 2013-07-17 17:50:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mc8goBBvUChiVYW3ErvS"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 964 AND "public"."cadenero_members"."auth_token" IN ('mc8goBBvUChiVYW3ErvS') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1194 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1194 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$jzcqKcln6qCTpLTUXr2rSeFnaJyX80cKdrlVwgnYHmhP/grqFIi1q"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = 'test15' 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", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 1195], ["subdomain", "test15"], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1qhfJgwLcWbsG7WUK6K1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 1195, "created_at" = '2013-07-17 22:50:11.676350', "updated_at" = '2013-07-17 22:50:11.676350', "authentication_token" = '1qhfJgwLcWbsG7WUK6K1' WHERE "public"."cadenero_accounts"."id" = 965  (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", 965], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["user_id", 1195]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '42nX7UzkhxvWpQFS8ysh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 965, "user_id" = 1195, "created_at" = '2013-07-17 22:50:11.681854', "updated_at" = '2013-07-17 22:50:11.681854', "auth_token" = '42nX7UzkhxvWpQFS8ysh' WHERE "public"."cadenero_members"."id" = 1196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$MVdzV7.THIwale/OFhjXLunfxhtYtr26S4KCYf38IaZeBnDC9KuHq"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = 'test16' 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", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 1196], ["subdomain", "test16"], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7itohhM9rL3uJTxkND8B' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 1196, "created_at" = '2013-07-17 22:50:11.831783', "updated_at" = '2013-07-17 22:50:11.831783', "authentication_token" = '7itohhM9rL3uJTxkND8B' WHERE "public"."cadenero_accounts"."id" = 966  (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", 966], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:11 UTC +00:00], ["user_id", 1196]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bE1BhZJBn5xf7dHhuTty' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 966, "user_id" = 1196, "created_at" = '2013-07-17 22:50:11.836990', "updated_at" = '2013-07-17 22:50:11.836990', "auth_token" = 'bE1BhZJBn5xf7dHhuTty' WHERE "public"."cadenero_members"."id" = 1197  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (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")  (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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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) Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1196 Started GET "/v1?auth_token[]=bE1BhZJBn5xf7dHhuTty" for 127.0.0.1 at 2013-07-17 17:50:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["bE1BhZJBn5xf7dHhuTty"], "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 965 AND "public"."cadenero_members"."auth_token" IN ('bE1BhZJBn5xf7dHhuTty') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.3ms)  (8.8ms) ROLLBACK  (0.9ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$6xtKpKOqdS14bCkCn.atBeftMSEUC1mmXlIwT/D7/4VSyDctL9CjO"], ["updated_at", Wed, 17 Jul 2013 22:50: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" = 'test17' 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", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 1197], ["subdomain", "test17"], ["updated_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pAoR5ySxv5MStzrqgVnh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 1197, "created_at" = '2013-07-17 22:50:12.032725', "updated_at" = '2013-07-17 22:50:12.032725', "authentication_token" = 'pAoR5ySxv5MStzrqgVnh' WHERE "public"."cadenero_accounts"."id" = 967  (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", 967], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["user_id", 1197]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mu6bdWXR95gQ8GkfUwYm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 967, "user_id" = 1197, "created_at" = '2013-07-17 22:50:12.038097', "updated_at" = '2013-07-17 22:50:12.038097', "auth_token" = 'mu6bdWXR95gQ8GkfUwYm' WHERE "public"."cadenero_members"."id" = 1198  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (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")  (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))  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 17:50: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-17 17:50: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" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$yfVhnzSDzkI7sHDT3GIBhOtB4qeOu0XDIqfYGM.dk/x7PRd4zLEeK"], ["updated_at", Wed, 17 Jul 2013 22:50:12 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", 967], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 22:50:12 UTC +00:00], ["user_id", 1198]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pQQCjhEvCJDriycgU11U' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 967, "user_id" = 1198, "created_at" = '2013-07-17 22:50:12.199925', "updated_at" = '2013-07-17 22:50:12.199925', "auth_token" = 'pQQCjhEvCJDriycgU11U' WHERE "public"."cadenero_members"."id" = 1199  (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" = 1198 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1198 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1198 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1198 Completed 201 Created in 113ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/1198" for 127.0.0.1 at 2013-07-17 17:50:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"1198"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 967 AND "public"."cadenero_users"."id" = 1198 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1198 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1198 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1198 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1198 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1197 Started GET "/v1?auth_token[]=mu6bdWXR95gQ8GkfUwYm" for 127.0.0.1 at 2013-07-17 17:50:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mu6bdWXR95gQ8GkfUwYm"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 967 AND "public"."cadenero_members"."auth_token" IN ('mu6bdWXR95gQ8GkfUwYm') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1197 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1197 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1198 Started GET "/v1?auth_token[]=pQQCjhEvCJDriycgU11U" for 127.0.0.1 at 2013-07-17 17:50:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["pQQCjhEvCJDriycgU11U"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 967 AND "public"."cadenero_members"."auth_token" IN ('pQQCjhEvCJDriycgU11U') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1198 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1198 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (5.0ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (6.6ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (8.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 14ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (2.0ms) ROLLBACK  (18.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.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", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$UUvF6YvXiJdLZtk/DjNIk.97r9IlOUeRNltr5HaCJxyWAS/BljKOe"], ["updated_at", Wed, 17 Jul 2013 23:20:57 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" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1199], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 968  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$5MmOd2S7zfw8Taec4z7Qbu8I5l87bhmrhxGtKDA6IIkB2hd9GSWpK"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1200], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 969  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$5k.93fyjQ7ERKK/VRE0nEeeotJmDZmeERq44xbRDRJLsk0GXvPDoK"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1201], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 970  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$QyqG0dARw5BweS5vBhjwTerVEqVmtgjC9pW/vAo25Bwq70/wPLeVy"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1202], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 971  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$UC.AFPI/45mKwmvHLC.3Bu7A.Fz95aBv3thdlChVk7617YUCnrpFW"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:57 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1203], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:20:57 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 972  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$tLyhGyQD6fcMY703wqWty.cgUiIFg9CSv6cM0/DUFa0bWjEmJ1tCa"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1204], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]] Cadenero::Member Load (5.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 973  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$lI22BRuhWGDIrDa4u9iL4ufxWp2QwvB67DTxsV5apvI92x2A9K7U."], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1205], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 974  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$59M8K8kiDbb/XFIAWW4kpu3xoBRyHJQVK.t4HM5uwMStxPXSQBSfe"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1206], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 975  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$tWWOsbPzc93.f7SDbvPvgeA72McMrjPV3K0V.fuSfi67lN7LvOnlG"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1207], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 976  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$tiN.jt1BNJ1njUIjgaEElu/Lb.oSWJV42OvvV0gJ.BWwkO8PGSh9m"], ["updated_at", Wed, 17 Jul 2013 23:20: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", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1208], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 977  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$JpJkKXTFsEevcGNjbbgQ9uE1xAPe5wIY2oDOO5.xUFTomHfRnD9Fa"], ["updated_at", Wed, 17 Jul 2013 23:20: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1209], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:20:58 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 978  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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 (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:21:01 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$f13eaevjlIFCT3WGspRvremckDU0s9OHhEPceOvtVrGv2FxrJAF1e"], ["updated_at", Wed, 17 Jul 2013 23:21:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:21:01 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1210], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:21:01 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 979  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) COMMIT  (2.4ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3J5t8Z.ZAJM0cUSEC.KLkei2C/H4XYUDJitfUmt2/iURGAA5KsHyG"], ["updated_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00], ["name", "Testy"], ["owner_id", 1211], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 980  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:21:06 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$yIG9iq1NxQSRg.lqm8J6L.8EfAUhC.cV4G1Xr6yA6D0FM01fR1zj6"], ["updated_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00], ["name", "Testy"], ["owner_id", 1212], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 981  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 108ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wbmE7Pfe0eS01.Fi6HxzPutpD/xtpusJYQNOHqMkNJsswE48SG/O2"], ["updated_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00], ["name", "Test Account"], ["owner_id", 1213], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:21:06 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 982  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 23:21:07 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Exmrk0qmGl84B.w6KJU.PutyxWUJJMsEC6l0i/qSBX79Pyl2nB2we"], ["updated_at", Wed, 17 Jul 2013 23:21:07 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" = 'test13' 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", Wed, 17 Jul 2013 23:21:07 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1214], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:21:07 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 983  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:21:07 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$nn3ilpBCCyd.Zvpeg.yGJu.jqGHNfS6XII8x67KR0VCOhDhtffACe"], ["updated_at", Wed, 17 Jul 2013 23:21:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:21:07 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1215], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:21:07 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 984  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (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" = 101 Completed 200 OK in 34ms (Views: 31.4ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (1.6ms) 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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:26:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$YzAavrhoy/lOKaUiycGI6edSpimbpz3y5VeoqomuEY2OrhL0VbG9i"], ["updated_at", Wed, 17 Jul 2013 23:26:52 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 (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", Wed, 17 Jul 2013 23:26:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1216], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:26:52 UTC +00:00]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 985  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:26:56 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:26:56 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:26: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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$NIpqSlkTySekRbwqm3WtHeCuyUROtYEjDgxvXn0lO.DLj6XlHrg8O"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]] 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", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["name", "Testy"], ["owner_id", 1217], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 986  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 114ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/9iMmdlBWRo9XrWQSHsquuoE.eM1ChkrKqmJPV2/Vf0yYN6V/ikM2"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["name", "Testy"], ["owner_id", 1218], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 987  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.2ms) 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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$QvY6rHyccq5nAqaeNVuf1.WAWSeYnVy4vsPasfhp6UcanQnYsY4Iy"], ["updated_at", Wed, 17 Jul 2013 23:26:57 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", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["name", "Test Account"], ["owner_id", 1219], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 988  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$QMejYrrIf0jAznNxOMZlK.iKhPcm/f9xv6NJ1AIaMdEbbTP2DGsD2"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:26:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1220], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:26:57 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 989  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:26:58 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$nN47t.ZfsnXMF0sGDQ9nkOHF5S5yQmAtFOc6GWZq5Gbv9rn1Ft0Bm"], ["updated_at", Wed, 17 Jul 2013 23:26:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:26:58 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1221], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:26:58 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 990  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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  (4.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (13.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 67ms (Views: 52.3ms | ActiveRecord: 14.2ms)  (11.3ms) ROLLBACK  (5.0ms) BEGIN  (4.3ms) COMMIT  (1.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (4.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 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 (18.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 58ms (Views: 33.7ms | ActiveRecord: 24.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.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", Wed, 17 Jul 2013 23:26:59 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$6XtdsTYyoTovPazqKghTL.fv4pyJalhru.upRVRTQ5jpbteXaYNnq"], ["updated_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1222], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 991  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.0ms) 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", Wed, 17 Jul 2013 23:26:59 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$RmMoXoAPrUU53cJFvl64fuTgDFSw/rqDQw49BSmcP4nBcsFojKU5W"], ["updated_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.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 (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", Wed, 17 Jul 2013 23:26:59 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1223], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 992  (6.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$/x2MOeS53ZyMW.ocNpVHpOc7xcYwJwNYGPYCFGV9L68RaGTVJk0Ca"], ["updated_at", Wed, 17 Jul 2013 23:26: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" = '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", Wed, 17 Jul 2013 23:26:59 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1224], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:26:59 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 993  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$BOALXhH93VMYnF//vmpmk.WNTy7Ygbo.cALFV3GndGi034s5F.0li"], ["updated_at", Wed, 17 Jul 2013 23: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 (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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1225], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 994  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (6.8ms) BEGIN  (1.4ms) COMMIT  (1.5ms) BEGIN  (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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$2tIW2QJjjQZfKY.pvhH8DOUHu1ZzRzMWpvJvXmPdCOHAs7KbJDAD."], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1226], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 995  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$BAev/Lj740hNarvJTE5PZe4gllz2iYEnlooWkyLA/0raHfhli/UD."], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (2.2ms) 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 (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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1227], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 996  (10.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$067jZzA089tLV5QV3kC3zugmtCWmiiLs/5g9qvIjuj6zD8kFgiV4S"], ["updated_at", Wed, 17 Jul 2013 23: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" = '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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1228], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 997  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$RbicqngeyM4ZLdnQUdOoouObHUVMPYp6DDJ57hVpwuYzHMrrJGKtK"], ["updated_at", Wed, 17 Jul 2013 23: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1229], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 998  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$t0UFvNHmneHDMvKIj/gCs.xGWlBbCmyLWNUf2AaEZQ.h.ckzST25a"], ["updated_at", Wed, 17 Jul 2013 23: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" = '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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1230], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 999  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$X1zjahnX5Jg24.CA5w4NL.lymRa.nHOI9DVb18Vbi5nmS9uEJ5Fy6"], ["updated_at", Wed, 17 Jul 2013 23: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" = 'test13' 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", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1231], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1000  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$CfN2H/GkJGtJmii2oWnQI.Iv2hLte4KuPJeLVmbaMKQTyqY6x2jS2"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1232], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:27:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1001  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (9.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:28:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$CTECSWvFclc/D97cDX.suuhlUo/tvVOmgWrgHrwI12Xx7dwFu7Tli"], ["updated_at", Wed, 17 Jul 2013 23:28:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:28:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1233], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:28:54 UTC +00:00]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1002  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$R84UBzPKovzSTBxGuGfamuQ0dRafdqPgj4RNa/Sl4/YIQ7F9g7N3e"], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1234], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1003  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$AjKi0m0c9KvbFHHF5qWL0.GCVNNGlLsyCmdzzV3u3zgO7sc16BzKy"], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00]] SQL (0.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", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1235], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1004  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:28:55 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$AMVM9EFYquBn7q3194eZGe1Mxsw/Og9wwwLVnNZqFnYVIaP6lv47q"], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00]] SQL (0.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", Wed, 17 Jul 2013 23:28:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1236], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:28:55 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1005  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 122ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (2.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:03 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Rw/lAIVCvm.jLF/8N447gOHU3mOufFZoNYBdpuNlhiTnHzpAtFnuS"], ["updated_at", Wed, 17 Jul 2013 23:29:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:29:03 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1237], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:29:03 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1006  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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.1ms) BEGIN  (0.1ms) COMMIT  (1.7ms) 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)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (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 39ms (Views: 37.3ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pQGJNTV0PZFTVCzGlboSsufdXQ9eBnZmcrydQJjyrpA76TkXrsuXG"], ["updated_at", Wed, 17 Jul 2013 23:29: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" = '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", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1238], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1007  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$58xdoJEhENQyHynZv.RssObTG33jYHu3Gh.AOGWQJi7HdDjNXeymW"], ["updated_at", Wed, 17 Jul 2013 23:29: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" = '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", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1239], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1008  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bQogaRvV.HE3NAHwVMtX4eHssrJyRnpRpsKqp7oADDLjTwAxHFYjG"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1240], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1009  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$sG0CCzTMeMqK64T0ao/NCeiiCVRJJZpWOeEYs91aIz30BJv.rNrqy"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (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", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1241], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1010  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$mduknBfr.uuPHg/zmShJTergEHizkvVJDgUrgYadUPkiJbmWRFGxK"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1242], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:29:04 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1011  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$PR9sNTQxJKGANWCargAXV.ZDLWTRRVcHtprtCguqr.2yE4nWP3Pn."], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (14.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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1243], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1012  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$w6mhm.O8KBq0sKtD9gb/.ONN3CmumYnx2YNJKg7Uea2PJW4zGlSb2"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1244], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1013  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (2.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$POugn8UekVOijfV9Sh4vneE2fW6dPidWM2QINy7HQj4HC0rO2erMK"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (14.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (5.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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1245], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1014  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$AcvdgRpfHLCjttP/Qd0rW.yrK7039WRj8I.cm4CXdxwBH6kH.Pgxq"], ["updated_at", Wed, 17 Jul 2013 23:29: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" = '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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1246], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]] Cadenero::Member Load (10.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1015  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$UaPUV5.5gUDdEf/NgxYP4.7FwJOAMLN/JrLelqa2F0UTJT6ve8zbK"], ["updated_at", Wed, 17 Jul 2013 23:29: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" = 'test13' 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", Wed, 17 Jul 2013 23:29:05 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1247], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:29:05 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1016  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.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", Wed, 17 Jul 2013 23:29:06 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$cAjcnfa8prlzH.85avKC.OMEYiu0CCj5LzqVSMXhCPL9EzaKxxPUa"], ["updated_at", Wed, 17 Jul 2013 23: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" = 'test14' 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", Wed, 17 Jul 2013 23:29:06 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1248], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:29:06 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1017  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.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 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:29:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$QfzItdFubN0XNDYf/CcuwOxOoEKQL5aXyHF4D.4idUhKivOBWyVxi"], ["updated_at", Wed, 17 Jul 2013 23:29:06 UTC +00:00]] SQL (6.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:29:06 UTC +00:00], ["name", "Test Account"], ["owner_id", 1249], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:29:06 UTC +00:00]] Cadenero::Member Load (3.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1018  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (4.2ms) BEGIN  (10.2ms) COMMIT  (10.1ms) BEGIN Cadenero::V1::Account Exists (8.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (10.1ms) ROLLBACK  (4.3ms) BEGIN  (6.1ms) COMMIT  (6.7ms) BEGIN Cadenero::V1::Account Exists (6.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (36.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", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:31:36 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:31:36 UTC +00:00], ["user_id", 101]]  (2.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.6ms) COMMIT  (2.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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 109ms (Views: 106.2ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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", Wed, 17 Jul 2013 23:31:40 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Z4UZy/4MJBpReytjTAp8Cu9UahOubW8iF9z00x67Z4EeT5yMLtuhS"], ["updated_at", Wed, 17 Jul 2013 23:31:40 UTC +00:00]]  (0.1ms) 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 (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", Wed, 17 Jul 2013 23:31:40 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1250], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:31:40 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1019  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$3DV.0okZjJCxX5b33eeshu9p0yWXngpf3l2A4FwjPGsFczUq.AyfK"], ["updated_at", Wed, 17 Jul 2013 23:31: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" = '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", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1251], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1020  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8zvxZ44wTXywYf7syRYGI.zdzJ.3miJ3JvkxApSQkRP8Q3WYjbUYK"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1252], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1021  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) 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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ISm/HDJf1xIhWSttcQySY..hIqubEQOMOw8ljCPjtdGl69KG2rjtq"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["name", "Test Account"], ["owner_id", 1253], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1022  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pjR/6uEEe3LeqoaLves1ou/jOEdZ.UR1hqlNa6C7JEpNEAcmntUAS"], ["updated_at", Wed, 17 Jul 2013 23:31:45 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" = '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", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1254], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1023  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$fqUdRFUQG7qQRZKyO42.jOQ5paHehx2L.fhywnlcUduxabdD0Xz3q"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1255], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1024  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$9gTmINT2feAtdZnDIOoqWunlQhn1Hxbw86LCERk00SbKn675MGEla"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:31:45 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1256], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:31:45 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1025  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$RtQpOxhqxXI3UQpUXKKsUuwpDdTsbRmJM05k.6gOUUrlAFXYzYf6W"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1257], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1026  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$NaUWLvNTFuIyABwOzxwgB.n6rUoZzLvENtLFa9Eeh79FV.xDQIs.."], ["updated_at", Wed, 17 Jul 2013 23:31: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1258], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]] Cadenero::Member Load (29.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1027  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.9ms) 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", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$fhfkMnyE5GpPic/fDmFA/eErpTcasuxulpZZkGePVAViViePIOfDq"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (4.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1259], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1028  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.7ms) 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", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$dHeYVs6NfIVlY4PggVPwGOaW8s8Uprdn9g8.Ls2b7E2uLjsjw0hyS"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (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" = 'test10' 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", Wed, 17 Jul 2013 23:31:46 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1260], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:31:46 UTC +00:00]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1029  (1.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.7ms) SAVEPOINT active_record_1 SQL (15.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$hCyyFIGCwk7M9Vq4zcadNOXb9Vc.mX.JabRbXDej2U6JYSrRMo7ye"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1261], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1030  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$dxmKe4q.orEyXJOlBvLkcO4S4TZ7TWuikbrj4GG2/QH7RErh7jPlu"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]]  (1.7ms) 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" = '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", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1262], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1031  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (32.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Rt8zsMxQNlbWVsKxN0nSAuV91GcG1fuRIKtoy.hKN0HKbw5FVqbtS"], ["updated_at", Wed, 17 Jul 2013 23:31: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" = 'test13' 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", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1263], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1032  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$gyMnLK1yydapZbGMohEAmeyFPpcVnYjGFNR2Y8o1u9mGJG99qzVvC"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1264], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1033  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:31: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}  (14.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 (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1Mwct0.G3wzVpmrZceAKJOT39jGLzy0/p5.ZQyiXqsESb0n0iX5dC"], ["updated_at", Wed, 17 Jul 2013 23:31:47 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", Wed, 17 Jul 2013 23:31:47 UTC +00:00], ["name", "Testy"], ["owner_id", 1265], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:31:47 UTC +00:00]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1034  (2.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 187ms  (0.5ms) ROLLBACK  (1.3ms) BEGIN  (3.6ms) COMMIT  (0.1ms) BEGIN  (6.7ms) 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 (8.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:31:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3VNIeTlBtEOlARkAhxFtyu7v1.QdnAcF7HKrCOeV/Ti786AgZg2MS"], ["updated_at", Wed, 17 Jul 2013 23:31:48 UTC +00:00]] 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", Wed, 17 Jul 2013 23:31:48 UTC +00:00], ["name", "Testy"], ["owner_id", 1266], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:31:48 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1035  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (10.1ms) BEGIN  (5.2ms) COMMIT  (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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.2ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (2.4ms) 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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ZEKzZkU4KmeOfXl8U8DBOeAtAPFyntKObBbdB.BP.qtsl9qapKigG"], ["updated_at", Wed, 17 Jul 2013 23:32:43 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" = 'test1' 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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1267], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:32:43 UTC +00:00]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1036  (2.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$1QqSYHPXuTZajSM584XeuOBH94KtqGlNXpaL/ENBdeaPGZIWOwEYK"], ["updated_at", Wed, 17 Jul 2013 23:32: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 (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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1268], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:32:43 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1037  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$VtX5otewK6jYSuv4118DcOOxUrhGL/CjyUzUoFFy9MlPWFwUhGPVi"], ["updated_at", Wed, 17 Jul 2013 23:32: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" = '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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1269], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:32:43 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1038  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$asTLf3WtsCABE5503lKoc.zMXLKZ6flKqG8yjItFWnc3H9hiLv./i"], ["updated_at", Wed, 17 Jul 2013 23:32: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" = '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", Wed, 17 Jul 2013 23:32:43 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1270], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:32:43 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1039  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$6DbPh8mzKfk536I4oBd9YuTNqwJNEm9t9BZiJeb.rj2JIOQ363jLy"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1271], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1040  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$/5tNnpgt3RyJqfS0cBDyOuf5nYjbuTkndFZmWZfK92.la7eUjWNKa"], ["updated_at", Wed, 17 Jul 2013 23:32:44 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", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1272], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1041  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$mhljhlj3JglubaV2bFC3..DrRuC0GwCQSnX9Ob5Qm7lIiCHKR4uGK"], ["updated_at", Wed, 17 Jul 2013 23:32:44 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1273], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1042  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$XxotyN.rFU/xYwYrZ6khW.pIf.fSP3tCzZI35c3RO8i.p05vPyD4C"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1274], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1043  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$DQNyxHb9fR8VSaIItLEECePPpRlMKNDYhfZfwbdwsQXmgjND.hXWS"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1275], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1044  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$RRQ4UFg86.2rEHiwLSteSuASNHZao02M9YoO2/gCVrIYhWo4w8h3e"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1276], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1045  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$R/ctxIlBX88TL/9c4cAps.V22jQxCxm1P08E.P064J3RIoFVTb0Oe"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1277], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1046  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$qZH1DZBVM8A74vJpYSmO3OxYd.QWL5bxeA25GIf8Ks1APap/3u/Rq"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00], ["name", "Test Account"], ["owner_id", 1278], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:32:44 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1047  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:32: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$XTtDRInewmM4s2ULQTSPe.dElMMrXi7I1.VuFQfDFi.l.eua6lgDW"], ["updated_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00], ["name", "Testy"], ["owner_id", 1279], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1048  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 109ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$WMlgscKo8AhYDYGwtBlMNuErWPY9/2tx5bme/btw/WeepVq5YlI0q"], ["updated_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00], ["name", "Testy"], ["owner_id", 1280], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:32:45 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1049  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.6ms) 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", Wed, 17 Jul 2013 23:32:49 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$zDOKlJ/a8QZufJ1PypiQNe2bxRwf6bPZp/pXU9Y8k7veaXEHCEysa"], ["updated_at", Wed, 17 Jul 2013 23:32: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" = 'test12' 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", Wed, 17 Jul 2013 23:32:49 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1281], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:32:49 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1050  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:32:53 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:32:53 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:32:54 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$nGg02RW9yIwG5BET7UQ9/.D7E/P1xYyBI5uQZbbbKL/PIIftfnzB."], ["updated_at", Wed, 17 Jul 2013 23:32:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Wed, 17 Jul 2013 23:32:54 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1282], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:32:54 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1051  (1.8ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:32:54 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$QGrbBMUCr.X9Gr2K3lvM0eqVpX5TAbJFI0WCb6Wx1tlNuM6/wNAn."], ["updated_at", Wed, 17 Jul 2013 23:32: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" = 'test14' 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", Wed, 17 Jul 2013 23:32:54 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1283], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:32:54 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1052  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 35ms (Views: 32.4ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.5ms) 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: 6.2ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (3.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (1.1ms) BEGIN  (0.3ms) COMMIT  (0.8ms) 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (10.6ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Wed, 17 Jul 2013 23:33:36 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Ni2NfEFvyHVBjrFEsIBzdujzhOoWVT3HV2.WKtdRxUczrQyVbiXla"], ["updated_at", Wed, 17 Jul 2013 23:33:36 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 (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", Wed, 17 Jul 2013 23:33:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1284], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:33:36 UTC +00:00]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1053  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$l.GbYksaWNYZ/x.AWN2EU.SsAnvrzr9uFHGtvVMwdZnX7lNSYZ73G"], ["updated_at", Wed, 17 Jul 2013 23:33:40 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:33:40 UTC +00:00], ["name", "Test Account"], ["owner_id", 1285], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:33:40 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1054  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:33:41 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:33:41 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 33ms (Views: 30.8ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (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.3ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:33: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$gVqCHNKxAW0/.l8YqvpozOtHfwITy71CYI/V6GlBM9hb.9ULKoVJm"], ["updated_at", Wed, 17 Jul 2013 23:33:41 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:33:41 UTC +00:00], ["name", "Testy"], ["owner_id", 1286], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:33:41 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1055  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 160ms  (0.5ms) ROLLBACK  (13.2ms) BEGIN  (0.1ms) COMMIT  (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.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tOLU0zIqxPe2fL7/9zgyAOyn1pamOdwYbxMl75yRmPPHtc4EKvhXO"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["name", "Testy"], ["owner_id", 1287], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1056  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (3.8ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$CVDZ.FOQlytwUtLwKKVqQ.B..n2zhj9QvT/bhOILfqq2Z2zOs8wJG"], ["updated_at", Wed, 17 Jul 2013 23:33: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" = '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", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1288], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1057  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (10.1ms) BEGIN  (3.0ms) COMMIT  (3.8ms) 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", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$uHQcnDDIIW9xJMcZHHMdc.dQhRzBB9m9olxy78JDFpRFw9rWywPjO"], ["updated_at", Wed, 17 Jul 2013 23:33: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" = '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", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1289], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1058  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pROaFwYvFGjnFDojFvntnOTQfAH4dbzdFajPzZ7dpd55Yq6nmQL7K"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test4' LIMIT 1 SQL (13.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", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1290], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]] Cadenero::Member Load (5.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1059  (3.6ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (2.4ms) BEGIN  (4.5ms) COMMIT  (2.0ms) BEGIN  (6.6ms) SAVEPOINT active_record_1 SQL (15.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$4ug3AlgexwsHC/oVzLxU5eLNFF3HwrRk3soYcZ2yarOgVyCdWbChO"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]]  (12.0ms) RELEASE SAVEPOINT active_record_1  (15.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (12.0ms) 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", Wed, 17 Jul 2013 23:33:42 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1291], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:33:42 UTC +00:00]] Cadenero::Member Load (2.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1060  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$KxExTPEKPjrCEbSPMlr7L.ekNbB7fdgJz1hqcnR.Bk0IlDGVGktoa"], ["updated_at", Wed, 17 Jul 2013 23:33: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" = 'test6' LIMIT 1 SQL (11.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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1292], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]] Cadenero::Member Load (10.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1061  (16.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$tPzXKp7pkAj0VlJbVbzxlOdN6xzEeQpZt8vjiBZtX0CdgLqW3PXuW"], ["updated_at", Wed, 17 Jul 2013 23:33: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" = '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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1293], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1062  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (3.6ms) ROLLBACK  (0.8ms) BEGIN  (1.2ms) COMMIT  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$u9COr04HYCIH62Hoe8Sps.RTBl6oepEEY1mMREHeuzHtlaIWqBnuW"], ["updated_at", Wed, 17 Jul 2013 23:33: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" = '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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1294], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1063  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (9.6ms) 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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$pefOjB8vLOy8B4/QyumgX.PMtcuaPFbtxH2L14iaKxIwxn416to42"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]]  (4.9ms) RELEASE SAVEPOINT active_record_1  (10.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (13.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1295], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1064  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (3.4ms) BEGIN  (10.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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$lSWIKWX4ZATCwNyMK7U2LuRKOHXcOO27pkpNUAV/I66BJplP.gVxC"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (9.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) 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", Wed, 17 Jul 2013 23:33:43 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1296], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:33:43 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1065  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1  (3.1ms) ROLLBACK  (1.7ms) BEGIN  (2.0ms) COMMIT  (0.4ms) BEGIN  (2.4ms) 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", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$GFLNtj.UzEMRY6E7aAIMT.z0h1IZwUL7L/jqDp6XrwnF9tamsTRNu"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (10.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (3.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", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1297], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1066  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.9ms) BEGIN  (2.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$rQfrateQhbiYS.JTIQ4/0eLb2XEyDzc5qQrN1k36DhRJG77Oor5/W"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1298], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1067  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Xfpn8.kS9SPToSeybEV1JeGJRc03oD9slvJ8wG.v1wcX3KtzT2e.a"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1299], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1068  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$WwUzoY0CfALowP2qVeIqiuOFFT.COcZ5OxgU/N8AXMymmcWEnHHiu"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_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" = 'test14' 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", Wed, 17 Jul 2013 23:33:44 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1300], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:33:44 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1069  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (1.2ms) BEGIN  (0.2ms) COMMIT  (7.3ms) BEGIN  (2.9ms) 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", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["user_id", 101]]  (2.9ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hLTZI4pQljvhT.RD8//Oq.3FBmp6RO5gvifBjmMQRsowlDTW.lFLy"], ["updated_at", Wed, 17 Jul 2013 23:35: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", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["name", "Test Account"], ["owner_id", 1301], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1070  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (10.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$b1UvQCYLtCZ.Ab.n4aDcR.66N6XLmluf3EJWFOn9cgA3fUMhkDTDa"], ["updated_at", Wed, 17 Jul 2013 23:35:10 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" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1302], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1071  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$vawG3lxVj4.ZQiK8DeOmh..kQbaF0wgTfCbKJAQaPnnvl/Lox6Eu."], ["updated_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 23:35:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1303], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:35:10 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1072  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$qdM3vJWsIk.Zss.NYoJFoOnLQcF6DxT/Fce71gZEteWXFfa9aznE."], ["updated_at", Wed, 17 Jul 2013 23:35: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" = '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", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1304], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1073  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$JuCACoA5yHJ/vF3yKGjoWuK4Jzak8oR1W6ZRlhLPlmONWmyecMQWK"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1305], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1074  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$NiDdaMca7HXGkL2xyTReb.F.vtjdQ5jiyf8mRARXvydxfpNKzJUIG"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1306], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1075  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$E3rcsOpKQOlWx1UXTrOQ4OkCzTd6QduiL/BaR1SOb9TsgLcD/DlRu"], ["updated_at", Wed, 17 Jul 2013 23:35:11 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", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1307], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1076  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$8329qgL1iksB75muVPZMR.mq/sjMWjCbxTDj2pO/rJZq8ZGirV8Ku"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1308], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1077  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$8VQRHWyoghkeOM/oy0Hjz.s0i0uqZYOPffqDqSEJSW.l1eWqGkGxm"], ["updated_at", Wed, 17 Jul 2013 23:35: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" = '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", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1309], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1078  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$FiaftEY9pze3hzKkjTIJ.uaB68hcyQtRmOjneYFOZBEfsbZVAgOtm"], ["updated_at", Wed, 17 Jul 2013 23:35: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" = '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", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1310], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1079  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$mmeCuPYLZgquCL.i9XGOtuV88ECPQ5iR7/mHTH8ZhadD1UtkNbPy."], ["updated_at", Wed, 17 Jul 2013 23:35:11 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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1311], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:35:11 UTC +00:00]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1080  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:12 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$u/5Dw/UrW5GH.SfKgg0VW.GzBNat3MbmKF4qi8O4KxAfipsalZYEa"], ["updated_at", Wed, 17 Jul 2013 23:35: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:12 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1312], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:35:12 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1081  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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 (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:15 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$0Y6V.ZAKHS.5nAJ5QEAGLe6RvzuuervrT.OIUUmWJsC//HZsdcmbi"], ["updated_at", Wed, 17 Jul 2013 23:35: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" = '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", Wed, 17 Jul 2013 23:35:15 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1313], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:35:15 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1082  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:35:19 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:19 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$eW3rIPN1k5Gag3WZuXIgsubmwP/9QtJQ0WkOmKXynyVtgqdWaaXVi"], ["updated_at", Wed, 17 Jul 2013 23:35:19 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:19 UTC +00:00], ["name", "Testy"], ["owner_id", 1314], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:35:19 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1083  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 108ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$siggtKCj6atmAXS/yIBeQeBc5rNHCZAnB94ROYPpzKQULqE/oUv2C"], ["updated_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1315], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1084  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 34ms (Views: 32.2ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Hq7jX/tJssasGZ23Kz4sQOT9s90WgeqlgCy/qNWEOajJOjy7/TRI2"], ["updated_at", Wed, 17 Jul 2013 23:35: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" = 'test13' 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", Wed, 17 Jul 2013 23:35:20 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1316], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1085  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$ZN1K0i7CeMbBD6pipsjlYurH.M4Mw9y4p2p0Yke2r4kaIx5fofFMy"], ["updated_at", Wed, 17 Jul 2013 23:35: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" = 'test14' 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", Wed, 17 Jul 2013 23:35:20 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1317], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:35:20 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1086  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:17 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$wgSB9IrR.QCDBjFPHyV.L.laJIJUe1JYm2i8KIoitM0yb1ksnCqHG"], ["updated_at", Wed, 17 Jul 2013 23:36:17 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 (13.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", Wed, 17 Jul 2013 23:36:17 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1318], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:36:17 UTC +00:00]] Cadenero::Member Load (7.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1087  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.9ms) BEGIN  (10.1ms) COMMIT  (10.0ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$je15wPjIWvNwsz5R8ZKY2ekAMfjChR931kB3tNLWtULGQKja6Keve"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (9.8ms) 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 (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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1319], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1088  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$i35OjwFPvxQoE/txlb7XWe85BLfCaxJk.43g83aNmm3QrAEP4fo3G"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1320], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1089  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$SdzcleJWWP31RR5LjW1HvO1bEWVEXPX2mgmxyyShx6C3lz/KwBWPG"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1321], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1090  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$M/3H8zygEsLWOQGYYI3Ate9HgJQ6Gvmo201iip6yifRHaHjXctROu"], ["updated_at", Wed, 17 Jul 2013 23:36: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" = '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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1322], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1091  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$GjJVxEFrg8KUVheMlo75neQFfoa1Bq/uvx0kluQuvwp1DYbdpyZKK"], ["updated_at", Wed, 17 Jul 2013 23:36:18 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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1323], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1092  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$e1Oea.pn0wv979zkQJ2fRuhOne9k5laOwZklTQsXtcuIBvG9kalNq"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1324], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1093  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$aAkVNfemuqUXyjqknLr7N.reVmEnmy5iW2Ib9dPmRdrH.O17P1sBS"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1325], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1094  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Wrc7T7qpgtdXvsJcscahqeH2eh9G9sOFI51auL.d4QocreOsF79sy"], ["updated_at", Wed, 17 Jul 2013 23:36:18 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", Wed, 17 Jul 2013 23:36:18 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1326], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:36:18 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1095  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:19 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$HssoX.8uGbmc1h1HQNe42erK.TJyHOzCEGTkO0NWAZiiLLDmCszJS"], ["updated_at", Wed, 17 Jul 2013 23:36:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:36:19 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1327], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:36:19 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1096  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:19 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$T395lzevnIZvdztIxBGfy.Wru28v1eMLhhmab7r9j7PHWKBKwDFkq"], ["updated_at", Wed, 17 Jul 2013 23:36: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:19 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1328], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:36:19 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1097  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (9.3ms) SAVEPOINT active_record_1 SQL (18.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$DU7Ai6gaT5QndLUHP5Z/PO6.Z.IxZ7sGBPDum9uWblPiIoUocftYe"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (13.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", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1329], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]] Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1098  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$bDkveZLiQykjT37uK/moYuKbJeS1imOHuoVc2OnD0WP5rMu2/Dq7e"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1330], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1099  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.8ms) 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", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$BOVHa4JEqOEwDQjgVvUzFevUxRXL5.YUhiDv9oaN8HwNZ7Eqfsn5m"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1331], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1100  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Sly4rXOXbGfNQUKbG3z7IeoMlp4vxHOzvIA2W6Nj36Bf29KgE2YsG"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.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", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1332], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1101  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$/m4xWDXk7QJCBorfekeZ../tcDFDmbg2n2HomwxUupSireB9AnW/2"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1333], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:36:53 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1102  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$OkTD.m04/SBhXre.5viOf.Lh4OH9gai3yezdMozXoX5rZ3.se5JNG"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1334], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1103  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$cbZ3o7crjE3UfUiHHJFmCOtaFWDzFz8Od/5SUJBQLDJMRrK18EA6q"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1335], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1104  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$vuCXQnloUxmAOsSqqL.zFedY7BEexgdNrHJ9OBlv4Dvb4o1oV8FSi"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1336], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1105  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xu9LoH3/tjEqaLJXb0vQb.s7w7k/aTIOW/VX/4gTKQsPr5FkI4Wy2"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1337], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1106  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$kh27TlQEaAskXihJI5/zKOZM.TXpOzAI3Ni9VVkhXQ5YDyBo/YEAG"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1338], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1107  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$fEZ.mbOmXV3xdFsBgzEBxeixGfgcQyKbV/1HUWaHnWpXlMlSBU4mq"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1339], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:36:54 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1108  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (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) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.1ms) BEGIN  (3.5ms) ALTER TABLE "cadenero_accounts" RENAME COLUMN "authentication_token" TO "auth_token"  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (5.2ms) DROP INDEX "index_cadenero_accounts_on_authentication_token"  (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717234244')  (1.9ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (10.0ms) BEGIN  (10.3ms) SAVEPOINT active_record_1 SQL (15.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", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["user_id", 101]]  (7.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (8.9ms) COMMIT  (0.1ms) BEGIN  (0.2ms) 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", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$T354TEY0j5VVXB6O0Fd6vODmBMMUeV8F5b36M5iGTkAYVLJ5jmK76"], ["updated_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00]] SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["name", "Test Account"], ["owner_id", 1340], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 4ms (Views: 3.0ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$78mn0BbRu8WIwLoRPb1do.KAxLOno2gLm0IGuIEeHbcdq9AzqoSCW"], ["updated_at", Wed, 17 Jul 2013 23:46:35 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" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1341], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$rtXep7acNWcmeC3TbfGNHOLp1VD6Oz7TD.XRaW2OLyPaY.69E9yFW"], ["updated_at", Wed, 17 Jul 2013 23:46: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" = 'test2' LIMIT 1 SQL (2.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1342], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:46:35 UTC +00:00]]  (30.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Wed, 17 Jul 2013 23:46:39 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$QDpSequ7eWmBhpeNjBPFDOIXVTUuSsSP3../IPcpTTe.T8Ylyo9ca"], ["updated_at", Wed, 17 Jul 2013 23:46:39 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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:39 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1343], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:46:39 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_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 (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 40ms (Views: 37.2ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:46: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$IErBJWtaKVuj3zBrc3JJbOqvxpi7a1sw8r4qHcwsCx3xR0oPgLBna"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]] SQL (0.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["name", "Testy"], ["owner_id", 1344], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 111ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$f2YCg79CkkosgisP0P9swOAbHZ1XQ9nGmyRBDbn5NqPOKZWpeHVwW"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["name", "Testy"], ["owner_id", 1345], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$xXLfijbMGE/90OgSinmcwurMvUu4l5zArgV1BQVmV5SjgNxN0JZJS"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1346], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$YDbQG9AckB/cWwFtJDKT2uBTnKzO2YuNBTGogJErj5cj6uA1twvce"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1347], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$2rZwb9j89rCphitszsZRvOm5QLN.ffVi9f0CjK1.wqrRIhXmSDKBS"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1348], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kS8jJ/0bOgnPzhliDMDG6uiMCBFfm1g/ukbN/CmS22g3Padq.qLwu"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1349], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:46:44 UTC +00:00]]  (24.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$UnbP564HwIbgCJwiDj2Yee2VsILX9L2V25q/LHLhJqNozpraCJjWC"], ["updated_at", Wed, 17 Jul 2013 23:46: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" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1350], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (2.8ms) BEGIN  (2.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$nMz1VzDmlmz8HIAiQxWamu0lLbaO.whr4ucjsoraNkL17ok6BeW0u"], ["updated_at", Wed, 17 Jul 2013 23:46: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" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1351], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$qiqdzbmpktRooSUttCaJ/.ydwolcdGl.42N4p2kAhTCraq42VOIRS"], ["updated_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (13.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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1352], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (4.0ms) BEGIN  (6.2ms) COMMIT  (0.6ms) BEGIN  (60.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", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$x8N27Oh7S5I.mVdnvHe1ROpGEOp3OIftE5A7JnUA5A3yzSsPuGVny"], ["updated_at", Wed, 17 Jul 2013 23:46: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1353], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:46:45 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) COMMIT  (0.4ms) BEGIN  (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", Wed, 17 Jul 2013 23:46:46 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$y27ZO6ZdhKanHuFEgFVt2Oix6N4eU58xkztasmlSEm.KnbIrChkH2"], ["updated_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00]]  (3.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1354], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.0ms) 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", Wed, 17 Jul 2013 23:46:46 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$crMiyPP4nwHYnnSzlsHHtuA9nan1bwG29gC5oG/z5NZIdwVgmypiq"], ["updated_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00]]  (4.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (6.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1355], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00]]  (4.6ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.1ms) 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", Wed, 17 Jul 2013 23:46:46 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$yStAq6auv.9GUGkESnFsouoz1G0OL3THeqCoiTAEMGeqMqJmjjRXu"], ["updated_at", Wed, 17 Jul 2013 23:46: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" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1356], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:46:46 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (2.3ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) 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", Wed, 17 Jul 2013 23:47:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$qEapJ6GsfWqMgD2CMJTPSev5.WX/cLWGGH7bXNKD.xJDP6vBKqh6q"], ["updated_at", Wed, 17 Jul 2013 23:47: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 (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1357], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$snOdm8RD94V1mvJFW1KkeubxDRJtpfF2lJlz25tdJqwgQ/il0zlbW"], ["updated_at", Wed, 17 Jul 2013 23:47: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 (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1358], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$S.RUwmTHrT5c5gYSuFZGf.mKYc7hSgTyqH/f4VcqJ0DB1vSUWk1L6"], ["updated_at", Wed, 17 Jul 2013 23:47: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" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1359], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$77G63TI358WBg/NLKEZDQ.7AXgeM8B7ocXNk5yV8Fz7.4glfy.75C"], ["updated_at", Wed, 17 Jul 2013 23:47: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1360], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$3OWWtf67R781xW9Er9/aTOZpyA/ZPBaAR131l7DlPlG10zRiTEMJ2"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1361], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3JfZE8/HXcIb.sMzIVLryOeaVcVFaZJT1wa4sZNrZfbhNXj5Gfdy."], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1362], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$FjPxdvpIdCN.dwQxS7.uTeGbjBf.LnRNtJtWltlAVZHSI9tMgLzvi"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1363], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$I0.DfLb8qjpf8yNrHnKT4efhfsS9t2XnmknEIfVZB1stCOs38IjN6"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1364], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$kFCbQarm0c9Gr51P8JSnBuUuysQsh.HTu2vSDgexvfimhfDCIljia"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1365], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:47:56 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$6OTK2isXFas4zvLMIXzK5uXpmZYZwCgR1K9frwz/6ngaOXUeelH4O"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1366], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$zb6oVpfEDi/FmjyeiKG9nOV3lIlfw2Rtvn7zN6dML8w1.tXAJ4h7W"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1367], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$HHaR2io4cMgwCivMGzEgCO4aNbhurTQTyYO/Ghx2ekd3kVl.iqSwW"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1368], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$iud.TkmRSMquzM4nIFeW8el4P4p0VOC3fN.jad4rD.XQdtIrC5RB6"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1369], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$BPz79VP.OgmjbZ6S6Dy7juig8Od9w.XkyrqPNqNbCUI3m8N2f3Nm6"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1370], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (6.5ms) BEGIN  (10.1ms) COMMIT  (10.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:47: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$wtQkkrAQ/B2TiNnmPhvsxevdQZ9GOVDaK/7ZIL1Xc9so0bkZPjKuO"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]] SQL (0.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00], ["name", "Testy"], ["owner_id", 1371], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:47:57 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 145ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$cw4Ww28aRh7.sOnd9yFVn.3u7SEUcASIFZPPzSIQJORPJFf2Y1HAq"], ["updated_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00], ["name", "Testy"], ["owner_id", 1372], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (2.8ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$jcbfoFfoEBSksIXUMpzra.x3hleMedLXZWxfXBAmSRzyotaRmjDBC"], ["updated_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00]] SQL (10.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00], ["name", "Test Account"], ["owner_id", 1373], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:47:58 UTC +00:00]]  (8.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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.1ms) ROLLBACK  (0.8ms) BEGIN  (10.0ms) COMMIT  (10.0ms) 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 8ms (Views: 5.7ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (12.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", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:47:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:47:59 UTC +00:00], ["user_id", 101]]  (10.0ms) ROLLBACK TO SAVEPOINT active_record_1  (10.0ms) ROLLBACK  (9.9ms) BEGIN  (10.0ms) COMMIT  (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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 32ms (Views: 30.0ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (10.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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.7ms) 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 114ms (Views: 109.4ms | ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) 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 (9.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:46 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zbGMVXFJUMXV11y/SQm8uulwL2MI4.ec7zHOnwyMwF1bF.t7BepR6"], ["updated_at", Wed, 17 Jul 2013 23:48:46 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:46 UTC +00:00], ["name", "Test Account"], ["owner_id", 1374], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:48:46 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1143  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$A37BCXijCdBXQJaGUZmidON0wDX.SsAguDissBnvldK4K2SxeL04C"], ["updated_at", Wed, 17 Jul 2013 23:48: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" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1375], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1144  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:48: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.3ms) 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", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$awAsZnVPmxd9o8TPIK.WdetDg0jJiURP79FUeCPvOlogUYFxFu7t2"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1376], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1145  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 107ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$7I1d45dKNJwqKB1h8j/nLOTrxhRF8QcV6/qRbsFy8dQBeKPuiRcQi"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1377], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1146  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$LEMV1WpE3Qayg0q5kRyiGeUALjbgsez3IOnZjoxQo9f.afFOCxtLa"], ["updated_at", Wed, 17 Jul 2013 23:48: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" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1378], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1147  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$RnPJhuuledq6KvUx3Eig8.Oy6RsXJTOGq2nw4zhS4C02VEvwb/jt2"], ["updated_at", Wed, 17 Jul 2013 23:48: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" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1379], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1148  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$gKaFOZSPzvO8HtrJbazube0Nr0sf1C0TI11Wd2nIoeUxfvGOC/SK."], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1380], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1149  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$XXTjVhIvE1U.SR/HfttPhOMH65inETnPIq.IBGDcQ1MRZf7ST0Q1i"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1381], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:48:55 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1150  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bduQdhhZBMjqSdO13DyTWuko1ejL.dzB3Oy5iU6tEnQORGHTfyPZi"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1382], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1151  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$k7DVynum/AWVEY/KuCD9YOH6eYGL05g1/s3ITh44y6lTZlQqj7B7K"], ["updated_at", Wed, 17 Jul 2013 23:48:56 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" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1383], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1152  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$G5vA5dbX6tuB.ybC5VSSmeF71JTPzOqWX7RweduusjjIT0ryQgbYe"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1384], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1153  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$sGOv0eyJ68WwF9W8m34W0.6DGIyR3ivBgNTLsCj741QMKlu1o9sYe"], ["updated_at", Wed, 17 Jul 2013 23:48: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" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1385], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1154  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$AdSp8Xptn0hdCfyRVBhjw.sIM4LMrBBzm9zTdtanHIngkvxVp7TYW"], ["updated_at", Wed, 17 Jul 2013 23:48: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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1386], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1155  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.8ms) 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", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$g0Z6WpAq0ECvRPanGP.nseGxZXqLWilwCOPqTdHbD1W8qDen.dfAu"], ["updated_at", Wed, 17 Jul 2013 23:48: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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1387], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:48:56 UTC +00:00]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1156  (6.7ms) ROLLBACK TO SAVEPOINT active_record_1  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.2ms) 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", Wed, 17 Jul 2013 23:48:57 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$uGO5hnHT36JKiqk2pMd3l.rj5rJPc0D62scGN9ZoerRT1j8EFVFcq"], ["updated_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (3.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (3.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1388], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1157  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (9.7ms) 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", Wed, 17 Jul 2013 23:48:57 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$PPv.1RJZXDYQx0lxrEOL.eXdGRoxoXQDvgLfIa0G3uvwpMJj4S2YK"], ["updated_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00]]  (37.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" = 'test13' LIMIT 1 SQL (5.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1389], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1158  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (9.0ms) 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", Wed, 17 Jul 2013 23:48:57 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$TkgbIKhVGhCzQ4KAR91md.vu9VCT78l0im.lorIT12clUy.Mumbei"], ["updated_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (10.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1390], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:48:57 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1159  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (3.1ms) SAVEPOINT active_record_1 SQL (12.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", Wed, 17 Jul 2013 23:50:59 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:50:59 UTC +00:00], ["user_id", 101]]  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.1ms) 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", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$.pm8LhQPtAaa1fHXdR3fkuWBbZVspk4lszTbrIMKOEdw2XU.ZbzOi"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]]  (10.3ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (6.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1391], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1160  (6.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (6.3ms) BEGIN  (10.0ms) COMMIT  (10.2ms) BEGIN  (3.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", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$noHaP12.pW8ZRWASN2Nrheq08CTCNDt.sViH7urqLgYmzARQCq/rq"], ["updated_at", Wed, 17 Jul 2013 23:51: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" = 'test2' LIMIT 1 SQL (2.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1392], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1161  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$gdhfO8vHmvt/Ai2jQ1Q1KuOa8IMS621b/3Lvnhuffq2Kb5r8ZPQj6"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1393], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1162  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$u11CMbu7hysmXblTEHui5eYzForPmfwLjFeIUnXdWyH12pkfAB4.m"], ["updated_at", Wed, 17 Jul 2013 23:51: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1394], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1163  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$je6oJSDp2PHLklDNHHeDYe/qgXkWNKIEtubTIEFD8Ikp6mFW/2sii"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1395], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1164  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$4/NQOyREUP3T5DwzMU8ZeuuqrvlP.sn6tM5U3oNVrSXM05bdbOlmS"], ["updated_at", Wed, 17 Jul 2013 23:51: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1396], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:51:00 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1165  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$ZgYu6X8ncMijCnYdOOG5GOSJCEJb9XzePJvvkus8ixPgmXG9lG.mG"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1397], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1166  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$8yTKvXcCuZrjmskUYtjAIe9i7zahd3qqyXo/uG.Yu3gBcycaT8j8O"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1398], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1167  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$WK1A9LBAmjRTYMfCW.od9uQ6TDewPlRk9p/w.h9ykkHRqaiD7uUDW"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1399], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1168  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$lq8uuXhF/m1DpBhpzfC7iOOED.e1RlHVGijA83vfyO7n1u4TPP2JS"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1400], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1169  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$xczT0ayARf8B2lVZtgZhbeWAptC/70TFM22/9q./CW.FijMESnGku"], ["updated_at", Wed, 17 Jul 2013 23:51: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1401], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:51:01 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1170  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 38ms (Views: 36.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 53ms (Views: 50.9ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:05 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$6NZluFLuTnA7DUCLJUb3JujTw.qUPARvjrbEbfZyY6B7sbWAjbwde"], ["updated_at", Wed, 17 Jul 2013 23:51: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" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:05 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1402], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:51:05 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1171  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) 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)  (0.1ms) ROLLBACK  (18.3ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 6ms (Views: 4.9ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$a9DYs.fLNeEuch/907oByONZuaddP3JheSG8Z6AUCar66Wir9eKC."], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["name", "Test Account"], ["owner_id", 1403], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1172  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.T5rTxAQrbiIfDUTHFg01OvqN3x8AUBHMcAWtV6OcP4HvmUAMc4CG"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["name", "Testy"], ["owner_id", 1404], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1173  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18:51: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.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$nN973rH07rQ2ZgJoWGTOHurIZAyhfilf56ZxxnfdHOiupGRhHsJay"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["name", "Testy"], ["owner_id", 1405], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1174  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 110ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$8iU2ARW0vDv.SAvR/ubCUOjTtsqxUa88V4PPN64fniqCstQnJutr6"], ["updated_at", Wed, 17 Jul 2013 23:51:10 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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1406], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1175  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$WzYEWddCkCYc.9lFxSQTmeoH32rGZJzsaW28KViAfDocJnH.9jltq"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1407], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:51:10 UTC +00:00]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1176  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (2.7ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.9ms) 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", Wed, 17 Jul 2013 23:52:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$LLhCR5hHW2wWlETMrXy9/OyFfCtrH/vQU6jCSHePt9ZqSWsnrUw.e"], ["updated_at", Wed, 17 Jul 2013 23:52:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1408], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:52:10 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00], ["user_id", 101]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$uOH0BrrdBLx19gure96GOOkbF.phTA7dJaNGIvzrYb13s4fTEMse2"], ["updated_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00], ["name", "Test Account"], ["owner_id", 1409], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 18: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.3ms) 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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$cA16cA/DSp6/1taie3ZiKuVEDPsRhpYQiSZ8L9p8o4/jdaVbcjnDC"], ["updated_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00], ["name", "Testy"], ["owner_id", 1410], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:52:15 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 106ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$NG35YPZty2J/qodt9HCR3uDPZw7Zgf9lWHsz94vPQLaneWuLbrebW"], ["updated_at", Wed, 17 Jul 2013 23:52:16 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:16 UTC +00:00], ["name", "Testy"], ["owner_id", 1411], ["subdomain", "test"], ["updated_at", Wed, 17 Jul 2013 23:52:16 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.8ms) COMMIT  (0.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.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 74ms (Views: 63.6ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 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 (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" = 101 Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (1.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$hZhb0iF/e5T2uMC3A/dK9ug3HBmPT1oPRqRihSq3ATfqqlbdui042"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1412], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (26.6ms) 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", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Wz3wg9bFWaGviM2nQrD5RuL3iGG.i7wnRP76nt3F7SvfOVOuyOKPi"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1413], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.0ms) 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", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$7oJltb9ZQbf.0p7PCilfoeMFcbtCPZ0DiCgt8W69pEmvVr4zkdIE."], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (4.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1414], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (8.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", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$nQ.3lai4B1h.p/abHrMCSu/L4G0s2RQegK.TvDGx6CKhd5stus0Za"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (3.8ms) 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 (2.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1415], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (3.2ms) ROLLBACK  (3.9ms) BEGIN  (2.2ms) COMMIT  (2.7ms) BEGIN  (2.5ms) 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", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$S9qvropfBioPEmg34FRcBewbyQoGc9KDNL6WZz4Sq6lDYN0oIdeE6"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (3.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1416], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:52:17 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (1.5ms) BEGIN  (1.3ms) COMMIT  (2.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$pT7vrgkSzWnpLzMMXISY3OZj7jc0jyj3WeNvh86cZm9GBDrw3A.ai"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (4.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1417], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$hQMOhBs/m2z5016Ntll2k.je1uygGxRdTX6Ifu25Y4YVRHL7Owgce"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (16.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.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1418], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.3ms) 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", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mcDKs6EjPg8/lUVndFMq1OdiZ6Bg82WBLGQeQwFBMp1anY8Egxeiu"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (6.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1419], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$jGUdAPcRacp3/YqLHH5r6.Yzqj9eRK1JtVR6C56eU6l.gGRTxCFn."], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (1.0ms) 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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1420], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:52:18 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$dRGFkJ2qJpbtx4JucCupqu5Fur7m61WqoAn4PxGULMjufdBhbSAmu"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (10.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1421], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$0mIliixzJK9UwSacTwsvSudfr9x4boY8F3HGSmu3lkqj2CpF1e/je"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (8.2ms) 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.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1422], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (10.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (5.6ms) BEGIN  (0.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$jJntysFn6jYyQ9z/E74j/uffytT.RR0p2LcnYPIbhcCik1AjAZ.Z6"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1423], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$8zpViEHx38ycbwdF8j8.q.DWKPezLGjjvwQXAYFMBN8GS43dc.fa2"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 1424], ["subdomain", "test14"], ["updated_at", Wed, 17 Jul 2013 23:52:19 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (5.7ms) 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 "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604)  (0.1ms) BEGIN  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612061604')  (1.2ms) COMMIT Migrating to CreateCadeneroV1Users (20130612064652)  (0.2ms) BEGIN  (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.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612064652')  (1.1ms) COMMIT Migrating to CreateCadeneroV1Members (20130612073709)  (0.2ms) BEGIN  (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)   (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")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612073709')  (0.9ms) COMMIT Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "cadenero_members" ADD COLUMN "auth_token" character varying(255)  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130715174857')  (0.5ms) COMMIT Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "cadenero_accounts" RENAME COLUMN "authentication_token" TO "auth_token"  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.6ms) DROP INDEX "index_cadenero_accounts_on_authentication_token"  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130717234244')  (0.8ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.9ms) 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", Wed, 17 Jul 2013 23:54:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$zV9zVxhLTtZYb20yVK3DHe.HFvmLoOOIS0wEjMtWbDG8WzxuOnxQG"], ["updated_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00]]  (4.6ms) 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.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (20.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Djal7LnpefXp75mDUwpX8.yoG8utyyMLA2.MEu92rz5pC.WaXXpr6"], ["updated_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:54:50 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.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", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$CcW5q9dmmwkfM/UzJHHvP.KvFUZ0KBBSjS.QB3yHADol85dkpDKfy"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$tGFH/pW4QHqCc3YeC5TV0O/2PObarzrTzpXyijn43Kw1bUNsbpbp6"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$mjMvVRMI3dW80LdX13P5e.3fypcjq1WH0r7p6FaIqSzplO7gWNe8y"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$nUJpTo8qvXFw0Mh79AGzzuYtfjrIJUxmLX9luFMqJWuSogApr5Vbq"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$.e6/t58B0FI47RXJ0omZYeV81qTDKtTki9hiBFw6T/XDJkDNN8w5."], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$O5XzP5n6kERJ1y9woysq..tLybDvSQbg7T96XBFy07juHXv6WZXxi"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 8], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$hJfw3t3MEGkG9N2RV1AjUeNPqmNfSt8RjW1hPpMtT8mbvw2kZbDxq"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 9], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$jikbonS/0RkqMJm0vAZLNu/r1me5m40gMma5PTA996.Hyp9Te1wqW"], ["updated_at", Wed, 17 Jul 2013 23:54: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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 10], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:54:51 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:54:52 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$w/Fxfk/PcSOoLOBkn0bTMexhYKxapMsNYPf3IUzBUYz6XgHyiEpvG"], ["updated_at", Wed, 17 Jul 2013 23:54:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:54:52 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 11], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:54:52 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (10.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (1.9ms) 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", Wed, 17 Jul 2013 23:55:23 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$wAbf4kMhicm3stWxtDF6C.URhAPz/ySCujPNp6nmfSFl6mezh2kqm"], ["updated_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 12], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (2.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 23:55:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$P7kgt8ZBDiiMbhzz7aE0UuMGO7TW8JaCw/2jnQ0Hg1YqRc5aRhFCm"], ["updated_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00]]  (1.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" = 'test2' LIMIT 1 SQL (7.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 13], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (7.6ms) BEGIN  (1.9ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Wed, 17 Jul 2013 23:55:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$PiOsp0j4REN2qwuNo3FJneSFK10m3TiXstj1q6o6yYckwc0f2bbwa"], ["updated_at", Wed, 17 Jul 2013 23:55: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 (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 14], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:55:23 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$tJuLDb7OYIYfEQG/CZqPrOh.Ec5DAOrVH6kpxTu/MY0bgjZOMZppK"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 15], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$9ttUFqvAgl2t9fY2ocB8w.Dr76/ZaA5NnQw4lKEtXoemsFzypkW/G"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 16], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$a2VBQQqhe8eIaYM0VCRFgOv82aQk9xx8pKYIVyhs5.adftWDp/IEe"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 17], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$toXVtwYMwWPeqi84/SywjOxBPYn7/50bbWP9dtGTpa4wjz.8TvTcC"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 18], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$T/OjEyJgqqIl6XvDL9ar1uqHO/.FIrCtpRCghWdtZoZLPMPDOo/Cm"], ["updated_at", Wed, 17 Jul 2013 23: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" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 19], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$MK12wc32FIoMLOLWfLBh/Ow6q.XIG4laswrc/pEyIuG4tqiJs.Rqy"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 20], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$JrKw4wp3aqJxF2ydHVTSUOfoNB7E7VVRkIEHDbZ8ZKXB03lN52nVW"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 21], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ensBQqJ.QoNkLdNgSF.yLORsU8ELDsLrlxD8IF0F/2UGbI4NNe5kG"], ["updated_at", Wed, 17 Jul 2013 23: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" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 22], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:55:24 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (10.0ms) BEGIN  (0.7ms) COMMIT  (3.9ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (38.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$xRsltroBJmSdalW1dUwG0eQEDhEwZ6oS73sc/kAYUr2AgD4WFOo/i"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (5.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 23], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.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", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$pZo0zRmuT8OJx1naDnEwO.DuqqtadV.7EAp8YrHDXL3mTX5iVdUg."], ["updated_at", Wed, 17 Jul 2013 23:57: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 (18.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 24], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (3.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$kcAIkY5v1520bXvL4k.4H.9Az/69tUF4uehP8pTjj83L8MemA0KTK"], ["updated_at", Wed, 17 Jul 2013 23:57: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" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 25], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$nqnu7nEGSBVamBD4Iy/Z6uXQsdGoTPGGpHBHL/K9l/mz5cY2NIqsG"], ["updated_at", Wed, 17 Jul 2013 23:57: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 26], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$qwCondPlbzvv0zVEbZvoHO1YrPwywGO8nTGcqg5VbJQzAaRLi9516"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 27], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:57:28 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$xY0mT4CNDQTKl9nWBJ08y.ErPIMyi3AXMVXyz5UB9h/mPrjq/bRf2"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 28], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bhDLf7uXiLlEmTs5ZxH4Uu116.faiUdsh5bAPu1fKjhWafhLG3g2i"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 29], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$g5sfcWg7anJrhPnzP4b4FuKeEpbq/iD5HvrusiC/L2rnVT8lpwkYu"], ["updated_at", Wed, 17 Jul 2013 23:57: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 (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 30], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Hn/FYHC/b9KnaCzxXr..PuAqtZXf56Hxgq8RghcqO1D.2sgbBo/8S"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 31], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$YwvDzxwt0qOxSOyHacPTNuGdNQz0ZuhM4VhlkU18LDGcCuaSNFK1a"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 32], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$FVjzhTdRdIGC8he/4uxQmOTHLzx7TxVjVZKtgE5UmboGQdA2RCnK."], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 33], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:57:29 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.7ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (23.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:08 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$A7U/z8aaWmwkkO4N/HlyoOf6P9Ky8si39mysNKauKxrVqb8dqXnOm"], ["updated_at", Wed, 17 Jul 2013 23:59:08 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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 (3.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 34], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.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", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$P0k.Xfwxati1EnRIgA60z.lzNeXdVGfB9v/AjLNexlSBnDRLVLf0K"], ["updated_at", Wed, 17 Jul 2013 23:59:09 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" = 'test2' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 35], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$vjAZeQxJDohaYa5EhuQUiuktxs45rI3/VvPagfHQ6hPklO2fSO0Sq"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 36], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.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", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$KYj8KZKubwuL7W7zABwyS.hgrIWaFaxZdY5O0apAPAl.TwjNOyMhi"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 37], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$N8hhOEe5Wqtpb/l8zKIo9.cgiz7UDJVLNs.L5AG1Ze40ZHM/lk/lu"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 38], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$PpkPXa76uDj1ci.nptTn5eMAWdPKAbylU2ahmYnZ/zC.v7gKt48uO"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 39], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$FLwcQlTD5Hqz9G2xd3Vdxe3AmrXmy66SivRXpPgx2prZLYa7ydIrm"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 40], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:59:09 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$76QsvBbLuIoZBo3WsyhMp.yYK7Ds7b.qLak4rh.clOQAsO4Ai3eku"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 41], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$t0YRnwMiJ9auSp9RbUj/8OFXKoaDZV65F5U9dGG69zEObengE2bIu"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 42], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$zXnwSrV4HavMbY8q4njFOuzf9leFSEM8Mk/13lSapx02U1eSf3YPa"], ["updated_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 43], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00]]  (1.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VFOgeoUgEMJWHZv.lsExc.89teKIyMienp0vneSNwIrNYfRGa6A9W"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 44], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:59:10 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (3.0ms) BEGIN  (0.2ms) COMMIT  (3.1ms) BEGIN  (2.5ms) 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", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Hb8/piOQTcRO6w870eKyhuXbSCrSuALCMUFmI4uRokZMkj5tahmpW"], ["updated_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 45], ["subdomain", "test1"], ["updated_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9B2pS95jNxkqwintDTpJ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 45, "created_at" = '2013-07-17 23:59:48.200601', "updated_at" = '2013-07-17 23:59:48.200601', "auth_token" = '9B2pS95jNxkqwintDTpJ' WHERE "public"."cadenero_accounts"."id" = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.9ms) 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", 45], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["user_id", 45]] Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yyDzwPq9w5vh2aGDQNsv' LIMIT 1  (2.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 45, "user_id" = 45, "created_at" = '2013-07-17 23:59:48.339697', "updated_at" = '2013-07-17 23:59:48.339697', "auth_token" = 'yyDzwPq9w5vh2aGDQNsv' WHERE "public"."cadenero_members"."id" = 1  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test1"  (11.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59:48 -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" = 45 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" = 45 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 45 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 45 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 45 Completed 201 Created in 143ms (Views: 29.5ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.8ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Y4/PIZlnFRVwkZY/LaUBeOA35OnJ95yj/vdRNNk4nUmfOAILzaq/K"], ["updated_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 46], ["subdomain", "test2"], ["updated_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VCDeARCTcspJ62LsvXs4' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 46, "created_at" = '2013-07-17 23:59:48.828379', "updated_at" = '2013-07-17 23:59:48.828379', "auth_token" = 'VCDeARCTcspJ62LsvXs4' WHERE "public"."cadenero_accounts"."id" = 46  (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", 46], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:48 UTC +00:00], ["user_id", 46]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TKeFCvt5vKWim7tyor1z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 46, "user_id" = 46, "created_at" = '2013-07-17 23:59:48.834813', "updated_at" = '2013-07-17 23:59:48.834813', "auth_token" = 'TKeFCvt5vKWim7tyor1z' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) 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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (22.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (2.0ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (2.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 18:59:48 -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", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$30NACjJH..i9gfJ2ssB4QuVPa/ElLsVq4Sqf2ly9UBafbhURriWRi"], ["updated_at", Wed, 17 Jul 2013 23:59:49 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", 46], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["user_id", 47]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CQxLTnJbFsUyE2k2wxsp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 46, "user_id" = 47, "created_at" = '2013-07-17 23:59:49.043489', "updated_at" = '2013-07-17 23:59:49.043489', "auth_token" = 'CQxLTnJbFsUyE2k2wxsp' WHERE "public"."cadenero_members"."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" = 47 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 47 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 47 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 47 Completed 201 Created in 120ms (Views: 5.8ms | 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/47" for 127.0.0.1 at 2013-07-17 18:59:49 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"47"} 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" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 46 AND "public"."cadenero_users"."id" = 47 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 47 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 47 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 47 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 47 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59:49 -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" = 47 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 47 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 47 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 47 Completed 201 Created in 10ms (Views: 7.2ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (14.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59:49 -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" = 47 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (8.3ms) ROLLBACK  (2.3ms) BEGIN  (1.1ms) COMMIT  (0.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$dz5R.NRwuv6pH4xNYw1RNOwtWYa3DZsB3PgI72USzY5UeNEMjStnK"], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 48], ["subdomain", "test3"], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zknsiWys4ZEpVAHgqwrj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 48, "created_at" = '2013-07-17 23:59:49.232998', "updated_at" = '2013-07-17 23:59:49.232998', "auth_token" = 'zknsiWys4ZEpVAHgqwrj' WHERE "public"."cadenero_accounts"."id" = 47  (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", 47], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["user_id", 48]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uqnQXHqZYyAKzADbMpLf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 47, "user_id" = 48, "created_at" = '2013-07-17 23:59:49.238755', "updated_at" = '2013-07-17 23:59:49.238755', "auth_token" = 'uqnQXHqZYyAKzADbMpLf' WHERE "public"."cadenero_members"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))  (8.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.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")  (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)   (5.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 ('20130717234244')  (1.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59:49 -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 (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" = 47 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" = 48 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 48 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 48 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 48 Completed 201 Created in 113ms (Views: 5.6ms | 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  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$58SRQOK.ecgm40c6gheHvOdLppILLgOTKu6sgyUjYLXwW.Ex4Loym"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 49], ["subdomain", "test4"], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '63as1wuEQ2LWekfzxkpS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 49, "created_at" = '2013-07-17 23:59:49.550148', "updated_at" = '2013-07-17 23:59:49.550148', "auth_token" = '63as1wuEQ2LWekfzxkpS' WHERE "public"."cadenero_accounts"."id" = 48  (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", 48], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["user_id", 49]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mewMnpMWpoRmqxoq1sXh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 48, "user_id" = 49, "created_at" = '2013-07-17 23:59:49.555604', "updated_at" = '2013-07-17 23:59:49.555604', "auth_token" = 'mewMnpMWpoRmqxoq1sXh' WHERE "public"."cadenero_members"."id" = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.1ms) SELECT version FROM "schema_migrations"  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59: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.8ms) 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" = 48 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" = 49 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 49 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 49 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 49 Completed 201 Created in 112ms (Views: 5.5ms | 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  (4.9ms) ROLLBACK  (1.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ycOqPWyHopvXPpgUKeCem.O/6Zc2QOkOZVn5IqM6mUxVwVyPFSsRq"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 50], ["subdomain", "test5"], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Gx3yaLcpd8nzgp1D2a7z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 50, "created_at" = '2013-07-17 23:59:49.874647', "updated_at" = '2013-07-17 23:59:49.874647', "auth_token" = 'Gx3yaLcpd8nzgp1D2a7z' WHERE "public"."cadenero_accounts"."id" = 49  (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", 49], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:49 UTC +00:00], ["user_id", 50]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QGdZC2xTiqm5E8iWjNwy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 49, "user_id" = 50, "created_at" = '2013-07-17 23:59:49.880251', "updated_at" = '2013-07-17 23:59:49.880251', "auth_token" = 'QGdZC2xTiqm5E8iWjNwy' WHERE "public"."cadenero_members"."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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.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, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.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")  (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)  (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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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" = 49 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 59ms (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  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$RV4CeMTLDdvIjxXL1CP9HeFrayTA/.Uy2DKlUqwtWQ6uTEj5jh9Bm"], ["updated_at", Wed, 17 Jul 2013 23:59: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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 51], ["subdomain", "test6"], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EHSApK4JmrqNUHaZ1xqE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 51, "created_at" = '2013-07-17 23:59:50.166614', "updated_at" = '2013-07-17 23:59:50.166614', "auth_token" = 'EHSApK4JmrqNUHaZ1xqE' WHERE "public"."cadenero_accounts"."id" = 50  (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", 50], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["user_id", 51]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q8c5S9WKfWdjzkA1CLhr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 50, "user_id" = 51, "created_at" = '2013-07-17 23:59:50.172340', "updated_at" = '2013-07-17 23:59:50.172340', "auth_token" = 'q8c5S9WKfWdjzkA1CLhr' WHERE "public"."cadenero_members"."id" = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59: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-17 18:59:50 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 50 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.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", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$PKp5R4Eg/sTFgIJs.uNuf.uXdwJBUc9sY26cT65YQhjfu8yC.9Zie"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 52], ["subdomain", "test7"], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sXwQBDkGDt2BR6FgPjfV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 52, "created_at" = '2013-07-17 23:59:50.364287', "updated_at" = '2013-07-17 23:59:50.364287', "auth_token" = 'sXwQBDkGDt2BR6FgPjfV' WHERE "public"."cadenero_accounts"."id" = 51  (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", 51], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["user_id", 52]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NRfMzw9yEVP93ikxMwdG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 51, "user_id" = 52, "created_at" = '2013-07-17 23:59:50.369842', "updated_at" = '2013-07-17 23:59:50.369842', "auth_token" = 'NRfMzw9yEVP93ikxMwdG' WHERE "public"."cadenero_members"."id" = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$LntdaQHWduidXNfke0h4LOBo1q7gFkBj5gnsUuKq4uh8j/P4E03xm"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 53], ["subdomain", "test8"], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'C76Hn1sMmUAPctpUWuPF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 53, "created_at" = '2013-07-17 23:59:50.527605', "updated_at" = '2013-07-17 23:59:50.527605', "auth_token" = 'C76Hn1sMmUAPctpUWuPF' WHERE "public"."cadenero_accounts"."id" = 52  (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", 52], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["user_id", 53]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uszY87AFtsgriVXLEqUm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 52, "user_id" = 53, "created_at" = '2013-07-17 23:59:50.533020', "updated_at" = '2013-07-17 23:59:50.533020', "auth_token" = 'uszY87AFtsgriVXLEqUm' WHERE "public"."cadenero_members"."id" = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 51 AND "public"."cadenero_users"."email" = 'user8@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  (6.2ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$fMsRy1f09P3L9Yuv/CrszuijaLm.W/VBaeZdnduABZ0L3NSQ/MUaC"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 54], ["subdomain", "test9"], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qd8JXxLyLBM9LA3JNmyE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 54, "created_at" = '2013-07-17 23:59:50.665237', "updated_at" = '2013-07-17 23:59:50.665237', "auth_token" = 'qd8JXxLyLBM9LA3JNmyE' WHERE "public"."cadenero_accounts"."id" = 53  (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", 53], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["user_id", 54]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rqquZEgVCipZ1ByWCBny' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 53, "user_id" = 54, "created_at" = '2013-07-17 23:59:50.670926', "updated_at" = '2013-07-17 23:59:50.670926', "auth_token" = 'rqquZEgVCipZ1ByWCBny' WHERE "public"."cadenero_members"."id" = 10  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 18:59:50 -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  (7.1ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) COMMIT  (5.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$YLuvcWwjPahky8WNGhOXAeRDg1bADyGTV5ATSFJvTgc8Zn.qr8pfS"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 55], ["subdomain", "test10"], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2a9L6we8HPeLWq5LPfLx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 55, "created_at" = '2013-07-17 23:59:50.850212', "updated_at" = '2013-07-17 23:59:50.850212', "auth_token" = '2a9L6we8HPeLWq5LPfLx' WHERE "public"."cadenero_accounts"."id" = 54  (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", 54], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:50 UTC +00:00], ["user_id", 55]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mxUzzUfbbxiSvcZY3kj6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 54, "user_id" = 55, "created_at" = '2013-07-17 23:59:50.855757', "updated_at" = '2013-07-17 23:59:50.855757', "auth_token" = 'mxUzzUfbbxiSvcZY3kj6' WHERE "public"."cadenero_members"."id" = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) 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")  (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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 55 Started GET "/v1?auth_token[]=mxUzzUfbbxiSvcZY3kj6" for 127.0.0.1 at 2013-07-17 18:59:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mxUzzUfbbxiSvcZY3kj6"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 54 AND "public"."cadenero_members"."auth_token" IN ('mxUzzUfbbxiSvcZY3kj6') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 55 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 55 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$2ud4Y9q.V83JBZ9aG3IRJudCtop3hzroE7WLcO0VFh7h4B95bZBkm"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 56], ["subdomain", "test11"], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nenNQceM9aTsnwH1UqYx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 56, "created_at" = '2013-07-17 23:59:51.045179', "updated_at" = '2013-07-17 23:59:51.045179', "auth_token" = 'nenNQceM9aTsnwH1UqYx' WHERE "public"."cadenero_accounts"."id" = 55  (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", 55], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["user_id", 56]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5cPqFAzFPeMHwec7mryo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 55, "user_id" = 56, "created_at" = '2013-07-17 23:59:51.050797', "updated_at" = '2013-07-17 23:59:51.050797', "auth_token" = '5cPqFAzFPeMHwec7mryo' WHERE "public"."cadenero_members"."id" = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59: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/users" for 127.0.0.1 at 2013-07-17 18:59:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) 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", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$8mQo7HKA9unRMBcai3JeoOUFf3U7bRYqw5m2ygYJkMbzg533OAvwq"], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 55], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["user_id", 57]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6S7UHjbWJ2aJ8zjuaXPG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 55, "user_id" = 57, "created_at" = '2013-07-17 23:59:51.224071', "updated_at" = '2013-07-17 23:59:51.224071', "auth_token" = '6S7UHjbWJ2aJ8zjuaXPG' WHERE "public"."cadenero_members"."id" = 13  (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" = 57 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 57 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 57 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 57 Completed 201 Created in 112ms (Views: 5.6ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/57" for 127.0.0.1 at 2013-07-17 18:59:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"57"} 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" = 55 AND "public"."cadenero_users"."id" = 57 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 57 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 57 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 57 Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 56 Started GET "/v1?auth_token[]=5cPqFAzFPeMHwec7mryo" for 127.0.0.1 at 2013-07-17 18:59:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["5cPqFAzFPeMHwec7mryo"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 55 AND "public"."cadenero_members"."auth_token" IN ('5cPqFAzFPeMHwec7mryo') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 56 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 56 LIMIT 1 Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 57 Started GET "/v1?auth_token[]=6S7UHjbWJ2aJ8zjuaXPG" for 127.0.0.1 at 2013-07-17 18:59:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["6S7UHjbWJ2aJ8zjuaXPG"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 55 AND "public"."cadenero_members"."auth_token" IN ('6S7UHjbWJ2aJ8zjuaXPG') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (7.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$OZ2QMXNV3PpeeccmMWOmmOqZDA5tqULOPuvj/TbWIFTcH2Yw6hDIG"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 58], ["subdomain", "test12"], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NuCymLj4wkbf2qwMEitB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 58, "created_at" = '2013-07-17 23:59:51.390344', "updated_at" = '2013-07-17 23:59:51.390344', "auth_token" = 'NuCymLj4wkbf2qwMEitB' WHERE "public"."cadenero_accounts"."id" = 56  (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", 56], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["user_id", 58]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sLtEgznF7iCu12sNfqxv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 56, "user_id" = 58, "created_at" = '2013-07-17 23:59:51.395828', "updated_at" = '2013-07-17 23:59:51.395828', "auth_token" = 'sLtEgznF7iCu12sNfqxv' WHERE "public"."cadenero_members"."id" = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.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)  (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$iO3GNPP0wjkz4dRJJxaHWeIIwbY9qyQzRGEmCl.tL.pDZcCu6IhTm"], ["updated_at", Wed, 17 Jul 2013 23:59: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 59], ["subdomain", "test13"], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mExJYKxvcp5sVBjYzq8u' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 59, "created_at" = '2013-07-17 23:59:51.557470', "updated_at" = '2013-07-17 23:59:51.557470', "auth_token" = 'mExJYKxvcp5sVBjYzq8u' WHERE "public"."cadenero_accounts"."id" = 57  (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", 57], ["auth_token", nil], ["created_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["updated_at", Wed, 17 Jul 2013 23:59:51 UTC +00:00], ["user_id", 59]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E85mCgznfBFBwcKv4pSo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 57, "user_id" = 59, "created_at" = '2013-07-17 23:59:51.562794', "updated_at" = '2013-07-17 23:59:51.562794', "auth_token" = 'E85mCgznfBFBwcKv4pSo' WHERE "public"."cadenero_members"."id" = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.7ms) 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 ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 18:59: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 59 Started GET "/v1?auth_token[]=E85mCgznfBFBwcKv4pSo" for 127.0.0.1 at 2013-07-17 18:59:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["E85mCgznfBFBwcKv4pSo"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 56 AND "public"."cadenero_members"."auth_token" IN ('E85mCgznfBFBwcKv4pSo') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (6.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) BEGIN  (1.3ms) COMMIT  (0.1ms) BEGIN  (3.8ms) SAVEPOINT active_record_1 SQL (32.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$JQSPJ5gQjhfgfpXU0.Q4SO8ijVYTOE12JkMWNfsO.nfG/DL8NBBwO"], ["updated_at", Thu, 18 Jul 2013 00:01:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 60], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:01:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'S3xQVRuqhAieCDrYApUz' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 60, "created_at" = '2013-07-18 00:01:52.513019', "updated_at" = '2013-07-18 00:01:52.513019', "auth_token" = 'S3xQVRuqhAieCDrYApUz' WHERE "public"."cadenero_accounts"."id" = 58  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 58], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:52 UTC +00:00], ["user_id", 60]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z1gwppntqN9o7D3yix4p' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 58, "user_id" = 60, "created_at" = '2013-07-18 00:01:52.660946', "updated_at" = '2013-07-18 00:01:52.660946', "auth_token" = 'z1gwppntqN9o7D3yix4p' WHERE "public"."cadenero_members"."id" = 16  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (10.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "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")  (1.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.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 ('20130717234244')  (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')  (8.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01:52 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@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 ('test1') LIMIT 1 Cadenero::User Load (5.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 58 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" = 60 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 60 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 60 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" = 60 Completed 201 Created in 157ms (Views: 29.9ms | ActiveRecord: 9.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 60  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (9.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$E390Yl1.TvR3VLiD3Oh5fOVGq6lQkPwlG5puMs.adz2kAHNAdtvLC"], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 61], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VTzZtUyEABzA3g1axNBg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 61, "created_at" = '2013-07-18 00:01:53.247621', "updated_at" = '2013-07-18 00:01:53.247621', "auth_token" = 'VTzZtUyEABzA3g1axNBg' WHERE "public"."cadenero_accounts"."id" = 59  (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", 59], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["user_id", 61]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RyS1PQy95bN52iTLxZLy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 59, "user_id" = 61, "created_at" = '2013-07-18 00:01:53.253485', "updated_at" = '2013-07-18 00:01:53.253485', "auth_token" = 'RyS1PQy95bN52iTLxZLy' WHERE "public"."cadenero_members"."id" = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:01:53 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Mbpwcs3AEf7pCUCsZy1z/e8Y.un9rUUQZ1UnFpTK6xPHemp5O3DX."], ["updated_at", Thu, 18 Jul 2013 00:01:53 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", 59], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["user_id", 62]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wpZHVmVXs4itqyQUyjQW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 59, "user_id" = 62, "created_at" = '2013-07-18 00:01:53.429574', "updated_at" = '2013-07-18 00:01:53.429574', "auth_token" = 'wpZHVmVXs4itqyQUyjQW' WHERE "public"."cadenero_members"."id" = 18  (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" = 62 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 62 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 62 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 62 Completed 201 Created in 123ms (Views: 5.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/62" for 127.0.0.1 at 2013-07-17 19:01:53 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"62"} 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" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 59 AND "public"."cadenero_users"."id" = 62 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 62 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 62 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 62 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 62 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01:53 -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" = 62 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 62 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 62 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 62 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01:53 -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" = 62 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.2ms) ROLLBACK  (2.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$FEaKVHcZ8l3DEu3pjnOb9O5ZoROs6U9n7GhK0psTd17jQBbOVeUmG"], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 63], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'p2mCLoCBns6YkADm4g69' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 63, "created_at" = '2013-07-18 00:01:53.596768', "updated_at" = '2013-07-18 00:01:53.596768', "auth_token" = 'p2mCLoCBns6YkADm4g69' WHERE "public"."cadenero_accounts"."id" = 60  (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", 60], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["user_id", 63]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xy5SpozpUTB9xXTQshzy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 60, "user_id" = 63, "created_at" = '2013-07-18 00:01:53.602113', "updated_at" = '2013-07-18 00:01:53.602113', "auth_token" = 'xy5SpozpUTB9xXTQshzy' WHERE "public"."cadenero_members"."id" = 19  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))   (4.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.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01:53 -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.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" = 60 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" = 63 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 63 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 63 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 63 Completed 201 Created in 110ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 63  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$sUPEf.bRolS5IUmj.c/E0evmSGGJpAjHWUF6dMqXllcASTjc0HR1O"], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 64], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wYWpSxpfs5xxpAw2y1ye' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 64, "created_at" = '2013-07-18 00:01:53.928401', "updated_at" = '2013-07-18 00:01:53.928401', "auth_token" = 'wYWpSxpfs5xxpAw2y1ye' WHERE "public"."cadenero_accounts"."id" = 61  (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", 61], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:53 UTC +00:00], ["user_id", 64]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Bj4vBzTfnf2sWy2DpNJp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 61, "user_id" = 64, "created_at" = '2013-07-18 00:01:53.933753', "updated_at" = '2013-07-18 00:01:53.933753', "auth_token" = 'Bj4vBzTfnf2sWy2DpNJp' WHERE "public"."cadenero_members"."id" = 20  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))  (8.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (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.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 61 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" = 64 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 64 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 64 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 64 Completed 201 Created in 110ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 64  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.1ms) 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", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$igMihGgyGMQOoriN8NCDAeZVDIHGam390rDxZ/G4V4jeDdueUUUEC"], ["updated_at", Thu, 18 Jul 2013 00:01:54 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" = 'test5' LIMIT 1 SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 65], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WKQjbNxsuQr9GCXZCcST' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 65, "created_at" = '2013-07-18 00:01:54.258194', "updated_at" = '2013-07-18 00:01:54.258194', "auth_token" = 'WKQjbNxsuQr9GCXZCcST' WHERE "public"."cadenero_accounts"."id" = 62  (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", 62], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["user_id", 65]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u6b2ujzxaRrSMJ9hXzPx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 62, "user_id" = 65, "created_at" = '2013-07-18 00:01:54.266116', "updated_at" = '2013-07-18 00:01:54.266116', "auth_token" = 'u6b2ujzxaRrSMJ9hXzPx' WHERE "public"."cadenero_members"."id" = 21  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) 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, "auth_token" character varying(255))   (4.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01: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 (2.9ms) 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" = 62 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | 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  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$/YhxF3cXKFU6IiXyFO6h5ev1pRdycdfflAIeHu97B1wS5hPfCxzGK"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 66], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NgJ7R9cA8ExqyiMxGsdz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 66, "created_at" = '2013-07-18 00:01:54.528405', "updated_at" = '2013-07-18 00:01:54.528405', "auth_token" = 'NgJ7R9cA8ExqyiMxGsdz' WHERE "public"."cadenero_accounts"."id" = 63  (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", 63], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["user_id", 66]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kq2KmXTAaiNr8xpqd69w' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 63, "user_id" = 66, "created_at" = '2013-07-18 00:01:54.534180', "updated_at" = '2013-07-18 00:01:54.534180', "auth_token" = 'Kq2KmXTAaiNr8xpqd69w' WHERE "public"."cadenero_members"."id" = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.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.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.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.4ms) 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 ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01: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.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" = 63 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.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$GeOYnT.fizAclIs2AKEnU.2nGS726vo2XtogHotUGMblcpMzHybje"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 67], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9p9CJzezAvgcp45Bkz4x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 67, "created_at" = '2013-07-18 00:01:54.713872', "updated_at" = '2013-07-18 00:01:54.713872', "auth_token" = '9p9CJzezAvgcp45Bkz4x' WHERE "public"."cadenero_accounts"."id" = 64  (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", 64], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["user_id", 67]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mezCuEGV8Vm3jcfH1s6s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 64, "user_id" = 67, "created_at" = '2013-07-18 00:01:54.719820', "updated_at" = '2013-07-18 00:01:54.719820', "auth_token" = 'mezCuEGV8Vm3jcfH1s6s' WHERE "public"."cadenero_members"."id" = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.0ms) 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 ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$pawfWpMKrYfYNgVSbDcA/ereKisAYXSST0MPBLFzfxSehNczrhmsK"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 68], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EEVdHaJ9FpqAFCEeys7R' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 68, "created_at" = '2013-07-18 00:01:54.873564', "updated_at" = '2013-07-18 00:01:54.873564', "auth_token" = 'EEVdHaJ9FpqAFCEeys7R' WHERE "public"."cadenero_accounts"."id" = 65  (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", 65], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:54 UTC +00:00], ["user_id", 68]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'g47GamLJBzSbzSSsrzUv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 65, "user_id" = 68, "created_at" = '2013-07-18 00:01:54.878738', "updated_at" = '2013-07-18 00:01:54.878738', "auth_token" = 'g47GamLJBzSbzSSsrzUv' WHERE "public"."cadenero_members"."id" = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 64 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$vUoY9VfC0LZc18/UBa20Legt9pADWAF6a0DLWyMcbj9BD2ARa9hQW"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 69], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '65LoPeyqS7pxjy5REXjp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 69, "created_at" = '2013-07-18 00:01:55.020468', "updated_at" = '2013-07-18 00:01:55.020468', "auth_token" = '65LoPeyqS7pxjy5REXjp' WHERE "public"."cadenero_accounts"."id" = 66  (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", 66], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["user_id", 69]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PFH9KGJKABsWsiMHkYzs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 66, "user_id" = 69, "created_at" = '2013-07-18 00:01:55.025944', "updated_at" = '2013-07-18 00:01:55.025944', "auth_token" = 'PFH9KGJKABsWsiMHkYzs' WHERE "public"."cadenero_members"."id" = 25  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (28.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) 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)  (2.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:01:55 -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  (8.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$3Fo0R4CI7CvknJL5qDysvencFukwBltb/q.IU5kxfakDznmDEkhi6"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 70], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ssUwJVeR3fZzSRYjocua' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 70, "created_at" = '2013-07-18 00:01:55.241462', "updated_at" = '2013-07-18 00:01:55.241462', "auth_token" = 'ssUwJVeR3fZzSRYjocua' WHERE "public"."cadenero_accounts"."id" = 67  (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", 67], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["user_id", 70]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FXDgQKq6zEoPhqh5JPsL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 67, "user_id" = 70, "created_at" = '2013-07-18 00:01:55.246883', "updated_at" = '2013-07-18 00:01:55.246883', "auth_token" = 'FXDgQKq6zEoPhqh5JPsL' WHERE "public"."cadenero_members"."id" = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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")  (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")  (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)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01: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) Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 Started GET "/v1?auth_token[]=FXDgQKq6zEoPhqh5JPsL" for 127.0.0.1 at 2013-07-17 19:01:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FXDgQKq6zEoPhqh5JPsL"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 67 AND "public"."cadenero_members"."auth_token" IN ('FXDgQKq6zEoPhqh5JPsL') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$UXgtadiCfs0xX8lXPEH1PeULpCSdy7kl06jDYdenpsBIkY1UKv5OC"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]]  (0.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" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 71], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sqWDPzbLyEkyaq8uxpbP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 71, "created_at" = '2013-07-18 00:01:55.433932', "updated_at" = '2013-07-18 00:01:55.433932', "auth_token" = 'sqWDPzbLyEkyaq8uxpbP' WHERE "public"."cadenero_accounts"."id" = 68  (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", 68], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["user_id", 71]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P9KBqKTtU6gkwoqqasKm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 68, "user_id" = 71, "created_at" = '2013-07-18 00:01:55.439604', "updated_at" = '2013-07-18 00:01:55.439604', "auth_token" = 'P9KBqKTtU6gkwoqqasKm' WHERE "public"."cadenero_members"."id" = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.3ms) 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))   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01: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.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:01: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.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.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Ls.w6nhu4J1QMkzlSyoRQ.zSfXG6ZNLClEm5/faRwKIvlfjcPyCZe"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 68], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["user_id", 72]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M4NGNXsUoeg5KsVbFDse' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 68, "user_id" = 72, "created_at" = '2013-07-18 00:01:55.602488', "updated_at" = '2013-07-18 00:01:55.602488', "auth_token" = 'M4NGNXsUoeg5KsVbFDse' WHERE "public"."cadenero_members"."id" = 28  (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" = 72 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 72 Completed 201 Created in 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/72" for 127.0.0.1 at 2013-07-17 19:01:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"72"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 68 AND "public"."cadenero_users"."id" = 72 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 72 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 71 Started GET "/v1?auth_token[]=P9KBqKTtU6gkwoqqasKm" for 127.0.0.1 at 2013-07-17 19:01:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["P9KBqKTtU6gkwoqqasKm"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 68 AND "public"."cadenero_members"."auth_token" IN ('P9KBqKTtU6gkwoqqasKm') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 Started GET "/v1?auth_token[]=M4NGNXsUoeg5KsVbFDse" for 127.0.0.1 at 2013-07-17 19:01:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["M4NGNXsUoeg5KsVbFDse"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 68 AND "public"."cadenero_members"."auth_token" IN ('M4NGNXsUoeg5KsVbFDse') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (4.3ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$l84pw5qBYgjS6Edu3TPdIOZ2s0Lscr4kR2lWDVQpbwweCdrJHY2Wy"], ["updated_at", Thu, 18 Jul 2013 00:01: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" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 73], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ydtSA1ypWyVUweeHKaa4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 73, "created_at" = '2013-07-18 00:01:55.766692', "updated_at" = '2013-07-18 00:01:55.766692', "auth_token" = 'ydtSA1ypWyVUweeHKaa4' WHERE "public"."cadenero_accounts"."id" = 69  (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", 69], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["user_id", 73]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MFZnwsR1gS3GPNKYHizn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 69, "user_id" = 73, "created_at" = '2013-07-18 00:01:55.772257', "updated_at" = '2013-07-18 00:01:55.772257', "auth_token" = 'MFZnwsR1gS3GPNKYHizn' WHERE "public"."cadenero_members"."id" = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (0.8ms) 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 ('20130717234244')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$fJ3qSzbvguJQezysWuvfPOmW./5ODu6NxyiidR.JAYqTYL4EI06q."], ["updated_at", Thu, 18 Jul 2013 00:01: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 74], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xEU45pgEok9p431DeYsx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 74, "created_at" = '2013-07-18 00:01:55.925094', "updated_at" = '2013-07-18 00:01:55.925094', "auth_token" = 'xEU45pgEok9p431DeYsx' WHERE "public"."cadenero_accounts"."id" = 70  (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", 70], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:01:55 UTC +00:00], ["user_id", 74]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yJUQ9oErkmpp3tBqkUze' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 70, "user_id" = 74, "created_at" = '2013-07-18 00:01:55.930366', "updated_at" = '2013-07-18 00:01:55.930366', "auth_token" = 'yJUQ9oErkmpp3tBqkUze' WHERE "public"."cadenero_members"."id" = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test13"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.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")  (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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:01:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 74 Started GET "/v1?auth_token[]=yJUQ9oErkmpp3tBqkUze" for 127.0.0.1 at 2013-07-17 19:01:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["yJUQ9oErkmpp3tBqkUze"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 69 AND "public"."cadenero_members"."auth_token" IN ('yJUQ9oErkmpp3tBqkUze') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (6.3ms) ROLLBACK Connecting to database specified by database.yml  (10.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (28.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:18 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XQPTjy3HZ/YJLiaB2oKHVuBn0k8H6EfdFu7PoQMSzQpSmQTA8FHa."], ["updated_at", Thu, 18 Jul 2013 00:02:18 UTC +00:00]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (10.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (6.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 75], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Ax94fZqwqzqzioJN7q4V' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 75, "created_at" = '2013-07-18 00:02:19.150188', "updated_at" = '2013-07-18 00:02:19.150188', "auth_token" = 'Ax94fZqwqzqzioJN7q4V' WHERE "public"."cadenero_accounts"."id" = 71  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.4ms) 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", 71], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["user_id", 75]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Phd3rm8sBKGDJZnowQvt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 71, "user_id" = 75, "created_at" = '2013-07-18 00:02:19.307389', "updated_at" = '2013-07-18 00:02:19.307389', "auth_token" = 'Phd3rm8sBKGDJZnowQvt' WHERE "public"."cadenero_members"."id" = 31  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.6ms) 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')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:19 -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" = 71 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" = 75 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 75 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 75 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 75 Completed 201 Created in 185ms (Views: 30.1ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 75 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-17 19:02:19 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"75", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 75 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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-17 19:02:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$GPwMsu.K8xbhdB5aDqNQT.M8plvQ4DMplRhxmGo3q59GsUc6we0xS"], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 71], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["user_id", 76]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YaMdgjAvWP6gguknUgM5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 71, "user_id" = 76, "created_at" = '2013-07-18 00:02:19.728991', "updated_at" = '2013-07-18 00:02:19.728991', "auth_token" = 'YaMdgjAvWP6gguknUgM5' WHERE "public"."cadenero_members"."id" = 32  (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" = 76 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 76 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 76 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 76 Completed 201 Created in 116ms (Views: 6.6ms | 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/76" for 127.0.0.1 at 2013-07-17 19:02:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"76"} 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" = 71 AND "public"."cadenero_users"."id" = 76 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 76 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 76 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 76 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 76 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 76 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 76 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 76 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 76 Completed 201 Created in 7ms (Views: 5.2ms | 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  (8.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$.2r./OTPH5gF3TrITVwhEu8.T.YiQqcseMiNCPYMlKZFAtmcv3dny"], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 77], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dyzirHkshEix9cvzAzop' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 77, "created_at" = '2013-07-18 00:02:19.910543', "updated_at" = '2013-07-18 00:02:19.910543', "auth_token" = 'dyzirHkshEix9cvzAzop' WHERE "public"."cadenero_accounts"."id" = 72  (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", 72], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:19 UTC +00:00], ["user_id", 77]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nguvyS2DBGWnrB5LmzVp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 72, "user_id" = 77, "created_at" = '2013-07-18 00:02:19.915963', "updated_at" = '2013-07-18 00:02:19.915963', "auth_token" = 'nguvyS2DBGWnrB5LmzVp' WHERE "public"."cadenero_members"."id" = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02: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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$zUfFXsVp.StxjQs7keYuau.OesOL5TfOR23Vs7F4c2uLP7UwwsHPy"], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 72], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["user_id", 78]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SN9XZxys6vyewzZgPwj8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 72, "user_id" = 78, "created_at" = '2013-07-18 00:02:20.102553', "updated_at" = '2013-07-18 00:02:20.102553', "auth_token" = 'SN9XZxys6vyewzZgPwj8' WHERE "public"."cadenero_members"."id" = 34  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 78 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 78 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 78 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" = 78 Completed 201 Created in 115ms (Views: 5.7ms | 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/78" for 127.0.0.1 at 2013-07-17 19:02:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"78"} 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" = 72 AND "public"."cadenero_users"."id" = 78 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 78 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 78 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 78 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" = 78 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 78 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 78 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 78 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 78 Completed 201 Created in 8ms (Views: 5.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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:20 -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" = 78 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8XJzrI7xs/eif64mDT4UVeYPfH1uVovPUt1f90AMB6eiRdIy/EJcu"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 79], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '4ZmQ6xW57mdphhCp7DZf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 79, "created_at" = '2013-07-18 00:02:20.268264', "updated_at" = '2013-07-18 00:02:20.268264', "auth_token" = '4ZmQ6xW57mdphhCp7DZf' WHERE "public"."cadenero_accounts"."id" = 73  (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", 73], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["user_id", 79]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1xFuMm11xwKqxusC9Gax' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 73, "user_id" = 79, "created_at" = '2013-07-18 00:02:20.273905', "updated_at" = '2013-07-18 00:02:20.273905', "auth_token" = '1xFuMm11xwKqxusC9Gax' WHERE "public"."cadenero_members"."id" = 35  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (2.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.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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:20 -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 (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" = 73 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" = 79 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 79 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 79 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 79 Completed 201 Created in 109ms (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"."user_id" = 79 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:20 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"79", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 79 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$n4lfIyEZCIUoVurxupp4feNSeU7L7ecsdyTJAG/1oc4pT7QgYAlCa"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 80], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'F2nCpNtypd4QxVdnt8s5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 80, "created_at" = '2013-07-18 00:02:20.603305', "updated_at" = '2013-07-18 00:02:20.603305', "auth_token" = 'F2nCpNtypd4QxVdnt8s5' WHERE "public"."cadenero_accounts"."id" = 74  (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", 74], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["user_id", 80]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HgetaJoLcmPypspc3c3y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 74, "user_id" = 80, "created_at" = '2013-07-18 00:02:20.609024', "updated_at" = '2013-07-18 00:02:20.609024', "auth_token" = 'HgetaJoLcmPypspc3c3y' WHERE "public"."cadenero_members"."id" = 36  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 74 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" = 80 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 80 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 80 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 80 Completed 201 Created in 107ms (Views: 5.5ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 80 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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" = 80 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$40pM/5MS3ahCC1ZrbxcpKuH5NSmmcjN3HXBKR/vGeahnXL9I2RqVu"], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 81], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pg8p8HtqRpzCFx95bCXL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 81, "created_at" = '2013-07-18 00:02:20.983229', "updated_at" = '2013-07-18 00:02:20.983229', "auth_token" = 'pg8p8HtqRpzCFx95bCXL' WHERE "public"."cadenero_accounts"."id" = 75  (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", 75], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:20 UTC +00:00], ["user_id", 81]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QLfk1ZyeJXyxXjYqT5pn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 75, "user_id" = 81, "created_at" = '2013-07-18 00:02:20.990598', "updated_at" = '2013-07-18 00:02:20.990598', "auth_token" = 'QLfk1ZyeJXyxXjYqT5pn' WHERE "public"."cadenero_members"."id" = 37  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "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.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")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:21 -0500 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$tBodQOtAM7.UP7CpvwY94uAc4q3lXhFt2ek8QLMYPQYCpDgNIkYrO"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 82], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PosthRz9YZTXsb3Zcxsy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 82, "created_at" = '2013-07-18 00:02:21.180266', "updated_at" = '2013-07-18 00:02:21.180266', "auth_token" = 'PosthRz9YZTXsb3Zcxsy' WHERE "public"."cadenero_accounts"."id" = 76  (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", 76], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["user_id", 82]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p4YZZhDjYRqYXByFWsin' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 76, "user_id" = 82, "created_at" = '2013-07-18 00:02:21.185661', "updated_at" = '2013-07-18 00:02:21.185661', "auth_token" = 'p4YZZhDjYRqYXByFWsin' WHERE "public"."cadenero_members"."id" = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.8ms) 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 ('20130717234244')  (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')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02: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 (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 76 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$xzFMH.U4mufg1YdIYUK/Y.7jy./2D.ZqpCx62/vIiiLdd2fa/s7Tu"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 83], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'gj3kZz4zyJypbuWsjBRK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 83, "created_at" = '2013-07-18 00:02:21.372376', "updated_at" = '2013-07-18 00:02:21.372376', "auth_token" = 'gj3kZz4zyJypbuWsjBRK' WHERE "public"."cadenero_accounts"."id" = 77  (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", 77], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["user_id", 83]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zvzgPVZskeBjBdsThoJp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 77, "user_id" = 83, "created_at" = '2013-07-18 00:02:21.378162', "updated_at" = '2013-07-18 00:02:21.378162', "auth_token" = 'zvzgPVZskeBjBdsThoJp' WHERE "public"."cadenero_members"."id" = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$fBHyixRYFsdv8rpRPhG7oe8pdrZxDi3DZ2bKJhOAQ1LwLQ1Nll6SO"], ["updated_at", Thu, 18 Jul 2013 00:02:21 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" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 84], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XK8KC69KKZCVmxujAYBy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 84, "created_at" = '2013-07-18 00:02:21.530854', "updated_at" = '2013-07-18 00:02:21.530854', "auth_token" = 'XK8KC69KKZCVmxujAYBy' WHERE "public"."cadenero_accounts"."id" = 78  (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", 78], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["user_id", 84]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sqL8Z9mfLu3Ef7qHZSTN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 78, "user_id" = 84, "created_at" = '2013-07-18 00:02:21.536439', "updated_at" = '2013-07-18 00:02:21.536439', "auth_token" = 'sqL8Z9mfLu3Ef7qHZSTN' WHERE "public"."cadenero_members"."id" = 40  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 77 AND "public"."cadenero_users"."email" = 'user8@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  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$eJ9kmqxvQBZ92lYg9iJCluK6.FzfXvpQ4OndT1p0ecpOxyKDDkmtC"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 85], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'v9Zjp3MnnJEGGKqW4jst' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 85, "created_at" = '2013-07-18 00:02:21.668647', "updated_at" = '2013-07-18 00:02:21.668647', "auth_token" = 'v9Zjp3MnnJEGGKqW4jst' WHERE "public"."cadenero_accounts"."id" = 79  (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", 79], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["user_id", 85]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'H1jU6nZHeA2EvyoqD1tk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 79, "user_id" = 85, "created_at" = '2013-07-18 00:02:21.674033', "updated_at" = '2013-07-18 00:02:21.674033', "auth_token" = 'H1jU6nZHeA2EvyoqD1tk' WHERE "public"."cadenero_members"."id" = 41  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) 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)   (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 79 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$dyBjhyQ.26TsWsS.2aJCMu9WYgU0sQwdXUjlPtvD5TftSsuDJjQDS"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 86], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1c8MWz9VhrGbjYqKUDBn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 86, "created_at" = '2013-07-18 00:02:21.854608', "updated_at" = '2013-07-18 00:02:21.854608', "auth_token" = '1c8MWz9VhrGbjYqKUDBn' WHERE "public"."cadenero_accounts"."id" = 80  (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", 80], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:21 UTC +00:00], ["user_id", 86]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hygmjq85WrAapD7zdzcv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 80, "user_id" = 86, "created_at" = '2013-07-18 00:02:21.860020', "updated_at" = '2013-07-18 00:02:21.860020', "auth_token" = 'hygmjq85WrAapD7zdzcv' WHERE "public"."cadenero_members"."id" = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) 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 ('20130717234244')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$UJ/zspJr16cMSnGt6kEBauTUfxWsVxY0uBxWrnVTWOa5KUtOnoMqW"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 87], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tqbrfhJSB7t4d87okcCd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 87, "created_at" = '2013-07-18 00:02:22.016565', "updated_at" = '2013-07-18 00:02:22.016565', "auth_token" = 'tqbrfhJSB7t4d87okcCd' WHERE "public"."cadenero_accounts"."id" = 81  (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", 81], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["user_id", 87]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nBGE74Dn3wLo2YSvzwr7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 81, "user_id" = 87, "created_at" = '2013-07-18 00:02:22.021754', "updated_at" = '2013-07-18 00:02:22.021754', "auth_token" = 'nBGE74Dn3wLo2YSvzwr7' WHERE "public"."cadenero_members"."id" = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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")  (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.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 ('20130717234244')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 Started GET "/v1?auth_token[]=nBGE74Dn3wLo2YSvzwr7" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["nBGE74Dn3wLo2YSvzwr7"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 80 AND "public"."cadenero_members"."auth_token" IN ('nBGE74Dn3wLo2YSvzwr7') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$zc9hwM4JV5IsqGc1T6Xz7uSNl9KadclvCoKg9Ut4SIFviLHc/3OR2"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 88], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9TDWXx6zq7Q7vg5apvYB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 88, "created_at" = '2013-07-18 00:02:22.212881', "updated_at" = '2013-07-18 00:02:22.212881', "auth_token" = '9TDWXx6zq7Q7vg5apvYB' WHERE "public"."cadenero_accounts"."id" = 82  (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", 82], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["user_id", 88]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vz6bosrapAyMBEpL9bV6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 82, "user_id" = 88, "created_at" = '2013-07-18 00:02:22.218406', "updated_at" = '2013-07-18 00:02:22.218406', "auth_token" = 'Vz6bosrapAyMBEpL9bV6' WHERE "public"."cadenero_members"."id" = 44  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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/users" for 127.0.0.1 at 2013-07-17 19:02: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$IlfnjV0QPlPeDNCa8pV2Gu4warB09ub7mEfncaTYsQhPsxHWQ2z3O"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 82], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["user_id", 89]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ysuEnF8HVv2m9Kqi9Psc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 82, "user_id" = 89, "created_at" = '2013-07-18 00:02:22.378344', "updated_at" = '2013-07-18 00:02:22.378344', "auth_token" = 'ysuEnF8HVv2m9Kqi9Psc' WHERE "public"."cadenero_members"."id" = 45  (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" = 89 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 89 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 89 Cadenero::V1::Account Load (0.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" = 89 Completed 201 Created in 141ms (Views: 35.5ms | 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/89" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"89"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 82 AND "public"."cadenero_users"."id" = 89 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 89 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 89 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 89 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 89 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 88 Started GET "/v1?auth_token[]=Vz6bosrapAyMBEpL9bV6" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Vz6bosrapAyMBEpL9bV6"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 82 AND "public"."cadenero_members"."auth_token" IN ('Vz6bosrapAyMBEpL9bV6') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 88 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 88 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 89 Started GET "/v1?auth_token[]=ysuEnF8HVv2m9Kqi9Psc" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ysuEnF8HVv2m9Kqi9Psc"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 82 AND "public"."cadenero_members"."auth_token" IN ('ysuEnF8HVv2m9Kqi9Psc') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 89 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 89 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$ZlaufL/0w3by0Xezgq6ajuCuWosXAudVnk6eR0JbGCjA1sfVkUDvS"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 90], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '81GQuTwT6DWsVsVn8KEq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 90, "created_at" = '2013-07-18 00:02:22.575291', "updated_at" = '2013-07-18 00:02:22.575291', "auth_token" = '81GQuTwT6DWsVsVn8KEq' WHERE "public"."cadenero_accounts"."id" = 83  (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", 83], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:22 UTC +00:00], ["user_id", 90]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Fs8LNawNFKkZ1sacp9Df' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 83, "user_id" = 90, "created_at" = '2013-07-18 00:02:22.581370', "updated_at" = '2013-07-18 00:02:22.581370', "auth_token" = 'Fs8LNawNFKkZ1sacp9Df' WHERE "public"."cadenero_members"."id" = 46  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 Started GET "/v1?auth_token[]=Fs8LNawNFKkZ1sacp9Df" for 127.0.0.1 at 2013-07-17 19:02:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Fs8LNawNFKkZ1sacp9Df"], "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 83 AND "public"."cadenero_members"."auth_token" IN ('Fs8LNawNFKkZ1sacp9Df') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (5.6ms) ROLLBACK Connecting to database specified by database.yml  (6.2ms) BEGIN  (0.2ms) COMMIT  (1.6ms) BEGIN  (8.8ms) SAVEPOINT active_record_1 SQL (33.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$otU9xHtvCKPWqmoqLwyS6eXp70qGhCcCWpO6v7IkdDzdoHAFm1/Ra"], ["updated_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.6ms) 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 (20.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 91], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xLTswiC3wivZzfc73xx8' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 91, "created_at" = '2013-07-18 00:02:36.368035', "updated_at" = '2013-07-18 00:02:36.368035', "auth_token" = 'xLTswiC3wivZzfc73xx8' WHERE "public"."cadenero_accounts"."id" = 84  (10.0ms) RELEASE SAVEPOINT active_record_1  (4.5ms) 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", 84], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["user_id", 91]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SnyhFpVqsRCYvw6vMQQK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 84, "user_id" = 91, "created_at" = '2013-07-18 00:02:36.534043', "updated_at" = '2013-07-18 00:02:36.534043', "auth_token" = 'SnyhFpVqsRCYvw6vMQQK' WHERE "public"."cadenero_members"."id" = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (23.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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")  (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")  (5.7ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02: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" = '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", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PAsj54n8hXF8nJ7SyTuiJeKwA8x2SQ/61I1lH3ncJCHWE4cqmmm3e"], ["updated_at", Thu, 18 Jul 2013 00:02:36 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", 84], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["user_id", 92]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eSqb7FAqzEGfVpuNzFh2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 84, "user_id" = 92, "created_at" = '2013-07-18 00:02:36.763960', "updated_at" = '2013-07-18 00:02:36.763960', "auth_token" = 'eSqb7FAqzEGfVpuNzFh2' WHERE "public"."cadenero_members"."id" = 48  (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" = 92 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 92 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 92 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" = 92 Completed 201 Created in 193ms (Views: 78.8ms | 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/92" for 127.0.0.1 at 2013-07-17 19:02:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"92"} 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" = 84 AND "public"."cadenero_users"."id" = 92 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 92 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 92 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 92 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 92 Completed 200 OK in 12ms (Views: 6.0ms | 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.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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 92], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'a5ospqX6FHZTzbJVFvbX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 92, "created_at" = '2013-07-18 00:02:36.883790', "updated_at" = '2013-07-18 00:02:36.883790', "auth_token" = 'a5ospqX6FHZTzbJVFvbX' WHERE "public"."cadenero_accounts"."id" = 85  (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", 85], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:36 UTC +00:00], ["user_id", 92]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qRqqizUsTwZdCQzBByHq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 85, "user_id" = 92, "created_at" = '2013-07-18 00:02:36.889631', "updated_at" = '2013-07-18 00:02:36.889631', "auth_token" = 'qRqqizUsTwZdCQzBByHq' WHERE "public"."cadenero_members"."id" = 49  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (3.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))   (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.8ms) 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)   (3.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02: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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Zc9PcrEjWENpDMaD6o4TzuOWj0XTqimHXhXuK/gYOfCsvz.bQbk8e"], ["updated_at", Thu, 18 Jul 2013 00:02:37 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", 85], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["user_id", 93]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uKuZ9qiFkHCMBzFo5x4f' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 85, "user_id" = 93, "created_at" = '2013-07-18 00:02:37.067370', "updated_at" = '2013-07-18 00:02:37.067370', "auth_token" = 'uKuZ9qiFkHCMBzFo5x4f' WHERE "public"."cadenero_members"."id" = 50  (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" = 93 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 93 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 93 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 93 Completed 201 Created in 115ms (Views: 5.7ms | 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/93" for 127.0.0.1 at 2013-07-17 19:02:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"93"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 85 AND "public"."cadenero_users"."id" = 93 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 93 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 93 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 93 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 93 Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 1.6ms) Started GET "/v1/users/92" for 127.0.0.1 at 2013-07-17 19:02:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"92"} 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" = 84 AND "public"."cadenero_users"."id" = 92 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 92 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 92 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 92 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 92 Completed 200 OK in 13ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 19:02:37 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 84 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 92 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 92 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 92 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" = 92 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 91 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 91 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 91 Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 2.7ms)  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$HEciztWc9gRtk0xT.EPa4.Fx1Lz9UwQDe69UnU3EoKRyDSLHAG2fi"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 94], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'HurAx8i3RURt2Vksxxah' LIMIT 1  (4.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 94, "created_at" = '2013-07-18 00:02:37.273454', "updated_at" = '2013-07-18 00:02:37.273454', "auth_token" = 'HurAx8i3RURt2Vksxxah' WHERE "public"."cadenero_accounts"."id" = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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", 86], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["user_id", 94]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gparvdnaxyrm5v6UDFxs' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 86, "user_id" = 94, "created_at" = '2013-07-18 00:02:37.312078', "updated_at" = '2013-07-18 00:02:37.312078', "auth_token" = 'gparvdnaxyrm5v6UDFxs' WHERE "public"."cadenero_members"."id" = 51  (8.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (13.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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))   (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$cQ/wU6wu4hzeisUkGvSz9uB6tTUK6w09cstn/uMb1URmYzEUvWvpq"], ["updated_at", Thu, 18 Jul 2013 00:02:37 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", 86], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["user_id", 95]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'g9K5CrxEFMkEQPxG9sxa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 86, "user_id" = 95, "created_at" = '2013-07-18 00:02:37.521381', "updated_at" = '2013-07-18 00:02:37.521381', "auth_token" = 'g9K5CrxEFMkEQPxG9sxa' WHERE "public"."cadenero_members"."id" = 52  (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" = 95 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 95 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 95 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 95 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 4.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/95" for 127.0.0.1 at 2013-07-17 19:02:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"95"} 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" = 86 AND "public"."cadenero_users"."id" = 95 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 95 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 95 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" = 95 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.5ms)  (4.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (1.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$.pyz0LH85jhPgdfO9WygOuV5dOIglg8SDwJx16PNnyQi6CnBAWxFu"], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 96], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'svYxwTENhP9mWmpqGqgb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 96, "created_at" = '2013-07-18 00:02:37.670544', "updated_at" = '2013-07-18 00:02:37.670544', "auth_token" = 'svYxwTENhP9mWmpqGqgb' WHERE "public"."cadenero_accounts"."id" = 87  (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", 87], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["user_id", 96]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ou5umcLMAz3s4q6wsxyB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 87, "user_id" = 96, "created_at" = '2013-07-18 00:02:37.676161', "updated_at" = '2013-07-18 00:02:37.676161', "auth_token" = 'ou5umcLMAz3s4q6wsxyB' WHERE "public"."cadenero_members"."id" = 53  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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, "auth_token" character varying(255))  (5.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")  (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)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 96 Started GET "/v1?auth_token[]=ou5umcLMAz3s4q6wsxyB" for 127.0.0.1 at 2013-07-17 19:02:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ou5umcLMAz3s4q6wsxyB"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 87 AND "public"."cadenero_members"."auth_token" IN ('ou5umcLMAz3s4q6wsxyB') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$zhMh6nVMOEXjwS5GHg03me3B0GD0wT.16ScW4ozErxIIqhgUQlk7."], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 97], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ktyXynSmsWfhF6i2w9rx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 97, "created_at" = '2013-07-18 00:02:37.895153', "updated_at" = '2013-07-18 00:02:37.895153', "auth_token" = 'ktyXynSmsWfhF6i2w9rx' WHERE "public"."cadenero_accounts"."id" = 88  (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", 88], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:37 UTC +00:00], ["user_id", 97]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZGpGkWt5BWbFFR5mD4su' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 88, "user_id" = 97, "created_at" = '2013-07-18 00:02:37.901324', "updated_at" = '2013-07-18 00:02:37.901324', "auth_token" = 'ZGpGkWt5BWbFFR5mD4su' WHERE "public"."cadenero_members"."id" = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (12.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) 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)  (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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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, 18 Jul 2013 00:02:38 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$V0iIzyODjyuQsl5PR.RJwOGtb0MRsTCvSrDJr06awIVpZLfJq1HcO"], ["updated_at", Thu, 18 Jul 2013 00:02: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 (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 98], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sLxGmakppSeLA6guUpU1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 98, "created_at" = '2013-07-18 00:02:38.173282', "updated_at" = '2013-07-18 00:02:38.173282', "auth_token" = 'sLxGmakppSeLA6guUpU1' WHERE "public"."cadenero_accounts"."id" = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 89], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["user_id", 98]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EJsqFRBF74cy6bcJaJVe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 89, "user_id" = 98, "created_at" = '2013-07-18 00:02:38.178957', "updated_at" = '2013-07-18 00:02:38.178957', "auth_token" = 'EJsqFRBF74cy6bcJaJVe' WHERE "public"."cadenero_members"."id" = 55  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.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.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)   (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 98 Started GET "/v1?auth_token[]=EJsqFRBF74cy6bcJaJVe" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["EJsqFRBF74cy6bcJaJVe"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 88 AND "public"."cadenero_members"."auth_token" IN ('EJsqFRBF74cy6bcJaJVe') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$hWvHtUAQM/FAASE10T7Uwuo.OkTAeKPcg6Twavoa.zyn/MjvBzVEu"], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 99], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Jvxuzf2Gpfvfetk3syY3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 99, "created_at" = '2013-07-18 00:02:38.369148', "updated_at" = '2013-07-18 00:02:38.369148', "auth_token" = 'Jvxuzf2Gpfvfetk3syY3' WHERE "public"."cadenero_accounts"."id" = 90  (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", 90], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["user_id", 99]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gszZ6cFzPqefgyK5Tz4q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 90, "user_id" = 99, "created_at" = '2013-07-18 00:02:38.374888', "updated_at" = '2013-07-18 00:02:38.374888', "auth_token" = 'gszZ6cFzPqefgyK5Tz4q' WHERE "public"."cadenero_members"."id" = 56  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02:38 -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" = 'test7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$15uqdFZDHbVuknfO9s0MMObDtDhi11k/bdjDg37K0gXSBLWiwFciy"], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 90], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["user_id", 100]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TxwPekZbPCmQopJ5wWyj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 90, "user_id" = 100, "created_at" = '2013-07-18 00:02:38.550016', "updated_at" = '2013-07-18 00:02:38.550016', "auth_token" = 'TxwPekZbPCmQopJ5wWyj' WHERE "public"."cadenero_members"."id" = 57  (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" = 100 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 100 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 100 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 100 Completed 201 Created in 127ms (Views: 5.5ms | 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/100" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"100"} 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" = 90 AND "public"."cadenero_users"."id" = 100 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 100 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 100 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 100 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 100 Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 99 Started GET "/v1?auth_token[]=gszZ6cFzPqefgyK5Tz4q" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["gszZ6cFzPqefgyK5Tz4q"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 90 AND "public"."cadenero_members"."auth_token" IN ('gszZ6cFzPqefgyK5Tz4q') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 99 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 99 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 100 Started GET "/v1?auth_token[]=TxwPekZbPCmQopJ5wWyj" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["TxwPekZbPCmQopJ5wWyj"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 90 AND "public"."cadenero_members"."auth_token" IN ('TxwPekZbPCmQopJ5wWyj') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 100 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 100 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bfk4Q9paeKb.lTKbJmRlh.1QIefQmw9sLKZOIc6pPGiflg2/6jOcK"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 101], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wTDi76S6Us87CzxcPq2x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 101, "created_at" = '2013-07-18 00:02:38.715611', "updated_at" = '2013-07-18 00:02:38.715611', "auth_token" = 'wTDi76S6Us87CzxcPq2x' WHERE "public"."cadenero_accounts"."id" = 91  (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", 91], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SHVidzYjn9HzngDd4bND' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 91, "user_id" = 101, "created_at" = '2013-07-18 00:02:38.721033', "updated_at" = '2013-07-18 00:02:38.721033', "auth_token" = 'SHVidzYjn9HzngDd4bND' WHERE "public"."cadenero_members"."id" = 58  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$x3l3NQYZ48Z8Qa2hPyTPPuRdjNZWyLuixunVuvrBA9Xx/HaIiJ73u"], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 91], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:38 UTC +00:00], ["user_id", 102]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FLHNSehw81vbt73PwVa2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 91, "user_id" = 102, "created_at" = '2013-07-18 00:02:38.878163', "updated_at" = '2013-07-18 00:02:38.878163', "auth_token" = 'FLHNSehw81vbt73PwVa2' WHERE "public"."cadenero_members"."id" = 59  (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" = 102 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 102 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 102 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 102 Completed 201 Created in 111ms (Views: 5.4ms | 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/102" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"102"} Cadenero::V1::Account Load (0.6ms) 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" = 91 AND "public"."cadenero_users"."id" = 102 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 102 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 102 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 102 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 102 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 102 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 102 Completed 201 Created in 8ms (Views: 5.0ms | 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-17 19:02:38 -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" = 102 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$EAIEo0irxqDEUwn035aFcOk/wPjcEfMPq8iAhdKc20JcpHztv0OeG"], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 103], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZiHyWSZ9ipVed1jjpYDm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 103, "created_at" = '2013-07-18 00:02:39.042062', "updated_at" = '2013-07-18 00:02:39.042062', "auth_token" = 'ZiHyWSZ9ipVed1jjpYDm' WHERE "public"."cadenero_accounts"."id" = 92  (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", 92], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["user_id", 103]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HpHJUxxz8zsm1R5GnTqB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 92, "user_id" = 103, "created_at" = '2013-07-18 00:02:39.047443', "updated_at" = '2013-07-18 00:02:39.047443', "auth_token" = 'HpHJUxxz8zsm1R5GnTqB' WHERE "public"."cadenero_members"."id" = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.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")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:39 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') 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" = 92 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" = 103 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 103 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 103 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 103 Completed 201 Created in 110ms (Views: 5.2ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 103 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:39 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"103", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 103 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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)  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$P6EN7ebi3439lv04nSsdmeJ89LnEFMTp2uW.b07j5DzwrslekqSRC"], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 104], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zMdcDKQcuqu728bqUxPu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 104, "created_at" = '2013-07-18 00:02:39.368663', "updated_at" = '2013-07-18 00:02:39.368663', "auth_token" = 'zMdcDKQcuqu728bqUxPu' WHERE "public"."cadenero_accounts"."id" = 93  (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", 93], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["user_id", 104]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ppFXyirqBwYCBymqsKos' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 93, "user_id" = 104, "created_at" = '2013-07-18 00:02:39.374711', "updated_at" = '2013-07-18 00:02:39.374711', "auth_token" = 'ppFXyirqBwYCBymqsKos' WHERE "public"."cadenero_members"."id" = 61  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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-17 19:02:39 -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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 93 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" = 104 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 104 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 104 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 104 Completed 201 Created in 107ms (Views: 5.6ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 104 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$NoJClkuizkT0QhwV/j.9vOaE7nMFPzw9f4gnKakaZ8KaY7NhIz/4K"], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 105], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VVm7e6kkS9uLYCQt8wzu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 105, "created_at" = '2013-07-18 00:02:39.670432', "updated_at" = '2013-07-18 00:02:39.670432', "auth_token" = 'VVm7e6kkS9uLYCQt8wzu' WHERE "public"."cadenero_accounts"."id" = 94  (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", 94], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["user_id", 105]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zrhC23goGAU6KUrZkNaX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 94, "user_id" = 105, "created_at" = '2013-07-18 00:02:39.676560', "updated_at" = '2013-07-18 00:02:39.676560', "auth_token" = 'zrhC23goGAU6KUrZkNaX' WHERE "public"."cadenero_members"."id" = 62  (0.1ms) 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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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")  (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.2ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:39 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@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 ('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" = 94 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" = 105 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 105 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 105 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 105 Completed 201 Created in 110ms (Views: 6.1ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 105 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:39 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"105", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 105 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:02:39 -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" = '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", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$7OOcWcSXk1m/8gv74Eqd1.LAbLvEWB290fzvgwWUiqpixWv3kcA.a"], ["updated_at", Thu, 18 Jul 2013 00:02:39 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", 94], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:39 UTC +00:00], ["user_id", 106]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'diwyuQGY4m8LYZpabHF9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 94, "user_id" = 106, "created_at" = '2013-07-18 00:02:39.959383', "updated_at" = '2013-07-18 00:02:39.959383', "auth_token" = 'diwyuQGY4m8LYZpabHF9' WHERE "public"."cadenero_members"."id" = 63  (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" = 106 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 106 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 106 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 106 Completed 201 Created in 114ms (Views: 6.0ms | 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/106" for 127.0.0.1 at 2013-07-17 19:02:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"106"} 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" = 94 AND "public"."cadenero_users"."id" = 106 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 106 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 106 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 106 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:39 -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" = 106 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 106 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 106 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 106 Completed 201 Created in 10ms (Views: 7.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  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$WKNM9rRNlly8B5eKIs7ikutSxEaLX0GhflykMtery.YgToePOEAMC"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test12' LIMIT 1 SQL (52.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 107], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7vSbUsEX6J1ekpsiYosg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 107, "created_at" = '2013-07-18 00:02:40.118458', "updated_at" = '2013-07-18 00:02:40.118458', "auth_token" = '7vSbUsEX6J1ekpsiYosg' WHERE "public"."cadenero_accounts"."id" = 95  (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", 95], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["user_id", 107]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7YHxQjyxtwi42pKrmyBq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 95, "user_id" = 107, "created_at" = '2013-07-18 00:02:40.177637', "updated_at" = '2013-07-18 00:02:40.177637', "auth_token" = '7YHxQjyxtwi42pKrmyBq' WHERE "public"."cadenero_members"."id" = 64  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.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.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) 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 ('20130717234244')  (0.5ms) 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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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-17 19:02: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 95 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.2ms) ROLLBACK  (0.1ms) BEGIN  (1.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$0sQehIjEEs84nPbwlu3b.ubdNbm/oKwVmaNQ29jgkmkMEtM8iIsvS"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 108], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nzZdGdN5q46iQFasvxVx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 108, "created_at" = '2013-07-18 00:02:40.361678', "updated_at" = '2013-07-18 00:02:40.361678', "auth_token" = 'nzZdGdN5q46iQFasvxVx' WHERE "public"."cadenero_accounts"."id" = 96  (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", 96], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["user_id", 108]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xQTqBfpjDp4rNnJKnsip' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 96, "user_id" = 108, "created_at" = '2013-07-18 00:02:40.367170', "updated_at" = '2013-07-18 00:02:40.367170', "auth_token" = 'xQTqBfpjDp4rNnJKnsip' WHERE "public"."cadenero_members"."id" = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) 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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$qRWzOHrpXo6PLVp7ARduH.bfRD3bR/1T855vurLDYXGg.nFC8WnOe"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 109], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xyZzmsUA3qdFRSfszjvs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 109, "created_at" = '2013-07-18 00:02:40.526277', "updated_at" = '2013-07-18 00:02:40.526277', "auth_token" = 'xyZzmsUA3qdFRSfszjvs' WHERE "public"."cadenero_accounts"."id" = 97  (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", 97], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["user_id", 109]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2BEj7yCpfWLMt3qiHKUa' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 97, "user_id" = 109, "created_at" = '2013-07-18 00:02:40.531453', "updated_at" = '2013-07-18 00:02:40.531453', "auth_token" = '2BEj7yCpfWLMt3qiHKUa' WHERE "public"."cadenero_members"."id" = 66  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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-17 19:02:40 -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 ('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" = 96 AND "public"."cadenero_users"."email" = 'user13@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  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$xkHuIxdQMaMgX9lgW7W10.ZQRKlouhNs7Xr4QRv9X/efyK76A7RmK"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 110], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9zxWVSehg3pL3Sf9YXw7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 110, "created_at" = '2013-07-18 00:02:40.665823', "updated_at" = '2013-07-18 00:02:40.665823', "auth_token" = '9zxWVSehg3pL3Sf9YXw7' WHERE "public"."cadenero_accounts"."id" = 98  (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", 98], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["user_id", 110]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't2RRveNT5SvtCVdaLZwd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 98, "user_id" = 110, "created_at" = '2013-07-18 00:02:40.671302', "updated_at" = '2013-07-18 00:02:40.671302', "auth_token" = 't2RRveNT5SvtCVdaLZwd' WHERE "public"."cadenero_members"."id" = 67  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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")  (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")  (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")  (0.2ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:02: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-17 19:02: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 98 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.1ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$imQhARYcjrqYJO4uBKcK7uDSUErOnhANmBCreVagyw7Pb4Jej7DFq"], ["updated_at", Thu, 18 Jul 2013 00:02: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" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 111], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'veHmLDWVeWzNuPtBesxG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 111, "created_at" = '2013-07-18 00:02:40.846939', "updated_at" = '2013-07-18 00:02:40.846939', "auth_token" = 'veHmLDWVeWzNuPtBesxG' WHERE "public"."cadenero_accounts"."id" = 99  (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", 99], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:40 UTC +00:00], ["user_id", 111]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ia1WS27M4fzrqAaJXpiV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 99, "user_id" = 111, "created_at" = '2013-07-18 00:02:40.852426', "updated_at" = '2013-07-18 00:02:40.852426', "auth_token" = 'ia1WS27M4fzrqAaJXpiV' WHERE "public"."cadenero_members"."id" = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:02:40 -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  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.9ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$lBdlVZt8l1ElZw9u8jFuGe174nrhbx6/CSVnM0eQyR5sNx4aQ6qAq"], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 112], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1QNUHtesyPryTyVyQX6p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 112, "created_at" = '2013-07-18 00:02:44.462179', "updated_at" = '2013-07-18 00:02:44.462179', "auth_token" = '1QNUHtesyPryTyVyQX6p' WHERE "public"."cadenero_accounts"."id" = 100  (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", 100], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["user_id", 112]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KxRXmpsRsBVwUPEJ4k3X' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 100, "user_id" = 112, "created_at" = '2013-07-18 00:02:44.468328', "updated_at" = '2013-07-18 00:02:44.468328', "auth_token" = 'KxRXmpsRsBVwUPEJ4k3X' WHERE "public"."cadenero_members"."id" = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$mEfmR876KVutCq.PNWGiJu/OYOnj/v75ZNDkvomhw/XX9KoyFjrHC"], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Dm5BT/WSEgU1ejrmOuO9i.nn2C/4klRFfSEd3ifh8hFyiCk4TymUS"], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["name", "Root"], ["owner_id", 114], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zjN8QdVxfszYzqbscUwr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 114, "created_at" = '2013-07-18 00:02:44.668414', "updated_at" = '2013-07-18 00:02:44.668414', "auth_token" = 'zjN8QdVxfszYzqbscUwr' WHERE "public"."cadenero_accounts"."id" = 101  (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", 101], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:44 UTC +00:00], ["user_id", 114]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sHWgVJNzky4zAHEKyABK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 101, "user_id" = 114, "created_at" = '2013-07-18 00:02:44.673685', "updated_at" = '2013-07-18 00:02:44.673685', "auth_token" = 'sHWgVJNzky4zAHEKyABK' WHERE "public"."cadenero_members"."id" = 70  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (21.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.2ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (7.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 70ms (Views: 69.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8CTwq6K3gpxpaJqY8kbt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 00:02:49.190944', "updated_at" = '2013-07-18 00:02:49.190944', "auth_token" = '8CTwq6K3gpxpaJqY8kbt' WHERE "public"."cadenero_members"."id" = 71  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$G3lH71Mdn9J0z.buNJxDx.e/oUihd3VUwoQ4Jx/oWPOO.YELTJEkS"], ["updated_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["name", "Testy"], ["owner_id", 115], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'et8sSUv8ptCxKUYFmy1e' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 115, "created_at" = '2013-07-18 00:02:49.303124', "updated_at" = '2013-07-18 00:02:49.303124', "auth_token" = 'et8sSUv8ptCxKUYFmy1e' WHERE "public"."cadenero_accounts"."id" = 102  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:02: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 110ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:02: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 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$F2QHWXxJH6XbI6pelS8yb.Enl4km5yFIS7dj6CC0kVHzwSPl3Ci5m"], ["updated_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["name", "Testy"], ["owner_id", 116], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'msf6YXmjFLnHzpvLupj7' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 116, "created_at" = '2013-07-18 00:02:49.537167', "updated_at" = '2013-07-18 00:02:49.537167', "auth_token" = 'msf6YXmjFLnHzpvLupj7' WHERE "public"."cadenero_accounts"."id" = 103  (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", 103], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:49 UTC +00:00], ["user_id", 116]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yxio5Ty33RRGTTFKMyzy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 103, "user_id" = 116, "created_at" = '2013-07-18 00:02:49.543521', "updated_at" = '2013-07-18 00:02:49.543521', "auth_token" = 'yxio5Ty33RRGTTFKMyzy' WHERE "public"."cadenero_members"."id" = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (13.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.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.5ms) 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.9ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" != 103) LIMIT 1 Completed 201 Created in 193ms (Views: 1.9ms | ActiveRecord: 56.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (20.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (3.5ms) COMMIT  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (5.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (21.5ms) 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 (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:02:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$KcQxscwAOVbRd5aqzEZNh.8453EHxxxBoOWApGQA/xyM8aYO3swx2"], ["updated_at", Thu, 18 Jul 2013 00:02:50 UTC +00:00]] SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:50 UTC +00:00], ["name", "Test Account"], ["owner_id", 117], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:02:50 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rxJeLP4T729oxNiQFJp5' LIMIT 1  (4.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 117, "created_at" = '2013-07-18 00:02:50.978069', "updated_at" = '2013-07-18 00:02:50.978069', "auth_token" = 'rxJeLP4T729oxNiQFJp5' WHERE "public"."cadenero_accounts"."id" = 104  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 104], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:02:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:02:50 UTC +00:00], ["user_id", 117]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Y52Azn8YSDVy1jgtzugS' LIMIT 1  (2.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 104, "user_id" = 117, "created_at" = '2013-07-18 00:02:50.992480', "updated_at" = '2013-07-18 00:02:50.992480', "auth_token" = 'Y52Azn8YSDVy1jgtzugS' WHERE "public"."cadenero_members"."id" = 73  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.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.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)   (3.2ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" = 104 LIMIT 1  (15.4ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (12.7ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$T8qWoj18/hw/GXGcEkN2b.MsdJyZ0kfMVm.X2Kk7NK6UeoNClkVuG"], ["updated_at", Thu, 18 Jul 2013 00:04:02 UTC +00:00]] SQL (8.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:02 UTC +00:00], ["name", "Test Account"], ["owner_id", 118], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:04:02 UTC +00:00]] Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Tmt1NYHZVtSxctN8B2oZ' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 118, "created_at" = '2013-07-18 00:04:02.754599', "updated_at" = '2013-07-18 00:04:02.754599', "auth_token" = 'Tmt1NYHZVtSxctN8B2oZ' WHERE "public"."cadenero_accounts"."id" = 105  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 105], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:02 UTC +00:00], ["user_id", 118]] Cadenero::Member Load (4.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gnUHX1Yozdpp3ya39D6e' LIMIT 1  (2.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 105, "user_id" = 118, "created_at" = '2013-07-18 00:04:02.902696', "updated_at" = '2013-07-18 00:04:02.902696', "auth_token" = 'gnUHX1Yozdpp3ya39D6e' WHERE "public"."cadenero_members"."id" = 74  (2.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) CREATE SCHEMA "test"  (12.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" = 105 LIMIT 1  (13.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (9.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (7.8ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (5.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.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 24ms (Views: 22.9ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (2.3ms) COMMIT  (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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$LSa0jat8epnuampAaqq7puMbubKoHagqQWw.qkUkGoxk5Lic5zUAm"], ["updated_at", Thu, 18 Jul 2013 00:04:04 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" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 119], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ExzsGzt5pfmGdsqvEjq4' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 119, "created_at" = '2013-07-18 00:04:04.250767', "updated_at" = '2013-07-18 00:04:04.250767', "auth_token" = 'ExzsGzt5pfmGdsqvEjq4' WHERE "public"."cadenero_accounts"."id" = 106  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 106], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["user_id", 119]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zAuc6NGwvuAzGCypQp4p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 106, "user_id" = 119, "created_at" = '2013-07-18 00:04:04.257310', "updated_at" = '2013-07-18 00:04:04.257310', "auth_token" = 'zAuc6NGwvuAzGCypQp4p' WHERE "public"."cadenero_members"."id" = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (7.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:04:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/uu4SIcd8vlht81mCtcI6ewAmSWsIMKcWHsBb.rFnZiI4/KRM9T36"], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 106], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["user_id", 120]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QqvG8eXKcwsRU2opEER1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 106, "user_id" = 120, "created_at" = '2013-07-18 00:04:04.425577', "updated_at" = '2013-07-18 00:04:04.425577', "auth_token" = 'QqvG8eXKcwsRU2opEER1' WHERE "public"."cadenero_members"."id" = 76  (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" = 120 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 120 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 120 Cadenero::V1::Account Load (0.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" = 120 Completed 201 Created in 119ms (Views: 7.3ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/120" for 127.0.0.1 at 2013-07-17 19:04:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"120"} 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" = 106 AND "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 120 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 120 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 120 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.8ms)  (7.6ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Fp625zA7sn73e/5N4isNyOlBBfPIXrohVh6AAWL8HGh7slcizEoWK"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 121], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8s3NuxHzLsbERMuqRfam' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 121, "created_at" = '2013-07-18 00:04:04.581113', "updated_at" = '2013-07-18 00:04:04.581113', "auth_token" = '8s3NuxHzLsbERMuqRfam' WHERE "public"."cadenero_accounts"."id" = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 107], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["user_id", 121]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AGDQyh7Vx3zVXzxhyj8q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 107, "user_id" = 121, "created_at" = '2013-07-18 00:04:04.587011', "updated_at" = '2013-07-18 00:04:04.587011', "auth_token" = 'AGDQyh7Vx3zVXzxhyj8q' WHERE "public"."cadenero_members"."id" = 77  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:04:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9KLTay1r1pyxRexplJXs3e6bTRxs/W4Pa9rXrZdMMP4S60mZr5G2i"], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 107], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["user_id", 122]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fH2ayLjbDzxrwBGWYNSk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 107, "user_id" = 122, "created_at" = '2013-07-18 00:04:04.753644', "updated_at" = '2013-07-18 00:04:04.753644', "auth_token" = 'fH2ayLjbDzxrwBGWYNSk' WHERE "public"."cadenero_members"."id" = 78  (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" = 122 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 122 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 122 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 122 Completed 201 Created in 113ms (Views: 5.7ms | 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/122" for 127.0.0.1 at 2013-07-17 19:04:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"122"} 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" = 107 AND "public"."cadenero_users"."id" = 122 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 122 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 122 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 122 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" = 122 Completed 200 OK in 14ms (Views: 7.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 (3.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 122], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'N9xNLxpUcywPSJz2mRwU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 122, "created_at" = '2013-07-18 00:04:04.792247', "updated_at" = '2013-07-18 00:04:04.792247', "auth_token" = 'N9xNLxpUcywPSJz2mRwU' WHERE "public"."cadenero_accounts"."id" = 108  (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", 108], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["user_id", 122]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cyMzpRgpELukMmsTnFtT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 108, "user_id" = 122, "created_at" = '2013-07-18 00:04:04.798434', "updated_at" = '2013-07-18 00:04:04.798434', "auth_token" = 'cyMzpRgpELukMmsTnFtT' WHERE "public"."cadenero_members"."id" = 79  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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 ('20130717234244')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:04:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$M7cf6gzmG.jCRtf4NDzIRuT3TZTe4QBfa1gtuycbWrL83IgHdfErm"], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 108], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:04 UTC +00:00], ["user_id", 123]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ayGxzkJpw31VYa1wfTXx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 108, "user_id" = 123, "created_at" = '2013-07-18 00:04:04.990472', "updated_at" = '2013-07-18 00:04:04.990472', "auth_token" = 'ayGxzkJpw31VYa1wfTXx' WHERE "public"."cadenero_members"."id" = 80  (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" = 123 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 123 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 123 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 123 Completed 201 Created in 126ms (Views: 5.7ms | 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/123" for 127.0.0.1 at 2013-07-17 19:04:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"123"} 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" = 108 AND "public"."cadenero_users"."id" = 123 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 123 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 123 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 123 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 123 Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 1.8ms) Started GET "/v1/users/122" for 127.0.0.1 at 2013-07-17 19:04:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"122"} 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" = 107 AND "public"."cadenero_users"."id" = 122 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 122 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 122 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 122 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 122 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms)  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$LDNagmKOzy/55k86bfbpluhIKJgO1jvA4GyjdInhjRVRVa0Ep.5Zq"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 124], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LyBp52pj7e38qFFVoSza' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 124, "created_at" = '2013-07-18 00:04:05.167590', "updated_at" = '2013-07-18 00:04:05.167590', "auth_token" = 'LyBp52pj7e38qFFVoSza' WHERE "public"."cadenero_accounts"."id" = 109  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 109], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["user_id", 124]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VuQxEtWoWVQKontsBzaT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 109, "user_id" = 124, "created_at" = '2013-07-18 00:04:05.204489', "updated_at" = '2013-07-18 00:04:05.204489', "auth_token" = 'VuQxEtWoWVQKontsBzaT' WHERE "public"."cadenero_members"."id" = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.9ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:04: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 ('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" = 109 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" = 124 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 124 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 124 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 124 Completed 201 Created in 109ms (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"."user_id" = 124 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-17 19:04:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"124", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 124 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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-17 19:04: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.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", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$9dlFG5iJ15Qd.k/RaPzxYuyiSZn365ZKQ8S3iTm3CduEYfJ2ZF58a"], ["updated_at", Thu, 18 Jul 2013 00:04: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", 109], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["user_id", 125]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HvzgBjG6AxtzLLwWyrgd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 109, "user_id" = 125, "created_at" = '2013-07-18 00:04:05.553039', "updated_at" = '2013-07-18 00:04:05.553039', "auth_token" = 'HvzgBjG6AxtzLLwWyrgd' WHERE "public"."cadenero_members"."id" = 82  (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" = 125 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 125 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 125 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 125 Completed 201 Created in 112ms (Views: 5.6ms | 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/125" for 127.0.0.1 at 2013-07-17 19:04:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"125"} 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" = 109 AND "public"."cadenero_users"."id" = 125 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 125 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 125 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 125 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 125 Completed 200 OK in 11ms (Views: 6.2ms | 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-17 19:04: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" = 125 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 125 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 125 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 125 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$GYIjptVrdfNUJxkB0Sl5T.AwacAqCeEjhCR7rzQ/qDIrn64MhBul2"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 126], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jVqjMAgSuxPzEjUPWwep' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 126, "created_at" = '2013-07-18 00:04:05.708561', "updated_at" = '2013-07-18 00:04:05.708561', "auth_token" = 'jVqjMAgSuxPzEjUPWwep' WHERE "public"."cadenero_accounts"."id" = 110  (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", 110], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["user_id", 126]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bH63FExqgpzP86SR9M41' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 110, "user_id" = 126, "created_at" = '2013-07-18 00:04:05.713982', "updated_at" = '2013-07-18 00:04:05.713982', "auth_token" = 'bH63FExqgpzP86SR9M41' WHERE "public"."cadenero_members"."id" = 83  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (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 ('20130717234244')  (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')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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-17 19:04: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" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$N9XSJW1q2Lr6vG1biR8xc.OKtPZyzm17s6Nc76geoBRKoY7MBViuK"], ["updated_at", Thu, 18 Jul 2013 00:04:05 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", 110], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:05 UTC +00:00], ["user_id", 127]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xDepLyfm7EdwyeWpyJTt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 110, "user_id" = 127, "created_at" = '2013-07-18 00:04:05.873154', "updated_at" = '2013-07-18 00:04:05.873154', "auth_token" = 'xDepLyfm7EdwyeWpyJTt' WHERE "public"."cadenero_members"."id" = 84  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 127 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 127 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 127 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 127 Completed 201 Created in 112ms (Views: 5.6ms | 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/127" for 127.0.0.1 at 2013-07-17 19:04:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"127"} 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" = 110 AND "public"."cadenero_users"."id" = 127 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 127 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 127 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 127 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 127 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:04: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" = 127 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 127 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 127 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 127 Completed 201 Created in 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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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" = 127 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (3.7ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$vgvKKIboOyPVHbv5mjnvKeguQIP8giGeXOAYXORBLchcZ1ANEKNWy"], ["updated_at", Thu, 18 Jul 2013 00:04: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 128], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bJjkSyGsP6ScXSYYpAJR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 128, "created_at" = '2013-07-18 00:04:06.031925', "updated_at" = '2013-07-18 00:04:06.031925', "auth_token" = 'bJjkSyGsP6ScXSYYpAJR' WHERE "public"."cadenero_accounts"."id" = 111  (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", 111], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["user_id", 128]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sUyq6VJ7DWRadyp22knn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 111, "user_id" = 128, "created_at" = '2013-07-18 00:04:06.037332', "updated_at" = '2013-07-18 00:04:06.037332', "auth_token" = 'sUyq6VJ7DWRadyp22knn' WHERE "public"."cadenero_members"."id" = 85  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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")  (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")  (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.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 ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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-17 19:04:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 111 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 128 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 128 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 128 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 128 Completed 201 Created in 110ms (Views: 5.2ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 128 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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" = 128 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$oB.gIS9EEiuVBVW2MKHNdexV8UxFP8NmtrHpmQn1jrN3Q8XVg9NFm"], ["updated_at", Thu, 18 Jul 2013 00:04: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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 129], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5yozfYV38JuUxFjLx3wh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 129, "created_at" = '2013-07-18 00:04:06.329343', "updated_at" = '2013-07-18 00:04:06.329343', "auth_token" = '5yozfYV38JuUxFjLx3wh' WHERE "public"."cadenero_accounts"."id" = 112  (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", 112], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["user_id", 129]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pp3BbvJ82V6Nd9ssipLL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 112, "user_id" = 129, "created_at" = '2013-07-18 00:04:06.334751', "updated_at" = '2013-07-18 00:04:06.334751', "auth_token" = 'pp3BbvJ82V6Nd9ssipLL' WHERE "public"."cadenero_members"."id" = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:04: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 112 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" = 129 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 129 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 129 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 129 Completed 201 Created in 107ms (Views: 5.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 129 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:04:06 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"129", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 129 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$38lj/0XCfFaKOb1vwHEinevwVkdXyMm4zIXKkoiTLx6RMO9IeDveS"], ["updated_at", Thu, 18 Jul 2013 00:04: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 130], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KwewViBAefxYJkTakLtz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 130, "created_at" = '2013-07-18 00:04:06.669687', "updated_at" = '2013-07-18 00:04:06.669687', "auth_token" = 'KwewViBAefxYJkTakLtz' WHERE "public"."cadenero_accounts"."id" = 113  (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", 113], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["user_id", 130]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xPrnuLsuC1aghyrEdVwX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 113, "user_id" = 130, "created_at" = '2013-07-18 00:04:06.675478', "updated_at" = '2013-07-18 00:04:06.675478', "auth_token" = 'xPrnuLsuC1aghyrEdVwX' WHERE "public"."cadenero_members"."id" = 87  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:04:06 -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.1ms) BEGIN  (0.2ms) COMMIT  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$SbrzSHxCn8NbY615V6rGoO28WYlSMGH8PMdvYdt5lFY96dAFLUWK2"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 131], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6pgRDB8sw8V6pVdkk9Ha' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 131, "created_at" = '2013-07-18 00:04:06.850629', "updated_at" = '2013-07-18 00:04:06.850629', "auth_token" = '6pgRDB8sw8V6pVdkk9Ha' WHERE "public"."cadenero_accounts"."id" = 114  (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", 114], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:06 UTC +00:00], ["user_id", 131]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DLp6j9s2pmDGRaiS5wS3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 114, "user_id" = 131, "created_at" = '2013-07-18 00:04:06.856168', "updated_at" = '2013-07-18 00:04:06.856168', "auth_token" = 'DLp6j9s2pmDGRaiS5wS3' WHERE "public"."cadenero_members"."id" = 88  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))   (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.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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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-17 19:04: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 ('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" = 114 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$.wO04GwScduzd0wUvXKhw.qnAvSD.Fs1djrywDwWaECbnp/hEky.u"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 132], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CmFXiG55ggL7VZhGw4KZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 132, "created_at" = '2013-07-18 00:04:07.045588', "updated_at" = '2013-07-18 00:04:07.045588', "auth_token" = 'CmFXiG55ggL7VZhGw4KZ' WHERE "public"."cadenero_accounts"."id" = 115  (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", 115], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["user_id", 132]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jLHcypXvfxUiDaMWd1zi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 115, "user_id" = 132, "created_at" = '2013-07-18 00:04:07.051247', "updated_at" = '2013-07-18 00:04:07.051247', "auth_token" = 'jLHcypXvfxUiDaMWd1zi' WHERE "public"."cadenero_members"."id" = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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")  (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)   (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.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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-17 19:04: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 115 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.5ms) ROLLBACK  (0.7ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$vxGh0otqDA1.w1K4pzm0vu6LCmqabtdQmyhWSDI42ge7jZEMEhfUm"], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 133], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'fc4nZtzsbeQWg7zyCxUj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 133, "created_at" = '2013-07-18 00:04:07.295635', "updated_at" = '2013-07-18 00:04:07.295635', "auth_token" = 'fc4nZtzsbeQWg7zyCxUj' WHERE "public"."cadenero_accounts"."id" = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 116], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["user_id", 133]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Bixt3zvpqP6v4ELxKQDD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 116, "user_id" = 133, "created_at" = '2013-07-18 00:04:07.304021', "updated_at" = '2013-07-18 00:04:07.304021', "auth_token" = 'Bixt3zvpqP6v4ELxKQDD' WHERE "public"."cadenero_members"."id" = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$QUmuqkdo.lxLspcCVm0tZ.cfMOTGLqvLL9xvmC6lNCJyV6dUR3uWm"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 134], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'aqFyDyQLqw5zK2xyFpHp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 134, "created_at" = '2013-07-18 00:04:07.461522', "updated_at" = '2013-07-18 00:04:07.461522', "auth_token" = 'aqFyDyQLqw5zK2xyFpHp' WHERE "public"."cadenero_accounts"."id" = 117  (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", 117], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["user_id", 134]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZVq42YWCXiE3xRnoSqNo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 117, "user_id" = 134, "created_at" = '2013-07-18 00:04:07.466769', "updated_at" = '2013-07-18 00:04:07.466769', "auth_token" = 'ZVq42YWCXiE3xRnoSqNo' WHERE "public"."cadenero_members"."id" = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04: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-17 19:04:07 -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 ('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" = 116 AND "public"."cadenero_users"."email" = 'user11@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  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$pI/HGtlycbVqZphJXoJHN.IwQTPRBPPZmcH6MWwxe4YqzKPAV9oIS"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 135], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vFkGuaBdZjHxNvT4UFHR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 135, "created_at" = '2013-07-18 00:04:07.597448', "updated_at" = '2013-07-18 00:04:07.597448', "auth_token" = 'vFkGuaBdZjHxNvT4UFHR' WHERE "public"."cadenero_accounts"."id" = 118  (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", 118], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["user_id", 135]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'feniKy9geVJLgyHkMpUc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 118, "user_id" = 135, "created_at" = '2013-07-18 00:04:07.604829', "updated_at" = '2013-07-18 00:04:07.604829', "auth_token" = 'feniKy9geVJLgyHkMpUc' WHERE "public"."cadenero_members"."id" = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 135 Started GET "/v1?auth_token[]=feniKy9geVJLgyHkMpUc" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["feniKy9geVJLgyHkMpUc"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 118 AND "public"."cadenero_members"."auth_token" IN ('feniKy9geVJLgyHkMpUc') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 135 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 135 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$85Vz.xBH16NuGk0V4X.sT.Mlf.ZwUEb35U0OvQkVjIr9wjqcU/iue"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 136], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Px9pK5NFpXnsKLfYp1X4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 136, "created_at" = '2013-07-18 00:04:07.784103', "updated_at" = '2013-07-18 00:04:07.784103', "auth_token" = 'Px9pK5NFpXnsKLfYp1X4' WHERE "public"."cadenero_accounts"."id" = 119  (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", 119], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["user_id", 136]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kBG2jJXtjxQVR7zsW35V' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 119, "user_id" = 136, "created_at" = '2013-07-18 00:04:07.789513', "updated_at" = '2013-07-18 00:04:07.789513', "auth_token" = 'kBG2jJXtjxQVR7zsW35V' WHERE "public"."cadenero_members"."id" = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("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")  (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.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CJThtcc7wsmOG1IuOVZ2puVDOCHGVLk5kB7WojdMHsWLIKCnbassu"], ["updated_at", Thu, 18 Jul 2013 00:04: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", 119], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:07 UTC +00:00], ["user_id", 137]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WwHA4wtLGqyX4VfSdBPF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 119, "user_id" = 137, "created_at" = '2013-07-18 00:04:07.957876', "updated_at" = '2013-07-18 00:04:07.957876', "auth_token" = 'WwHA4wtLGqyX4VfSdBPF' WHERE "public"."cadenero_members"."id" = 94  (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" = 137 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 137 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 137 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 137 Completed 201 Created in 117ms (Views: 6.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/137" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"137"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 119 AND "public"."cadenero_users"."id" = 137 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 137 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 137 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 137 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 137 Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 136 Started GET "/v1?auth_token[]=kBG2jJXtjxQVR7zsW35V" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["kBG2jJXtjxQVR7zsW35V"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 119 AND "public"."cadenero_members"."auth_token" IN ('kBG2jJXtjxQVR7zsW35V') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 136 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 136 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 137 Started GET "/v1?auth_token[]=WwHA4wtLGqyX4VfSdBPF" for 127.0.0.1 at 2013-07-17 19:04:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["WwHA4wtLGqyX4VfSdBPF"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 119 AND "public"."cadenero_members"."auth_token" IN ('WwHA4wtLGqyX4VfSdBPF') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 137 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 137 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (6.5ms) ROLLBACK  (1.2ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$fwJTrBn/8Zgc2U5mCWiAX.svm/1hISD0KwTDwzJdbkmtWjJEQtzi."], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 138], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jpsWA4eLERXKavgoeGxa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 138, "created_at" = '2013-07-18 00:04:08.121825', "updated_at" = '2013-07-18 00:04:08.121825', "auth_token" = 'jpsWA4eLERXKavgoeGxa' WHERE "public"."cadenero_accounts"."id" = 120  (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", 120], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["user_id", 138]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dKy6dvdMKtoD4uMA7FZM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 120, "user_id" = 138, "created_at" = '2013-07-18 00:04:08.127317', "updated_at" = '2013-07-18 00:04:08.127317', "auth_token" = 'dKy6dvdMKtoD4uMA7FZM' WHERE "public"."cadenero_members"."id" = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130717234244')  (0.6ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$5R09jjmbQfsOwrS/z78SceoeNsWeArAUakdtqMwvpac8V1R6bbUyG"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 139], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ymhx5mQveYxeta5j7LtM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 139, "created_at" = '2013-07-18 00:04:08.279163', "updated_at" = '2013-07-18 00:04:08.279163', "auth_token" = 'ymhx5mQveYxeta5j7LtM' WHERE "public"."cadenero_accounts"."id" = 121  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 121], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:08 UTC +00:00], ["user_id", 139]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hbp1y4qisATMHnpXEQXR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 121, "user_id" = 139, "created_at" = '2013-07-18 00:04:08.284414', "updated_at" = '2013-07-18 00:04:08.284414', "auth_token" = 'hbp1y4qisATMHnpXEQXR' WHERE "public"."cadenero_members"."id" = 96  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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.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"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:04:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 139 Started GET "/v1?auth_token[]=hbp1y4qisATMHnpXEQXR" for 127.0.0.1 at 2013-07-17 19:04:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hbp1y4qisATMHnpXEQXR"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 120 AND "public"."cadenero_members"."auth_token" IN ('hbp1y4qisATMHnpXEQXR') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (8.3ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) 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", Thu, 18 Jul 2013 00:04:11 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$R2Pco2XBwFIvEBkAbEbB8.dGgGzTbDxtM9brjNN3.c49yG2gC4zve"], ["updated_at", Thu, 18 Jul 2013 00:04: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" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:11 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 140], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:04:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cemGx2x86RdkVcZ2yT7c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 140, "created_at" = '2013-07-18 00:04:11.867099', "updated_at" = '2013-07-18 00:04:11.867099', "auth_token" = 'cemGx2x86RdkVcZ2yT7c' WHERE "public"."cadenero_accounts"."id" = 122  (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", 122], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:11 UTC +00:00], ["user_id", 140]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oByiGcqxxyTVPvryf2yh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 122, "user_id" = 140, "created_at" = '2013-07-18 00:04:11.873625', "updated_at" = '2013-07-18 00:04:11.873625', "auth_token" = 'oByiGcqxxyTVPvryf2yh' WHERE "public"."cadenero_members"."id" = 97  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:11 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$l9uHelDkjfVP6TdVmdnlTuUp90fsBaAS9/dGTgLX6RYRP48rj8J0C"], ["updated_at", Thu, 18 Jul 2013 00:04:11 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", Thu, 18 Jul 2013 00:04:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$fnSBj975yxhIcBHPEht6cOuGaZ7Vk3Yvg9QvBLvHq14mC3u4BBoV6"], ["updated_at", Thu, 18 Jul 2013 00:04: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.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:12 UTC +00:00], ["name", "Root"], ["owner_id", 142], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:04:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1cxCvn1jqmExKaZ8YyVC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 142, "created_at" = '2013-07-18 00:04:12.078628', "updated_at" = '2013-07-18 00:04:12.078628', "auth_token" = '1cxCvn1jqmExKaZ8YyVC' WHERE "public"."cadenero_accounts"."id" = 123  (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", 123], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:12 UTC +00:00], ["user_id", 142]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KHXEPmrN3qHL1HpzLy3M' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 123, "user_id" = 142, "created_at" = '2013-07-18 00:04:12.084822', "updated_at" = '2013-07-18 00:04:12.084822', "auth_token" = 'KHXEPmrN3qHL1HpzLy3M' WHERE "public"."cadenero_members"."id" = 98  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (21.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (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) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) COMMIT  (0.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5x44pNG8GxMUvPxWyrsf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 00:04:16.681240', "updated_at" = '2013-07-18 00:04:16.681240', "auth_token" = '5x44pNG8GxMUvPxWyrsf' WHERE "public"."cadenero_members"."id" = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:04:16 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$MyszLbRnFVP3fl1.723eaulKP2diUKS.TFy6TBp3axB1763qthPZ."], ["updated_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["name", "Testy"], ["owner_id", 143], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SyiJtEsU6ZVy7H8z7gBM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 143, "created_at" = '2013-07-18 00:04:16.799155', "updated_at" = '2013-07-18 00:04:16.799155', "auth_token" = 'SyiJtEsU6ZVy7H8z7gBM' WHERE "public"."cadenero_accounts"."id" = 124  (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", 124], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["user_id", 143]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W54EoCsvHbqBrWTCMaFx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 124, "user_id" = 143, "created_at" = '2013-07-18 00:04:16.805056', "updated_at" = '2013-07-18 00:04:16.805056', "auth_token" = 'W54EoCsvHbqBrWTCMaFx' WHERE "public"."cadenero_members"."id" = 100  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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.9ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" != 124) LIMIT 1 Completed 201 Created in 165ms (Views: 2.0ms | ActiveRecord: 36.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$fbiO5Z/mqGibPqOjlMZ/7upL4DeG8Q7p/APh8BVrRQII/Mopx.B.."], ["updated_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00], ["name", "Testy"], ["owner_id", 144], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:04:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QsL3JqzasfBSCsiGyyEk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 144, "created_at" = '2013-07-18 00:04:16.979633', "updated_at" = '2013-07-18 00:04:16.979633', "auth_token" = 'QsL3JqzasfBSCsiGyyEk' WHERE "public"."cadenero_accounts"."id" = 125  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:04:16 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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.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 105ms (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" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 14ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) 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", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$HkiL2jLxztIKGDAZPlHRmueJ8r5tK2diCQvfKBfmFe/tjj9xWTbSa"], ["updated_at", Thu, 18 Jul 2013 00:08: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" = 'test1' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 145], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7cqLp3Pxzm4JptmTMPQq' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 145, "created_at" = '2013-07-18 00:08:13.698470', "updated_at" = '2013-07-18 00:08:13.698470', "auth_token" = '7cqLp3Pxzm4JptmTMPQq' WHERE "public"."cadenero_accounts"."id" = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 126], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["user_id", 145]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4vSsCsxrxhh9rQ2NQ3k3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 126, "user_id" = 145, "created_at" = '2013-07-18 00:08:13.761803', "updated_at" = '2013-07-18 00:08:13.761803', "auth_token" = '4vSsCsxrxhh9rQ2NQ3k3' WHERE "public"."cadenero_members"."id" = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$UKggNyQ4wxNOGfweYjrzcO6A5497rKMveltCFVkDxrbb6mfaaWZTC"], ["updated_at", Thu, 18 Jul 2013 00:08: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", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$4PcFFYhfT2cwYya.U0rPZ.rK3W/2avZYILeHEXw/9btrvvJiCSC3y"], ["updated_at", Thu, 18 Jul 2013 00:08: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["name", "Root"], ["owner_id", 147], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'q6V5zP2L5u5XEQ2ysF75' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 147, "created_at" = '2013-07-18 00:08:13.967429', "updated_at" = '2013-07-18 00:08:13.967429', "auth_token" = 'q6V5zP2L5u5XEQ2ysF75' WHERE "public"."cadenero_accounts"."id" = 127  (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", 127], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:13 UTC +00:00], ["user_id", 147]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HfSbznKHzC2gX4HjmFWM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 127, "user_id" = 147, "created_at" = '2013-07-18 00:08:13.972679', "updated_at" = '2013-07-18 00:08:13.972679', "auth_token" = 'HfSbznKHzC2gX4HjmFWM' WHERE "public"."cadenero_members"."id" = 102  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wy83eei5W86l9U3D/5UR1OVR7oQAi.7gkjvPwk1bd85wndRRoV.CC"], ["updated_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["name", "Test Account"], ["owner_id", 148], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'o9st5sAm54DYc1TMm6TR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 148, "created_at" = '2013-07-18 00:08:18.542444', "updated_at" = '2013-07-18 00:08:18.542444', "auth_token" = 'o9st5sAm54DYc1TMm6TR' WHERE "public"."cadenero_accounts"."id" = 128  (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", 128], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["user_id", 148]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RGvagCMcbNXyqSLUhz5u' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 128, "user_id" = 148, "created_at" = '2013-07-18 00:08:18.548602', "updated_at" = '2013-07-18 00:08:18.548602', "auth_token" = 'RGvagCMcbNXyqSLUhz5u' WHERE "public"."cadenero_members"."id" = 103  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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)  (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" = 128 LIMIT 1  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$E5P1aq01J6Vm1.QNoB/ff.aaJwF5f6rbYpJs55ehb2jfcM6j.6m1O"], ["updated_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 149], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '4qovZUgcUHwfd9AEWYNv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 149, "created_at" = '2013-07-18 00:08:18.966647', "updated_at" = '2013-07-18 00:08:18.966647', "auth_token" = '4qovZUgcUHwfd9AEWYNv' WHERE "public"."cadenero_accounts"."id" = 129  (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", 129], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:18 UTC +00:00], ["user_id", 149]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dY2nHZnC8uLHGkVbVpgr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 129, "user_id" = 149, "created_at" = '2013-07-18 00:08:18.972155', "updated_at" = '2013-07-18 00:08:18.972155', "auth_token" = 'dY2nHZnC8uLHGkVbVpgr' WHERE "public"."cadenero_members"."id" = 104  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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 6ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@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 (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" = 129 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" = 149 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 149 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 149 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" = 149 Completed 201 Created in 184ms (Views: 79.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' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 149 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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" = 149 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$5kq5pEbhC0FUgH4b80Eyb.5puf0nAsVezd1bar.H/LLLcycS6v5Yy"], ["updated_at", Thu, 18 Jul 2013 00:08:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 150], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:08:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EXzz6wx58p6tEfbD6RZq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 150, "created_at" = '2013-07-18 00:08:19.384206', "updated_at" = '2013-07-18 00:08:19.384206', "auth_token" = 'EXzz6wx58p6tEfbD6RZq' WHERE "public"."cadenero_accounts"."id" = 130  (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", 130], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:19 UTC +00:00], ["user_id", 150]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7X7EVpNvkafAuLYjbtSy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 130, "user_id" = 150, "created_at" = '2013-07-18 00:08:19.389638', "updated_at" = '2013-07-18 00:08:19.389638', "auth_token" = '7X7EVpNvkafAuLYjbtSy' WHERE "public"."cadenero_members"."id" = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (19.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (144.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (14.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (52.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))   (29.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 130 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" = 150 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 150 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 150 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 150 Completed 201 Created in 156ms (Views: 5.5ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 150 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:19 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"150", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 150 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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.4ms | ActiveRecord: 0.0ms)  (9.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (8.2ms) 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, 18 Jul 2013 00:08:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$wYJqB/tUHuYRyfhFDcFSKu0F5Dg4s7vPP.4PESK7CRMz0LsRDOKyy"], ["updated_at", Thu, 18 Jul 2013 00:08: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" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 151], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6HZD75AxLWMVA7NNoHWL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 151, "created_at" = '2013-07-18 00:08:20.164870', "updated_at" = '2013-07-18 00:08:20.164870', "auth_token" = '6HZD75AxLWMVA7NNoHWL' WHERE "public"."cadenero_accounts"."id" = 131  (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", 131], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00], ["user_id", 151]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1aPUu5qq81MTvzMdwSHX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 131, "user_id" = 151, "created_at" = '2013-07-18 00:08:20.170672', "updated_at" = '2013-07-18 00:08:20.170672', "auth_token" = '1aPUu5qq81MTvzMdwSHX' WHERE "public"."cadenero_members"."id" = 106  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (18.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))   (5.4ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.5ms) 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 ('20130717234244')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (2.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" = 131 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" = 151 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 151 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 151 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 151 Completed 201 Created in 134ms (Views: 5.8ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 151 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:20 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"151", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 151 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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/users" for 127.0.0.1 at 2013-07-17 19:08: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (31.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$hxWDNnZUH9Z9riSjJdRv7eRCcbXHibOUlC8ggIbaLat0rsJcRbTw6"], ["updated_at", Thu, 18 Jul 2013 00:08:20 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", 131], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:20 UTC +00:00], ["user_id", 152]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XrEssAk6fFjyCiiSxfMJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 131, "user_id" = 152, "created_at" = '2013-07-18 00:08:20.723889', "updated_at" = '2013-07-18 00:08:20.723889', "auth_token" = 'XrEssAk6fFjyCiiSxfMJ' WHERE "public"."cadenero_members"."id" = 107  (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" = 152 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 152 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 152 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 152 Completed 201 Created in 215ms (Views: 6.0ms | ActiveRecord: 33.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/152" for 127.0.0.1 at 2013-07-17 19:08:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"152"} 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 (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" = 131 AND "public"."cadenero_users"."id" = 152 LIMIT 1 Cadenero::User Load (12.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 152 LIMIT 1 Cadenero::Member Load (3.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 152 Cadenero::V1::Account Load (7.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 152 Cadenero::V1::Account Load (8.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" = 152 Completed 200 OK in 48ms (Views: 6.9ms | ActiveRecord: 36.7ms) Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08: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 (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 152 LIMIT 1 Cadenero::Member Load (6.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 152 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 152 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" = 152 Completed 201 Created in 19ms (Views: 6.2ms | ActiveRecord: 11.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  (4.5ms) ROLLBACK  (10.4ms) BEGIN  (15.6ms) COMMIT  (0.2ms) BEGIN  (5.5ms) SAVEPOINT active_record_1 SQL (31.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$O10W671RWyML2t/rkJerUO.Hjr2w7o4YXpdVdoLNdSTMqEmwy1oJC"], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00]]  (2.6ms) 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" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 153], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hvMXoWyWgVmsChpyy9R3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 153, "created_at" = '2013-07-18 00:08:21.118074', "updated_at" = '2013-07-18 00:08:21.118074', "auth_token" = 'hvMXoWyWgVmsChpyy9R3' WHERE "public"."cadenero_accounts"."id" = 132  (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", 132], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["user_id", 153]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'giswdrzn3ow2TspDL9L1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 132, "user_id" = 153, "created_at" = '2013-07-18 00:08:21.125280', "updated_at" = '2013-07-18 00:08:21.125280', "auth_token" = 'giswdrzn3ow2TspDL9L1' WHERE "public"."cadenero_members"."id" = 108  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.6ms) 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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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/users" for 127.0.0.1 at 2013-07-17 19:08:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (2.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", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$fgfNHfdXBhHcyVv/YJRKuex3CP9ytno70PXszu0AiT6h8tu/JeiO."], ["updated_at", Thu, 18 Jul 2013 00:08:21 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", 132], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["user_id", 154]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xLbY98spSqPsvadQnKDz' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 132, "user_id" = 154, "created_at" = '2013-07-18 00:08:21.363113', "updated_at" = '2013-07-18 00:08:21.363113', "auth_token" = 'xLbY98spSqPsvadQnKDz' WHERE "public"."cadenero_members"."id" = 109  (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" = 154 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 154 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 154 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 154 Completed 201 Created in 169ms (Views: 6.3ms | 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 Started GET "/v1/users/154" for 127.0.0.1 at 2013-07-17 19:08:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"154"} Cadenero::V1::Account Load (0.9ms) 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" = 132 AND "public"."cadenero_users"."id" = 154 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 154 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 154 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 154 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" = 154 Completed 200 OK in 13ms (Views: 6.0ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 154 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 154 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 154 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" = 154 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (10.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 154 LIMIT 1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 10.2ms)  (7.4ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$i6d7QWTOxdk8jOWztHYY4uVfMw0ibTFyORfeexXw6vF71YZ7ZFvsq"], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 155], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'AssZUxC5Wr8qtqKqJe7L' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 155, "created_at" = '2013-07-18 00:08:21.682835', "updated_at" = '2013-07-18 00:08:21.682835', "auth_token" = 'AssZUxC5Wr8qtqKqJe7L' WHERE "public"."cadenero_accounts"."id" = 133  (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", 133], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["user_id", 155]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ku3XefsRsQYJnmVz1xQC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 133, "user_id" = 155, "created_at" = '2013-07-18 00:08:21.689217', "updated_at" = '2013-07-18 00:08:21.689217', "auth_token" = 'Ku3XefsRsQYJnmVz1xQC' WHERE "public"."cadenero_members"."id" = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (2.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, "auth_token" character varying(255))  (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.4ms) 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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.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 ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 133 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$aadJ.Hgz7CKNk3Pad43iIegvPuh/0Qpg6FGMEj8hxfE6WP/N1UnU2"], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 156], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vUNgkGEg8nQpo42XxfGB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 156, "created_at" = '2013-07-18 00:08:21.970225', "updated_at" = '2013-07-18 00:08:21.970225', "auth_token" = 'vUNgkGEg8nQpo42XxfGB' WHERE "public"."cadenero_accounts"."id" = 134  (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", 134], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:21 UTC +00:00], ["user_id", 156]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'syDBNbQcy9vuNUFPpX5x' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 134, "user_id" = 156, "created_at" = '2013-07-18 00:08:21.975835', "updated_at" = '2013-07-18 00:08:21.975835', "auth_token" = 'syDBNbQcy9vuNUFPpX5x' WHERE "public"."cadenero_members"."id" = 111  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (3.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, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.7ms) 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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$JZMyqelk4gZIy/NoHYXyTuGaD.aHBq/JLXGJMs7V/3wn2DTttpv4i"], ["updated_at", Thu, 18 Jul 2013 00:08:22 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 (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 157], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'v7Sn7qMunZ2GugyhfVyW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 157, "created_at" = '2013-07-18 00:08:22.180210', "updated_at" = '2013-07-18 00:08:22.180210', "auth_token" = 'v7Sn7qMunZ2GugyhfVyW' WHERE "public"."cadenero_accounts"."id" = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.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", 135], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["user_id", 157]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3pSrN3x8g63yXVRyWVud' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 135, "user_id" = 157, "created_at" = '2013-07-18 00:08:22.186982', "updated_at" = '2013-07-18 00:08:22.186982', "auth_token" = '3pSrN3x8g63yXVRyWVud' WHERE "public"."cadenero_members"."id" = 112  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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-17 19:08:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 134 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) COMMIT  (1.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$rqYkjeoFDWma5xZfIBvEguiALjjwrO9xBS1sqPEgDGd.9h3VbwGuG"], ["updated_at", Thu, 18 Jul 2013 00:08:22 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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 158], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dfWiiRwkM47frhDLNPD2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 158, "created_at" = '2013-07-18 00:08:22.418909', "updated_at" = '2013-07-18 00:08:22.418909', "auth_token" = 'dfWiiRwkM47frhDLNPD2' WHERE "public"."cadenero_accounts"."id" = 136  (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", 136], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["user_id", 158]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '42yapDVpqAgQec9zssNV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 136, "user_id" = 158, "created_at" = '2013-07-18 00:08:22.425108', "updated_at" = '2013-07-18 00:08:22.425108', "auth_token" = '42yapDVpqAgQec9zssNV' WHERE "public"."cadenero_members"."id" = 113  (0.1ms) 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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) 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.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.2ms) 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)  (4.5ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (2.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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:08:22 -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.9ms) ROLLBACK  (3.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$3v.QagdqfGvNhWS88yKegu1FdpYldEqWs/3xhjyobpAYV/7hke4.C"], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 159], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vxSutoanhMeXGTmqokZ8' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 159, "created_at" = '2013-07-18 00:08:22.624738', "updated_at" = '2013-07-18 00:08:22.624738', "auth_token" = 'vxSutoanhMeXGTmqokZ8' WHERE "public"."cadenero_accounts"."id" = 137  (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", 137], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["user_id", 159]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xjhzw4rPGCqx7DW7CyrP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 137, "user_id" = 159, "created_at" = '2013-07-18 00:08:22.632370', "updated_at" = '2013-07-18 00:08:22.632370', "auth_token" = 'Xjhzw4rPGCqx7DW7CyrP' WHERE "public"."cadenero_members"."id" = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.3ms) 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, "auth_token" character varying(255))  (2.2ms) 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.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)  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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-17 19:08:22 -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 (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 137 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  (8.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) COMMIT  (1.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$MEsyd.lMynMQnfcCUn4Ym.EBBy/DA91Y.FRFS5pw7yjBidqH9IRVm"], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 160], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FUJZJBBx4BTJdRgSXuh5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 160, "created_at" = '2013-07-18 00:08:22.856509', "updated_at" = '2013-07-18 00:08:22.856509', "auth_token" = 'FUJZJBBx4BTJdRgSXuh5' WHERE "public"."cadenero_accounts"."id" = 138  (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", 138], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:22 UTC +00:00], ["user_id", 160]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8de2NHUNECqbrpMd86nX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 138, "user_id" = 160, "created_at" = '2013-07-18 00:08:22.862019', "updated_at" = '2013-07-18 00:08:22.862019', "auth_token" = '8de2NHUNECqbrpMd86nX' WHERE "public"."cadenero_members"."id" = 115  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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: 1.7ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 160 Started GET "/v1?auth_token[]=8de2NHUNECqbrpMd86nX" for 127.0.0.1 at 2013-07-17 19:08:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["8de2NHUNECqbrpMd86nX"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 138 AND "public"."cadenero_members"."auth_token" IN ('8de2NHUNECqbrpMd86nX') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 160 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 160 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (8.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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, 18 Jul 2013 00:08:23 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$wyKtKEqpbYa1Xsr6yv7bx.v7ihXz8YWVloBXykGzraRpfK1e/kdNu"], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 161], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UpfDrgpNCBexst6qRQJS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 161, "created_at" = '2013-07-18 00:08:23.105561', "updated_at" = '2013-07-18 00:08:23.105561', "auth_token" = 'UpfDrgpNCBexst6qRQJS' WHERE "public"."cadenero_accounts"."id" = 139  (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", 139], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["user_id", 161]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4t4pcbbYzc5E7uvUQzmz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 139, "user_id" = 161, "created_at" = '2013-07-18 00:08:23.110788', "updated_at" = '2013-07-18 00:08:23.110788', "auth_token" = '4t4pcbbYzc5E7uvUQzmz' WHERE "public"."cadenero_members"."id" = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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))  (6.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")  (5.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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$QMurSHSPc/d1WmIgzpQdSuyt3Y5hQnSXEFK0/6G4BTKX/QiXUXh3S"], ["updated_at", Thu, 18 Jul 2013 00:08: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" = 'test13' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 162], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PyDdFLcBk8X6zsDFURYH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 162, "created_at" = '2013-07-18 00:08:23.269564', "updated_at" = '2013-07-18 00:08:23.269564', "auth_token" = 'PyDdFLcBk8X6zsDFURYH' WHERE "public"."cadenero_accounts"."id" = 140  (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", 140], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["user_id", 162]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RspSFaTLXsv7zgthoRNt' LIMIT 1  (4.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 140, "user_id" = 162, "created_at" = '2013-07-18 00:08:23.275021', "updated_at" = '2013-07-18 00:08:23.275021', "auth_token" = 'RspSFaTLXsv7zgthoRNt' WHERE "public"."cadenero_members"."id" = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) 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, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.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.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 ('20130717234244')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 162 Started GET "/v1?auth_token[]=RspSFaTLXsv7zgthoRNt" for 127.0.0.1 at 2013-07-17 19:08:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["RspSFaTLXsv7zgthoRNt"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 139 AND "public"."cadenero_members"."auth_token" IN ('RspSFaTLXsv7zgthoRNt') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (10.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.8ms) 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", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$ziNdysISpZeRsCCZ.le92eS3wpDS/237jUXmjSEfjjrkIrHmoTdUS"], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00]]  (10.7ms) RELEASE SAVEPOINT active_record_1  (3.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 163], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yJRmpxFVALfmxynpnHUB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 163, "created_at" = '2013-07-18 00:08:23.518255', "updated_at" = '2013-07-18 00:08:23.518255', "auth_token" = 'yJRmpxFVALfmxynpnHUB' WHERE "public"."cadenero_accounts"."id" = 141  (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", 141], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["user_id", 163]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rYyJsHu3SqZ43ACA5ULw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 141, "user_id" = 163, "created_at" = '2013-07-18 00:08:23.523917', "updated_at" = '2013-07-18 00:08:23.523917', "auth_token" = 'rYyJsHu3SqZ43ACA5ULw' WHERE "public"."cadenero_members"."id" = 118  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (10.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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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.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 ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:08: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-17 19:08:23 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$jHCS4IRtyg.1pL7K2CZsjeUwSRlc0s5UCKTO3egfp2SJnJKyJY5hu"], ["updated_at", Thu, 18 Jul 2013 00:08:23 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", 141], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:23 UTC +00:00], ["user_id", 164]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GujmDejyJkoezig7vDfj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 141, "user_id" = 164, "created_at" = '2013-07-18 00:08:23.692357', "updated_at" = '2013-07-18 00:08:23.692357', "auth_token" = 'GujmDejyJkoezig7vDfj' WHERE "public"."cadenero_members"."id" = 119  (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" = 164 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 164 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 164 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 164 Completed 201 Created in 111ms (Views: 5.5ms | 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/164" for 127.0.0.1 at 2013-07-17 19:08:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"164"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 141 AND "public"."cadenero_users"."id" = 164 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 164 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 164 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 164 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 164 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 163 Started GET "/v1?auth_token[]=rYyJsHu3SqZ43ACA5ULw" for 127.0.0.1 at 2013-07-17 19:08:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["rYyJsHu3SqZ43ACA5ULw"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 141 AND "public"."cadenero_members"."auth_token" IN ('rYyJsHu3SqZ43ACA5ULw') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 163 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 163 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 164 Started GET "/v1?auth_token[]=GujmDejyJkoezig7vDfj" for 127.0.0.1 at 2013-07-17 19:08:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["GujmDejyJkoezig7vDfj"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 141 AND "public"."cadenero_members"."auth_token" IN ('GujmDejyJkoezig7vDfj') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 164 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 164 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (6.0ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (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.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "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.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$p2NdQpQE0B9j7bOaUncIQeBHsPDxfs9xBXQHkhRDVFpg2QAIaNMwK"], ["updated_at", Thu, 18 Jul 2013 00:08: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" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 165], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Na7Ruys7qWAzsWuDL3C2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 165, "created_at" = '2013-07-18 00:08:24.360139', "updated_at" = '2013-07-18 00:08:24.360139', "auth_token" = 'Na7Ruys7qWAzsWuDL3C2' WHERE "public"."cadenero_accounts"."id" = 142  (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", 142], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["user_id", 165]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sqwq9jQ22ZFw6N81RrzX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 142, "user_id" = 165, "created_at" = '2013-07-18 00:08:24.365727', "updated_at" = '2013-07-18 00:08:24.365727', "auth_token" = 'sqwq9jQ22ZFw6N81RrzX' WHERE "public"."cadenero_members"."id" = 120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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 ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:08: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" = 'test15' 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, 18 Jul 2013 00:08:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IKD8ZOoG2tpguHTxAE1yYOZu5kXPgMPToiQxumvIyPE.meEjPUQyS"], ["updated_at", Thu, 18 Jul 2013 00:08:24 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", 142], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["user_id", 166]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '55Mw59trnq9j9hCLDuVj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 142, "user_id" = 166, "created_at" = '2013-07-18 00:08:24.517981', "updated_at" = '2013-07-18 00:08:24.517981', "auth_token" = '55Mw59trnq9j9hCLDuVj' WHERE "public"."cadenero_members"."id" = 121  (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" = 166 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 166 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 166 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 166 Completed 201 Created in 116ms (Views: 6.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/166" for 127.0.0.1 at 2013-07-17 19:08:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"166"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 142 AND "public"."cadenero_users"."id" = 166 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 166 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 166 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 166 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 166 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.7ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$uncPtpw81iQ3pq1AYX8.y.gY4c37qCJ/P1VIiocpY2u/M8o3iCRu2"], ["updated_at", Thu, 18 Jul 2013 00:08: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" = 'test16' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 167], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qUDsZMGxpKfh64GsYVX8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 167, "created_at" = '2013-07-18 00:08:24.664261', "updated_at" = '2013-07-18 00:08:24.664261', "auth_token" = 'qUDsZMGxpKfh64GsYVX8' WHERE "public"."cadenero_accounts"."id" = 143  (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", 143], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["user_id", 167]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AVo915uyySwymhmszDSc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 143, "user_id" = 167, "created_at" = '2013-07-18 00:08:24.670921', "updated_at" = '2013-07-18 00:08:24.670921', "auth_token" = 'AVo915uyySwymhmszDSc' WHERE "public"."cadenero_members"."id" = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)  (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.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:08: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" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3yfILmdPbH5wV7D6PMcxTuNKO7lKEZRiUFNJzE8LB.dvLTVtaACYK"], ["updated_at", Thu, 18 Jul 2013 00:08:24 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", 143], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["user_id", 168]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8hpaLgqnuTqs2sGzFtVM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 143, "user_id" = 168, "created_at" = '2013-07-18 00:08:24.881810', "updated_at" = '2013-07-18 00:08:24.881810', "auth_token" = '8hpaLgqnuTqs2sGzFtVM' WHERE "public"."cadenero_members"."id" = 123  (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" = 168 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 168 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 168 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 168 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/168" for 127.0.0.1 at 2013-07-17 19:08:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"168"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.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" = 143 AND "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 168 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 168 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 168 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@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" = 'test17' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 168], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '67BGqmSb1Z5sfPCqWKjC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 168, "created_at" = '2013-07-18 00:08:24.913335', "updated_at" = '2013-07-18 00:08:24.913335', "auth_token" = '67BGqmSb1Z5sfPCqWKjC' WHERE "public"."cadenero_accounts"."id" = 144  (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", 144], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:24 UTC +00:00], ["user_id", 168]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rLSopPYKE9n8NqrGbEsU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 144, "user_id" = 168, "created_at" = '2013-07-18 00:08:24.919077', "updated_at" = '2013-07-18 00:08:24.919077', "auth_token" = 'rLSopPYKE9n8NqrGbEsU' WHERE "public"."cadenero_members"."id" = 124  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test17"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:08: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" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$evNwy67FY/wMFynHSwIS.e1JprUX3MywEzo41FIgi/qGmxIXQFfbS"], ["updated_at", Thu, 18 Jul 2013 00:08:25 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", 144], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["user_id", 169]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AxMYdttmsB9VJxLfsySa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 144, "user_id" = 169, "created_at" = '2013-07-18 00:08:25.074337', "updated_at" = '2013-07-18 00:08:25.074337', "auth_token" = 'AxMYdttmsB9VJxLfsySa' WHERE "public"."cadenero_members"."id" = 125  (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" = 169 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 169 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 169 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 169 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/169" for 127.0.0.1 at 2013-07-17 19:08:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"169"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 144 AND "public"."cadenero_users"."id" = 169 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 169 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 169 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 169 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 169 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) Started GET "/v1/users/168" for 127.0.0.1 at 2013-07-17 19:08:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"168"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 143 AND "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 168 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 168 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 168 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.7ms)  (7.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bx1EJ1vN7xtcaSfCEqMp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 00:08:25.233730', "updated_at" = '2013-07-18 00:08:25.233730', "auth_token" = 'bx1EJ1vN7xtcaSfCEqMp' WHERE "public"."cadenero_members"."id" = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:08: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 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$KTkJtQ145uxs53Vski1HH.J2qQ3c63rltkm1s/4AUalpmVmZN2FPu"], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["name", "Testy"], ["owner_id", 170], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jUQHqCVyJpHZz8BpAkqv' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 170, "created_at" = '2013-07-18 00:08:25.347675', "updated_at" = '2013-07-18 00:08:25.347675', "auth_token" = 'jUQHqCVyJpHZz8BpAkqv' WHERE "public"."cadenero_accounts"."id" = 145  (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", 145], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["user_id", 170]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bexyVUeppFdzzJ8BmNtp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 145, "user_id" = 170, "created_at" = '2013-07-18 00:08:25.353265', "updated_at" = '2013-07-18 00:08:25.353265', "auth_token" = 'bexyVUeppFdzzJ8BmNtp' WHERE "public"."cadenero_members"."id" = 127  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" != 145) LIMIT 1 Completed 201 Created in 165ms (Views: 1.8ms | ActiveRecord: 39.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$bVf1y/aGG07hrTeHKkbgL.77ybZAXu4tiAZMdyOjYAQ3vY0rFu8Gi"], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00], ["name", "Testy"], ["owner_id", 171], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:08:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2sm8XqUwCwP5EBvaqxy9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 171, "created_at" = '2013-07-18 00:08:25.525252', "updated_at" = '2013-07-18 00:08:25.525252', "auth_token" = '2sm8XqUwCwP5EBvaqxy9' WHERE "public"."cadenero_accounts"."id" = 146  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:08: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 105ms (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.5ms) ROLLBACK Connecting to database specified by database.yml  (12.5ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (4.9ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 101 Completed 200 OK in 212ms (Views: 206.0ms | ActiveRecord: 5.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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.2ms) 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 27ms (Views: 25.2ms | ActiveRecord: 1.6ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:11: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 (18.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (18.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$dpm6.ieKSYZkiOe/zkopXeBP1AgQ2x4m5kyHv80GHVrzio0FTkXpW"], ["updated_at", Thu, 18 Jul 2013 00:11:18 UTC +00:00]] SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:18 UTC +00:00], ["name", "Testy"], ["owner_id", 172], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:11:18 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zQUbGWrDxsQx7RLRixpF' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 172, "created_at" = '2013-07-18 00:11:18.883573', "updated_at" = '2013-07-18 00:11:18.883573', "auth_token" = 'zQUbGWrDxsQx7RLRixpF' WHERE "public"."cadenero_accounts"."id" = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 147], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["user_id", 172]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1HJSzRkDMiynxHgMg4yM' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 147, "user_id" = 172, "created_at" = '2013-07-18 00:11:19.011698', "updated_at" = '2013-07-18 00:11:19.011698', "auth_token" = '1HJSzRkDMiynxHgMg4yM' WHERE "public"."cadenero_members"."id" = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (39.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (12.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.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")  (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 ('20130717234244')  (5.0ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" != 147) LIMIT 1 Completed 201 Created in 499ms (Views: 6.9ms | ActiveRecord: 141.3ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.5ms) 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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$FoDxg/DMVOnb5Mpy/Qw8yu90QA8d9qpsbrTc1gGU.IzOk1mEUs5L."], ["updated_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["name", "Testy"], ["owner_id", 173], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VAYsenrbmECuMZSZxMPx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 173, "created_at" = '2013-07-18 00:11:19.419817', "updated_at" = '2013-07-18 00:11:19.419817', "auth_token" = 'VAYsenrbmECuMZSZxMPx' WHERE "public"."cadenero_accounts"."id" = 148  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:11:19 -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}  (3.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  (10.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 170ms (Views: 0.3ms | ActiveRecord: 13.9ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.6ms) ROLLBACK  (8.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$PVRvBekodHPnNCDh/scDm.xH35S9iECblAuF5dboptwvOMTEiBY9m"], ["updated_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 174], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '3HP4XnE1GzvuYgGt8xJY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 174, "created_at" = '2013-07-18 00:11:19.868530', "updated_at" = '2013-07-18 00:11:19.868530', "auth_token" = '3HP4XnE1GzvuYgGt8xJY' WHERE "public"."cadenero_accounts"."id" = 149  (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", 149], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:19 UTC +00:00], ["user_id", 174]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MkAiBZDJ9yYvZri2mQBk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 149, "user_id" = 174, "created_at" = '2013-07-18 00:11:19.885985', "updated_at" = '2013-07-18 00:11:19.885985', "auth_token" = 'MkAiBZDJ9yYvZri2mQBk' WHERE "public"."cadenero_members"."id" = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (14.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.6ms) 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))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.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")  (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.6ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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-17 19:11:20 -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.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" = 149 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" = 174 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 174 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 174 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 174 Completed 201 Created in 168ms (Views: 61.8ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 174 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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" = 174 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$lTZoLfZPhk0W2chaTeq2eOA/Bs7KO7ko5GKfGBgjtRJdI7v8v6B7u"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 175], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'w3Y9AMzcT9zZN7dzYQAU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 175, "created_at" = '2013-07-18 00:11:20.381256', "updated_at" = '2013-07-18 00:11:20.381256', "auth_token" = 'w3Y9AMzcT9zZN7dzYQAU' WHERE "public"."cadenero_accounts"."id" = 150  (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", 150], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["user_id", 175]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u8m5ZY3dq1G1xFfCGb1Q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 150, "user_id" = 175, "created_at" = '2013-07-18 00:11:20.386729', "updated_at" = '2013-07-18 00:11:20.386729', "auth_token" = 'u8m5ZY3dq1G1xFfCGb1Q' WHERE "public"."cadenero_members"."id" = 130  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:11:20 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$uc.n197foJi0HZ6Yk1zaXuk5TagOpba53eTgmO3BA3xz1Svd1QqqO"], ["updated_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 150], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["user_id", 176]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rCSMpjf3mWvsuUWeGL1z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 150, "user_id" = 176, "created_at" = '2013-07-18 00:11:20.547262', "updated_at" = '2013-07-18 00:11:20.547262', "auth_token" = 'rCSMpjf3mWvsuUWeGL1z' WHERE "public"."cadenero_members"."id" = 131  (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" = 176 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 176 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 176 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 176 Completed 201 Created in 112ms (Views: 5.5ms | 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/176" for 127.0.0.1 at 2013-07-17 19:11:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"176"} 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" = 150 AND "public"."cadenero_users"."id" = 176 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 176 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 176 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 176 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 176 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 176 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 176 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 176 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 176 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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" = 176 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$BI4UvJmSqNIx5nfsxjXQ5.dfcs36oGhGlQRbfpZ/vwdNZISt4FUkK"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 177], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nK5gVRRkW9tZHRzyzfjC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 177, "created_at" = '2013-07-18 00:11:20.708524', "updated_at" = '2013-07-18 00:11:20.708524', "auth_token" = 'nK5gVRRkW9tZHRzyzfjC' WHERE "public"."cadenero_accounts"."id" = 151  (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", 151], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:20 UTC +00:00], ["user_id", 177]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Tu3fJRAsf1t9qbSSwuFs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 151, "user_id" = 177, "created_at" = '2013-07-18 00:11:20.714005', "updated_at" = '2013-07-18 00:11:20.714005', "auth_token" = 'Tu3fJRAsf1t9qbSSwuFs' WHERE "public"."cadenero_members"."id" = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11:20 -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" = 151 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" = 177 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 177 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 177 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" = 177 Completed 201 Created in 159ms (Views: 7.2ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 177 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11:20 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"177", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 177 LIMIT 1 Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$SP32cqXu.v5ODbYV6P/pMeXfxfihD5UOiYmLEFWYpj8vtN2gIYUE6"], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 178], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'epxsjnobNGznp9dsbezt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 178, "created_at" = '2013-07-18 00:11:21.114805', "updated_at" = '2013-07-18 00:11:21.114805', "auth_token" = 'epxsjnobNGznp9dsbezt' WHERE "public"."cadenero_accounts"."id" = 152  (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", 152], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["user_id", 178]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y89q7zKyWY7qzbB2Cckx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 152, "user_id" = 178, "created_at" = '2013-07-18 00:11:21.121851', "updated_at" = '2013-07-18 00:11:21.121851', "auth_token" = 'y89q7zKyWY7qzbB2Cckx' WHERE "public"."cadenero_members"."id" = 133  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (2.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, "auth_token" character varying(255))   (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) 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 ('20130717234244')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11:21 -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.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" = 152 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" = 178 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 178 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 178 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 178 Completed 201 Created in 106ms (Views: 5.1ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 178 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"178", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 178 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Yj/FkixplKi66GG1HliJQuOZnJlu/dMEDBDE1TkQj4SjYrS5MCylS"], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00]] SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 152], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["user_id", 179]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ywDpf2yezVxqSkBZoesJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 152, "user_id" = 179, "created_at" = '2013-07-18 00:11:21.420482', "updated_at" = '2013-07-18 00:11:21.420482', "auth_token" = 'ywDpf2yezVxqSkBZoesJ' WHERE "public"."cadenero_members"."id" = 134  (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" = 179 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 179 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 179 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 179 Completed 201 Created in 115ms (Views: 5.5ms | ActiveRecord: 4.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/179" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"179"} 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.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" = 152 AND "public"."cadenero_users"."id" = 179 LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 179 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 179 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 179 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 179 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 179 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 179 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 179 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 179 Completed 201 Created in 8ms (Views: 4.9ms | 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.1ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$SMpxme1YYSjGBCoPYjdoku.EZnw9lDpwY5rUTphxgNGGASf2gl.Py"], ["updated_at", Thu, 18 Jul 2013 00:11: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.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 180], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Ye6TfAyzbiDxVSHQtDK4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 180, "created_at" = '2013-07-18 00:11:21.604531', "updated_at" = '2013-07-18 00:11:21.604531', "auth_token" = 'Ye6TfAyzbiDxVSHQtDK4' WHERE "public"."cadenero_accounts"."id" = 153  (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", 153], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:21 UTC +00:00], ["user_id", 180]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vRSq7rexiNAAMdy4j42C' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 153, "user_id" = 180, "created_at" = '2013-07-18 00:11:21.611104', "updated_at" = '2013-07-18 00:11:21.611104', "auth_token" = 'vRSq7rexiNAAMdy4j42C' WHERE "public"."cadenero_members"."id" = 135  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) 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))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (29.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.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 ('20130717234244')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 153 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (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, 18 Jul 2013 00:11:22 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$ISBbeN5Kl//Jsaro5h0cd.nWPm3FvKE0m2705ivUuT/wzfF4PdB3i"], ["updated_at", Thu, 18 Jul 2013 00:11: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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 181], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZQZhXzmJq8GYaqKnQNG3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 181, "created_at" = '2013-07-18 00:11:22.025549', "updated_at" = '2013-07-18 00:11:22.025549', "auth_token" = 'ZQZhXzmJq8GYaqKnQNG3' WHERE "public"."cadenero_accounts"."id" = 154  (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", 154], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["user_id", 181]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WGABpBkDfY6c1UqfBzuy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 154, "user_id" = 181, "created_at" = '2013-07-18 00:11:22.032068', "updated_at" = '2013-07-18 00:11:22.032068', "auth_token" = 'WGABpBkDfY6c1UqfBzuy' WHERE "public"."cadenero_members"."id" = 136  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (24.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.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"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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-17 19:11:22 -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 ('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" = 154 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | 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  (13.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$v/yP2HUKMF029ajXX8Mfre4vnYOGdSDpCMbW4QkD7I.9O1mT2Co/q"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 182], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mKohgzPtzYNkbhsJu7Kg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 182, "created_at" = '2013-07-18 00:11:22.325611', "updated_at" = '2013-07-18 00:11:22.325611', "auth_token" = 'mKohgzPtzYNkbhsJu7Kg' WHERE "public"."cadenero_accounts"."id" = 155  (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", 155], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["user_id", 182]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aaybTtjAyRsPpMncNmWd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 155, "user_id" = 182, "created_at" = '2013-07-18 00:11:22.332380', "updated_at" = '2013-07-18 00:11:22.332380', "auth_token" = 'aaybTtjAyRsPpMncNmWd' WHERE "public"."cadenero_members"."id" = 137  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (2.6ms) 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")  (17.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)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$aceatBk8zyI/RlcA4BveyeUM80JmXNqw7dncAn9.JTvGmwFSjpYBK"], ["updated_at", Thu, 18 Jul 2013 00:11:22 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 (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 183], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MHf3EvLHsWWqpDfN1bVv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 183, "created_at" = '2013-07-18 00:11:22.572669', "updated_at" = '2013-07-18 00:11:22.572669', "auth_token" = 'MHf3EvLHsWWqpDfN1bVv' WHERE "public"."cadenero_accounts"."id" = 156  (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", 156], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["user_id", 183]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zpUquNFzzLD3UXuvnyyi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 156, "user_id" = 183, "created_at" = '2013-07-18 00:11:22.581139', "updated_at" = '2013-07-18 00:11:22.581139', "auth_token" = 'zpUquNFzzLD3UXuvnyyi' WHERE "public"."cadenero_members"."id" = 138  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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-17 19:11:22 -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 (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" = 155 AND "public"."cadenero_users"."email" = 'user8@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  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$LPD87nsF3fJZ40a4zrRYB.GQsQ1jzH6P2qHrRvBEzCKqQLAJT6DUy"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 184], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Y3svRqpRyVs4KTKTRf6L' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 184, "created_at" = '2013-07-18 00:11:22.754256', "updated_at" = '2013-07-18 00:11:22.754256', "auth_token" = 'Y3svRqpRyVs4KTKTRf6L' WHERE "public"."cadenero_accounts"."id" = 157  (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", 157], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["user_id", 184]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xxXxQqvkAxvJu1jjUzMM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 157, "user_id" = 184, "created_at" = '2013-07-18 00:11:22.760106', "updated_at" = '2013-07-18 00:11:22.760106', "auth_token" = 'xxXxQqvkAxvJu1jjUzMM' WHERE "public"."cadenero_members"."id" = 139  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130717234244')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:11: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  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$62GnPoFBgFX5ySFj/Iy13OyHR8wyLwrQTJ5wMRvQ4j082V1llnEiG"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test10' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 185], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:11:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LiEyM8YZnXV1iaxqiyPM' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 185, "created_at" = '2013-07-18 00:11:22.993510', "updated_at" = '2013-07-18 00:11:22.993510', "auth_token" = 'LiEyM8YZnXV1iaxqiyPM' WHERE "public"."cadenero_accounts"."id" = 158  (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", 158], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["user_id", 185]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vMmkAYpxBR9zvyfiwwyr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 158, "user_id" = 185, "created_at" = '2013-07-18 00:11:23.001841', "updated_at" = '2013-07-18 00:11:23.001841', "auth_token" = 'vMmkAYpxBR9zvyfiwwyr' WHERE "public"."cadenero_members"."id" = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (3.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 185 Started GET "/v1?auth_token[]=vMmkAYpxBR9zvyfiwwyr" for 127.0.0.1 at 2013-07-17 19:11:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["vMmkAYpxBR9zvyfiwwyr"], "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::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 158 AND "public"."cadenero_members"."auth_token" IN ('vMmkAYpxBR9zvyfiwwyr') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 185 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 185 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.7ms)  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$QEcpboeW/qWcsSRP8/yUAuDWKpcB1EYPH6swEizr5DMrSlBGiQ5zi"], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 186], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'np4B6xMZi5Frm4QSKpEb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 186, "created_at" = '2013-07-18 00:11:23.282225', "updated_at" = '2013-07-18 00:11:23.282225', "auth_token" = 'np4B6xMZi5Frm4QSKpEb' WHERE "public"."cadenero_accounts"."id" = 159  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", 159], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["user_id", 186]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TpoBx2oxQTfJxjFbJY9q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 159, "user_id" = 186, "created_at" = '2013-07-18 00:11:23.288722', "updated_at" = '2013-07-18 00:11:23.288722', "auth_token" = 'TpoBx2oxQTfJxjFbJY9q' WHERE "public"."cadenero_members"."id" = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (10.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (53.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))  (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (15.7ms) 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 ('20130717234244')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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-17 19:11:23 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$lgbv/opyySQ7gJ/jmoDUKuLwD2YnS7nrGUoZ4Szy.Ki6r0NqHY.j."], ["updated_at", Thu, 18 Jul 2013 00:11:23 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", 159], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["user_id", 187]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yuAfZyoHgpHsV6gEezos' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 159, "user_id" = 187, "created_at" = '2013-07-18 00:11:23.588210', "updated_at" = '2013-07-18 00:11:23.588210', "auth_token" = 'yuAfZyoHgpHsV6gEezos' WHERE "public"."cadenero_members"."id" = 142  (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" = 187 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 187 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 187 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 187 Completed 201 Created in 149ms (Views: 7.0ms | ActiveRecord: 4.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/187" for 127.0.0.1 at 2013-07-17 19:11:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"187"} 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" = 159 AND "public"."cadenero_users"."id" = 187 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 187 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 187 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 187 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 187 Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 2.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 186 Started GET "/v1?auth_token[]=TpoBx2oxQTfJxjFbJY9q" for 127.0.0.1 at 2013-07-17 19:11:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["TpoBx2oxQTfJxjFbJY9q"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 159 AND "public"."cadenero_members"."auth_token" IN ('TpoBx2oxQTfJxjFbJY9q') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 186 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 186 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 187 Started GET "/v1?auth_token[]=yuAfZyoHgpHsV6gEezos" for 127.0.0.1 at 2013-07-17 19:11:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["yuAfZyoHgpHsV6gEezos"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 159 AND "public"."cadenero_members"."auth_token" IN ('yuAfZyoHgpHsV6gEezos') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 187 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 187 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (3.8ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$hbnG2jzAvR7148A6d.4g5eoGlS/5KKGpM4uruObJb04YPFiyXXadq"], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 188], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'fkL1emC66J2RzC4amU1E' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 188, "created_at" = '2013-07-18 00:11:23.809325', "updated_at" = '2013-07-18 00:11:23.809325', "auth_token" = 'fkL1emC66J2RzC4amU1E' WHERE "public"."cadenero_accounts"."id" = 160  (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", 160], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:23 UTC +00:00], ["user_id", 188]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hu6y2jiomszLyxp8QFHz' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 160, "user_id" = 188, "created_at" = '2013-07-18 00:11:23.815435', "updated_at" = '2013-07-18 00:11:23.815435', "auth_token" = 'hu6y2jiomszLyxp8QFHz' WHERE "public"."cadenero_members"."id" = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (12.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$dNo1r7VBJSEMtUatW0g57er3GS/q0IhFLRaX8tAmxKezw.EgxnYxW"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 189], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dyKUgoYWKELVTYYJyspq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 189, "created_at" = '2013-07-18 00:11:24.033366', "updated_at" = '2013-07-18 00:11:24.033366', "auth_token" = 'dyKUgoYWKELVTYYJyspq' WHERE "public"."cadenero_accounts"."id" = 161  (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", 161], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["user_id", 189]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LT9aP2CXANspsA6qPbJq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 161, "user_id" = 189, "created_at" = '2013-07-18 00:11:24.038628', "updated_at" = '2013-07-18 00:11:24.038628', "auth_token" = 'LT9aP2CXANspsA6qPbJq' WHERE "public"."cadenero_members"."id" = 144  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test13"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:11: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) Cadenero::Member Load (9.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 189 Started GET "/v1?auth_token[]=LT9aP2CXANspsA6qPbJq" for 127.0.0.1 at 2013-07-17 19:11:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["LT9aP2CXANspsA6qPbJq"], "default"=>:json} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 160 AND "public"."cadenero_members"."auth_token" IN ('LT9aP2CXANspsA6qPbJq') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (15.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (3.0ms) BEGIN  (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 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$avs2KCn19ZdKZ3ntdvGmEuQW.4UE8jG2hAqN85Gv9ldCOIV1JgbFC"], ["updated_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["name", "Test Account"], ["owner_id", 190], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kAN6dYv6bWGsevqyXjHj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 190, "created_at" = '2013-07-18 00:11:24.750944', "updated_at" = '2013-07-18 00:11:24.750944', "auth_token" = 'kAN6dYv6bWGsevqyXjHj' WHERE "public"."cadenero_accounts"."id" = 162  (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", 162], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:24 UTC +00:00], ["user_id", 190]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8xQqv2Q7HtW5ipx59DaK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 162, "user_id" = 190, "created_at" = '2013-07-18 00:11:24.757179', "updated_at" = '2013-07-18 00:11:24.757179', "auth_token" = '8xQqv2Q7HtW5ipx59DaK' WHERE "public"."cadenero_members"."id" = 145  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 162 LIMIT 1  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$f6BqXkKUXOWXUaqOSWpPcO39iMn3sM08gVFj3YzJR3csaQ0sTUt9a"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 191], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zBLri7kMhjnP5xsJLXsY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 191, "created_at" = '2013-07-18 00:11:25.101291', "updated_at" = '2013-07-18 00:11:25.101291', "auth_token" = 'zBLri7kMhjnP5xsJLXsY' WHERE "public"."cadenero_accounts"."id" = 163  (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", 163], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["user_id", 191]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1ShqpzMRaGE5xtyHf58h' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 163, "user_id" = 191, "created_at" = '2013-07-18 00:11:25.107044', "updated_at" = '2013-07-18 00:11:25.107044', "auth_token" = '1ShqpzMRaGE5xtyHf58h' WHERE "public"."cadenero_members"."id" = 146  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) 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)  (3.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:11: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" = 'test14' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$jefrgHn.8JdpiP5SK9AGs.MzRBh7wlkoV6SP8DuO3Z8tSgHPuoczm"], ["updated_at", Thu, 18 Jul 2013 00:11:25 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", 163], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["user_id", 192]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B7AL6Sjd9FMWcKowJxmj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 163, "user_id" = 192, "created_at" = '2013-07-18 00:11:25.318543', "updated_at" = '2013-07-18 00:11:25.318543', "auth_token" = 'B7AL6Sjd9FMWcKowJxmj' WHERE "public"."cadenero_members"."id" = 147  (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" = 192 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 192 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 192 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 192 Completed 201 Created in 116ms (Views: 6.3ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/192" for 127.0.0.1 at 2013-07-17 19:11:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"192"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 163 AND "public"."cadenero_users"."id" = 192 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 192 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 192 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 192 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 192 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms)  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$RJ6shfbKjsk0fwGFi8WPzuN3lJPLr0PMl6z21oXTnXOg9RygyOVU2"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 193], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yDoipnpeusxwMZdrwhss' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 193, "created_at" = '2013-07-18 00:11:25.535214', "updated_at" = '2013-07-18 00:11:25.535214', "auth_token" = 'yDoipnpeusxwMZdrwhss' WHERE "public"."cadenero_accounts"."id" = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 164], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["user_id", 193]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pr3dWkxKomtVCbEsBJxe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 164, "user_id" = 193, "created_at" = '2013-07-18 00:11:25.544879', "updated_at" = '2013-07-18 00:11:25.544879', "auth_token" = 'pr3dWkxKomtVCbEsBJxe' WHERE "public"."cadenero_members"."id" = 148  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (25.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (18.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (5.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.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)  (2.8ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:11: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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, 18 Jul 2013 00:11:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3Y6sX.C5FuJyLQttOSbEpuWwr6dhRTXZ2n7i9tipYk7siBA/9IrvS"], ["updated_at", Thu, 18 Jul 2013 00:11:25 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", 164], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["user_id", 194]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '19rB9RLzdqhpeeeEmxLJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 164, "user_id" = 194, "created_at" = '2013-07-18 00:11:25.792456', "updated_at" = '2013-07-18 00:11:25.792456', "auth_token" = '19rB9RLzdqhpeeeEmxLJ' WHERE "public"."cadenero_members"."id" = 149  (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" = 194 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 194 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 194 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 194 Completed 201 Created in 142ms (Views: 6.7ms | 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/194" for 127.0.0.1 at 2013-07-17 19:11:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"194"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 164 AND "public"."cadenero_users"."id" = 194 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 194 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 194 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 194 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 194 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 194], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '86znyuLgh32NstAsYRqX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 194, "created_at" = '2013-07-18 00:11:25.826993', "updated_at" = '2013-07-18 00:11:25.826993', "auth_token" = '86znyuLgh32NstAsYRqX' WHERE "public"."cadenero_accounts"."id" = 165  (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", 165], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["user_id", 194]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9wsXqibnq36Cq1gDs47p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 165, "user_id" = 194, "created_at" = '2013-07-18 00:11:25.833605', "updated_at" = '2013-07-18 00:11:25.833605', "auth_token" = '9wsXqibnq36Cq1gDs47p' WHERE "public"."cadenero_members"."id" = 150  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.6ms) 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.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 ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:11: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Rm3UTgMNWwqKr3bOQEazKe8q715ADDIHJepMWcHTqXft1d9yrV8ey"], ["updated_at", Thu, 18 Jul 2013 00:11:25 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", 165], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:25 UTC +00:00], ["user_id", 195]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RS4zQM3L2VqAn8JCWuQ2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 165, "user_id" = 195, "created_at" = '2013-07-18 00:11:25.994633', "updated_at" = '2013-07-18 00:11:25.994633', "auth_token" = 'RS4zQM3L2VqAn8JCWuQ2' WHERE "public"."cadenero_members"."id" = 151  (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" = 195 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 195 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 195 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 195 Completed 201 Created in 120ms (Views: 7.3ms | 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/195" for 127.0.0.1 at 2013-07-17 19:11:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"195"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 165 AND "public"."cadenero_users"."id" = 195 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 195 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 195 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 195 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" = 195 Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 2.4ms) Started GET "/v1/users/194" for 127.0.0.1 at 2013-07-17 19:11:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"194"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (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" = 164 AND "public"."cadenero_users"."id" = 194 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 194 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 194 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 194 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" = 194 Completed 200 OK in 71ms (Views: 8.7ms | ActiveRecord: 5.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 19:11:26 -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" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 164 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 194 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 194 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 194 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 194 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 193 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 193 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 193 Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 2.7ms)  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.3ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$Ey7IkE4HxLggzRY2Bjt2sOn2biC8md.8GzY4s5bGDTVQgjzKE8GgG"], ["updated_at", Thu, 18 Jul 2013 00:11: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" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 196], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7JgfoRsog1HMyz58hDav' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 196, "created_at" = '2013-07-18 00:11:30.313170', "updated_at" = '2013-07-18 00:11:30.313170', "auth_token" = '7JgfoRsog1HMyz58hDav' WHERE "public"."cadenero_accounts"."id" = 166  (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", 166], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["user_id", 196]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CzFC7sXhW13o9H1rFwiK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 166, "user_id" = 196, "created_at" = '2013-07-18 00:11:30.319531', "updated_at" = '2013-07-18 00:11:30.319531', "auth_token" = 'CzFC7sXhW13o9H1rFwiK' WHERE "public"."cadenero_members"."id" = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$cBhiO6abVe11ruT1hgZc2.8gZ/0AVHe3ezhl0kXABxXoL4eqfKLtu"], ["updated_at", Thu, 18 Jul 2013 00:11: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", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$C9udctmXB2IWZIafUJFHROvIBaPk4VVFJy7smJgcrhxErtvK/fvQG"], ["updated_at", Thu, 18 Jul 2013 00:11: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["name", "Root"], ["owner_id", 198], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EMmC1vo9kypBjqxctVSn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 198, "created_at" = '2013-07-18 00:11:30.522641', "updated_at" = '2013-07-18 00:11:30.522641', "auth_token" = 'EMmC1vo9kypBjqxctVSn' WHERE "public"."cadenero_accounts"."id" = 167  (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", 167], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:30 UTC +00:00], ["user_id", 198]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XaF1wKA3FMs6qy5p4sLK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 167, "user_id" = 198, "created_at" = '2013-07-18 00:11:30.528126', "updated_at" = '2013-07-18 00:11:30.528126', "auth_token" = 'XaF1wKA3FMs6qy5p4sLK' WHERE "public"."cadenero_members"."id" = 153  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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, "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")  (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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.4ms) BEGIN  (0.1ms) ROLLBACK  (0.8ms) BEGIN  (0.6ms) COMMIT  (0.9ms) 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) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:11:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:11:34 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'it44Lqrkmvs6xrxxVpGk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 00:11:34.950581', "updated_at" = '2013-07-18 00:11:34.950581', "auth_token" = 'it44Lqrkmvs6xrxxVpGk' WHERE "public"."cadenero_members"."id" = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (6.1ms) BEGIN  (3.9ms) COMMIT  (0.1ms) BEGIN  (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", Thu, 18 Jul 2013 00:14:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$wVspomAR4syxNKOHs3Z3deY96njsK92grdg9j4BFeW9mAAU2/WqJ6"], ["updated_at", Thu, 18 Jul 2013 00:14:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.7ms) 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 (4.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 199], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:14:54 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pBNYy7z5Mz2SyNPz1ZxV' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 199, "created_at" = '2013-07-18 00:14:54.612939', "updated_at" = '2013-07-18 00:14:54.612939', "auth_token" = 'pBNYy7z5Mz2SyNPz1ZxV' WHERE "public"."cadenero_accounts"."id" = 168  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 168], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:54 UTC +00:00], ["user_id", 199]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zVHkycmZyMrz2GZyJ9E1' LIMIT 1  (2.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 168, "user_id" = 199, "created_at" = '2013-07-18 00:14:54.765104', "updated_at" = '2013-07-18 00:14:54.765104', "auth_token" = 'zVHkycmZyMrz2GZyJ9E1' WHERE "public"."cadenero_members"."id" = 155  (10.0ms) RELEASE SAVEPOINT active_record_1  (4.7ms) CREATE SCHEMA "test1"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (7.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (9.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 168 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" = 199 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 199 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 199 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" = 199 Completed 201 Created in 185ms (Views: 29.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 199 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-17 19:14:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"199", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 199 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14: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-17 19:14:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$VyzDU2iWTJpNlcW4/ddmQ.fBeAcqQfXmmqHst6mKmbpn8VzGHh3AO"], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 168], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["user_id", 200]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QMkxXooJwKdaAdR7fdYS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 168, "user_id" = 200, "created_at" = '2013-07-18 00:14:55.246750', "updated_at" = '2013-07-18 00:14:55.246750', "auth_token" = 'QMkxXooJwKdaAdR7fdYS' WHERE "public"."cadenero_members"."id" = 156  (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" = 200 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 200 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 200 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 200 Completed 201 Created in 112ms (Views: 5.7ms | 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/200" for 127.0.0.1 at 2013-07-17 19:14:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"200"} 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" = 168 AND "public"."cadenero_users"."id" = 200 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 200 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 200 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 200 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 200 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14: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" = 200 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 200 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 200 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" = 200 Completed 201 Created in 7ms (Views: 4.8ms | 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$ke.hENPi5xJsY3LqVqUUpuI.hMl1fqeuqBbrRRyppYN0Cyehum7Eu"], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 201], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xpQDzX6bahh5314WkmxW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 201, "created_at" = '2013-07-18 00:14:55.412859', "updated_at" = '2013-07-18 00:14:55.412859', "auth_token" = 'xpQDzX6bahh5314WkmxW' WHERE "public"."cadenero_accounts"."id" = 169  (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", 169], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["user_id", 201]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HczBw4iq3FUqUGgYpE61' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 169, "user_id" = 201, "created_at" = '2013-07-18 00:14:55.418299', "updated_at" = '2013-07-18 00:14:55.418299', "auth_token" = 'HczBw4iq3FUqUGgYpE61' WHERE "public"."cadenero_members"."id" = 157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.2ms) 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.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)  (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14: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.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" = 169 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" = 201 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 201 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 201 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 201 Completed 201 Created in 109ms (Views: 5.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 201 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"201", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 201 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$AHdY.crB8z9Mbh9wi7dJ7uDVzKgcJEbOZEZFiQU171knIHYTk5J9S"], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 202], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mypVRodAPWUBLqFA4iEe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 202, "created_at" = '2013-07-18 00:14:55.736820', "updated_at" = '2013-07-18 00:14:55.736820', "auth_token" = 'mypVRodAPWUBLqFA4iEe' WHERE "public"."cadenero_accounts"."id" = 170  (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", 170], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:55 UTC +00:00], ["user_id", 202]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JoVqjZmiqqsJqJPWN8Et' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 170, "user_id" = 202, "created_at" = '2013-07-18 00:14:55.742126', "updated_at" = '2013-07-18 00:14:55.742126', "auth_token" = 'JoVqjZmiqqsJqJPWN8Et' WHERE "public"."cadenero_members"."id" = 158  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (7.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.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 ('20130717234244')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 170 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" = 202 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 202 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 202 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 202 Completed 201 Created in 115ms (Views: 5.4ms | ActiveRecord: 7.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"."user_id" = 202 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14: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" = 202 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.9ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$VHaIovtlrtOzMR.huGslLuhKPW0/wL9Abrz18zrPKGi8nf/o8UE9S"], ["updated_at", Thu, 18 Jul 2013 00:14: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 203], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bnvc8QJSM5A7NUPqCkzL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 203, "created_at" = '2013-07-18 00:14:56.068465', "updated_at" = '2013-07-18 00:14:56.068465', "auth_token" = 'bnvc8QJSM5A7NUPqCkzL' WHERE "public"."cadenero_accounts"."id" = 171  (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", 171], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["user_id", 203]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wLe6hEmm2PT6uJkf1sLT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 171, "user_id" = 203, "created_at" = '2013-07-18 00:14:56.073941', "updated_at" = '2013-07-18 00:14:56.073941', "auth_token" = 'wLe6hEmm2PT6uJkf1sLT' WHERE "public"."cadenero_members"."id" = 159  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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")  (0.9ms) 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)  (3.4ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:14:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$H9FRGwYGfSA8lCUqV/vK7e4RJzckoFHoIueGQa.77RBT70LQpq2Sm"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 171], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["user_id", 204]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qXS1BWMoZfCqoiUEXFXs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 171, "user_id" = 204, "created_at" = '2013-07-18 00:14:56.238609', "updated_at" = '2013-07-18 00:14:56.238609', "auth_token" = 'qXS1BWMoZfCqoiUEXFXs' WHERE "public"."cadenero_members"."id" = 160  (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" = 204 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 204 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 204 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 204 Completed 201 Created in 111ms (Views: 5.6ms | 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/204" for 127.0.0.1 at 2013-07-17 19:14:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"204"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.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" = 171 AND "public"."cadenero_users"."id" = 204 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 204 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 204 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 204 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 204 Completed 200 OK in 15ms (Views: 8.2ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14: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" = 204 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 204 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 204 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 204 Completed 201 Created in 8ms (Views: 5.9ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14: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" = 204 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$RxzstwQ71tuchmxlBGrll.vk2fSavJTaJK3OWFoURbphYlfntrkyq"], ["updated_at", Thu, 18 Jul 2013 00:14: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" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 205], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '4PcjkuESHnr85iALYjAC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 205, "created_at" = '2013-07-18 00:14:56.498139', "updated_at" = '2013-07-18 00:14:56.498139', "auth_token" = '4PcjkuESHnr85iALYjAC' WHERE "public"."cadenero_accounts"."id" = 172  (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", 172], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["user_id", 205]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zobVPLY4Fzn9FKbxJ47c' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 172, "user_id" = 205, "created_at" = '2013-07-18 00:14:56.503582', "updated_at" = '2013-07-18 00:14:56.503582', "auth_token" = 'zobVPLY4Fzn9FKbxJ47c' WHERE "public"."cadenero_members"."id" = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130717234244')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14:56 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$G5/vYpJ1LzMHNPL3sYlQS.mnb83HLI007VtyS3gjffDKYG3WNDGje"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 206], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TqA9XcmNk67gfgVmNJk5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 206, "created_at" = '2013-07-18 00:14:56.672722', "updated_at" = '2013-07-18 00:14:56.672722', "auth_token" = 'TqA9XcmNk67gfgVmNJk5' WHERE "public"."cadenero_accounts"."id" = 173  (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", 173], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["user_id", 206]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rkxqpqVZ7WHMJQ9m47UW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 173, "user_id" = 206, "created_at" = '2013-07-18 00:14:56.678213', "updated_at" = '2013-07-18 00:14:56.678213', "auth_token" = 'rkxqpqVZ7WHMJQ9m47UW' WHERE "public"."cadenero_members"."id" = 162  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$J5ij/sXkgZRJYObt2SnQB.wDQA4Ncr1j/PCljAcsj1fgrFPuKLxEm"], ["updated_at", Thu, 18 Jul 2013 00:14: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" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 207], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zzr1CNNRR9y7BGe3ByAS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 207, "created_at" = '2013-07-18 00:14:56.835280', "updated_at" = '2013-07-18 00:14:56.835280', "auth_token" = 'zzr1CNNRR9y7BGe3ByAS' WHERE "public"."cadenero_accounts"."id" = 174  (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", 174], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["user_id", 207]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vzEapj9hzdN52yzyUax9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 174, "user_id" = 207, "created_at" = '2013-07-18 00:14:56.840413', "updated_at" = '2013-07-18 00:14:56.840413', "auth_token" = 'vzEapj9hzdN52yzyUax9' WHERE "public"."cadenero_members"."id" = 163  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 173 AND "public"."cadenero_users"."email" = 'user7@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  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$gsAYM/PLqwS3WtBo89w/BePMhvayqJP05mfYAiH6qtaBTqbxt8lYu"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 208], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'csV2BFYkdWJQz5DxYVqM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 208, "created_at" = '2013-07-18 00:14:56.972484', "updated_at" = '2013-07-18 00:14:56.972484', "auth_token" = 'csV2BFYkdWJQz5DxYVqM' WHERE "public"."cadenero_accounts"."id" = 175  (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", 175], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:56 UTC +00:00], ["user_id", 208]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9jdJ5MiRuuMXESpkqteD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 175, "user_id" = 208, "created_at" = '2013-07-18 00:14:56.977900', "updated_at" = '2013-07-18 00:14:56.977900', "auth_token" = '9jdJ5MiRuuMXESpkqteD' WHERE "public"."cadenero_members"."id" = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14: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 ('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" = 175 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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$50YDY2zhYATeVEQJsriB..nwSDSlYODQBrpKJycyJFcUafLN7RkX6"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 209], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qyx67BPdzqwnW4zsPpcy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 209, "created_at" = '2013-07-18 00:14:57.150569', "updated_at" = '2013-07-18 00:14:57.150569', "auth_token" = 'qyx67BPdzqwnW4zsPpcy' WHERE "public"."cadenero_accounts"."id" = 176  (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", 176], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["user_id", 209]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6MjoyeGx7oPQomGBtkJY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 176, "user_id" = 209, "created_at" = '2013-07-18 00:14:57.156191', "updated_at" = '2013-07-18 00:14:57.156191', "auth_token" = '6MjoyeGx7oPQomGBtkJY' WHERE "public"."cadenero_members"."id" = 165  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:14: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 ('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" = 176 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$lUd4.Ud5LHWmspR1We0iUey4K5QHQf2oUth4cQ1b5feNine461MOC"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 210], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '24j5HjUsvk1MpganpTod' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 210, "created_at" = '2013-07-18 00:14:57.349221', "updated_at" = '2013-07-18 00:14:57.349221', "auth_token" = '24j5HjUsvk1MpganpTod' WHERE "public"."cadenero_accounts"."id" = 177  (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", 177], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["user_id", 210]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yBgCd9cV8dAcwXpBMw7x' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 177, "user_id" = 210, "created_at" = '2013-07-18 00:14:57.354608', "updated_at" = '2013-07-18 00:14:57.354608', "auth_token" = 'yBgCd9cV8dAcwXpBMw7x' WHERE "public"."cadenero_members"."id" = 166  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("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.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.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 ('20130717234244')  (0.2ms) 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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$vieRmWxPAGwgqV0deLg/aeF1pqcHJ4fk5lWSaLHQAAzmrEyBNHZeO"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 211], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'L7yFvMnJBWMPve4E8FiG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 211, "created_at" = '2013-07-18 00:14:57.506676', "updated_at" = '2013-07-18 00:14:57.506676', "auth_token" = 'L7yFvMnJBWMPve4E8FiG' WHERE "public"."cadenero_accounts"."id" = 178  (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", 178], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["user_id", 211]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xnqzy8sLDrcsKyD45fnQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 178, "user_id" = 211, "created_at" = '2013-07-18 00:14:57.511811', "updated_at" = '2013-07-18 00:14:57.511811', "auth_token" = 'Xnqzy8sLDrcsKyD45fnQ' WHERE "public"."cadenero_members"."id" = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (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 ('20130717234244')  (0.5ms) 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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 211 Started GET "/v1?auth_token[]=Xnqzy8sLDrcsKyD45fnQ" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Xnqzy8sLDrcsKyD45fnQ"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 177 AND "public"."cadenero_members"."auth_token" IN ('Xnqzy8sLDrcsKyD45fnQ') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (8.4ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) COMMIT  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$C8rrzOthqdRH51BDenWiIu4fT3/cf7MdeyNJAO7BenFy119bzX2cW"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 212], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dKyZNffaPpUZQUm4baQ9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 212, "created_at" = '2013-07-18 00:14:57.698099', "updated_at" = '2013-07-18 00:14:57.698099', "auth_token" = 'dKyZNffaPpUZQUm4baQ9' WHERE "public"."cadenero_accounts"."id" = 179  (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", 179], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["user_id", 212]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kq5oiykiojLBqLU14kPN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 179, "user_id" = 212, "created_at" = '2013-07-18 00:14:57.703539', "updated_at" = '2013-07-18 00:14:57.703539', "auth_token" = 'kq5oiykiojLBqLU14kPN' WHERE "public"."cadenero_members"."id" = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:14: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" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$lUSnDjAVo4K6myII5PUULOws/gh9SREsUVcDRWjVNLx.c555tSLQy"], ["updated_at", Thu, 18 Jul 2013 00:14:57 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", 179], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:57 UTC +00:00], ["user_id", 213]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'a6hkKT7zTQuxzQVn3Mfy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 179, "user_id" = 213, "created_at" = '2013-07-18 00:14:57.894150', "updated_at" = '2013-07-18 00:14:57.894150', "auth_token" = 'a6hkKT7zTQuxzQVn3Mfy' WHERE "public"."cadenero_members"."id" = 169  (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" = 213 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 213 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 213 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 213 Completed 201 Created in 115ms (Views: 6.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/213" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"213"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 179 AND "public"."cadenero_users"."id" = 213 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 213 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 213 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 213 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 213 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 212 Started GET "/v1?auth_token[]=kq5oiykiojLBqLU14kPN" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["kq5oiykiojLBqLU14kPN"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 179 AND "public"."cadenero_members"."auth_token" IN ('kq5oiykiojLBqLU14kPN') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 212 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 212 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 213 Started GET "/v1?auth_token[]=a6hkKT7zTQuxzQVn3Mfy" for 127.0.0.1 at 2013-07-17 19:14:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["a6hkKT7zTQuxzQVn3Mfy"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 179 AND "public"."cadenero_members"."auth_token" IN ('a6hkKT7zTQuxzQVn3Mfy') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 213 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 213 LIMIT 1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$9IUNaqoU5aI864t6pw9q.e3an8NF3vVqwidAqh9KArFHIi01cGqmO"], ["updated_at", Thu, 18 Jul 2013 00:14: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 214], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QnFdYMe13zYTyru4wpvU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 214, "created_at" = '2013-07-18 00:14:58.064070', "updated_at" = '2013-07-18 00:14:58.064070', "auth_token" = 'QnFdYMe13zYTyru4wpvU' WHERE "public"."cadenero_accounts"."id" = 180  (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", 180], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["user_id", 214]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XnhL3TnAqMKSFSCG8Vsp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 180, "user_id" = 214, "created_at" = '2013-07-18 00:14:58.070221', "updated_at" = '2013-07-18 00:14:58.070221', "auth_token" = 'XnhL3TnAqMKSFSCG8Vsp' WHERE "public"."cadenero_members"."id" = 170  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:14:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 214 Started GET "/v1?auth_token[]=XnhL3TnAqMKSFSCG8Vsp" for 127.0.0.1 at 2013-07-17 19:14:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["XnhL3TnAqMKSFSCG8Vsp"], "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 180 AND "public"."cadenero_members"."auth_token" IN ('XnhL3TnAqMKSFSCG8Vsp') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 214 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 214 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.1ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$OqilJ4/C8b8HEnCYXiiquOc9P8Aw9HG9biPPHpvUlA8WjzjtX8YjO"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["name", "Test Account"], ["owner_id", 215], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PDgK7DU1MprA8ha9V4Ds' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 215, "created_at" = '2013-07-18 00:14:58.251538', "updated_at" = '2013-07-18 00:14:58.251538', "auth_token" = 'PDgK7DU1MprA8ha9V4Ds' WHERE "public"."cadenero_accounts"."id" = 181  (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", 181], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["user_id", 215]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YfHvAxeJwsRssYXohEng' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 181, "user_id" = 215, "created_at" = '2013-07-18 00:14:58.258020', "updated_at" = '2013-07-18 00:14:58.258020', "auth_token" = 'YfHvAxeJwsRssYXohEng' WHERE "public"."cadenero_members"."id" = 171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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")  (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.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 ('20130717234244')  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" = 181 LIMIT 1  (4.3ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) COMMIT  (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  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:14: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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$dkVUyh6gOlMGEhn9sUwzPuhd2EurQQpn4cQgKtdCKCBR3EdUKrBwe"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["name", "Testy"], ["owner_id", 216], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MT2xMuvqvAvypuKwBJtc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 216, "created_at" = '2013-07-18 00:14:58.811166', "updated_at" = '2013-07-18 00:14:58.811166', "auth_token" = 'MT2xMuvqvAvypuKwBJtc' WHERE "public"."cadenero_accounts"."id" = 182  (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", 182], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["user_id", 216]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zKArrpQZzsLJZwR8kkpG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 182, "user_id" = 216, "created_at" = '2013-07-18 00:14:58.817160', "updated_at" = '2013-07-18 00:14:58.817160', "auth_token" = 'zKArrpQZzsLJZwR8kkpG' WHERE "public"."cadenero_members"."id" = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.4ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" != 182) LIMIT 1 Completed 201 Created in 179ms (Views: 1.8ms | ActiveRecord: 42.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/w6VhW7CK5xH1S2BseZxGe2cSWzz3StB1bCLPcJ0FWUfet77exsc6"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00], ["name", "Testy"], ["owner_id", 217], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:14:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wUC75qBnTaznGWggwgsU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 217, "created_at" = '2013-07-18 00:14:58.996438', "updated_at" = '2013-07-18 00:14:58.996438', "auth_token" = 'wUC75qBnTaznGWggwgsU' WHERE "public"."cadenero_accounts"."id" = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:14: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.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 101ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$oqa8e3v5dPcPCd8IcLNeUO44n1QZ2otVdNzxdLHY3n0g6jIk6v1Wy"], ["updated_at", Thu, 18 Jul 2013 00:14: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" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 218], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'YmArUkNXLySkfWx8qcGY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 218, "created_at" = '2013-07-18 00:14:59.214710', "updated_at" = '2013-07-18 00:14:59.214710', "auth_token" = 'YmArUkNXLySkfWx8qcGY' WHERE "public"."cadenero_accounts"."id" = 184  (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", 184], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["user_id", 218]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JDspLqaARNmoVajX5XFc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 184, "user_id" = 218, "created_at" = '2013-07-18 00:14:59.220087', "updated_at" = '2013-07-18 00:14:59.220087', "auth_token" = 'JDspLqaARNmoVajX5XFc' WHERE "public"."cadenero_members"."id" = 173  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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")  (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 ('20130717234244')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:14: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" = 'test14' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$kv6STYpJN4bHR1uZ/V9ZpOLLmrIFoeITwzUGd62nuUYnxTeLZWbLa"], ["updated_at", Thu, 18 Jul 2013 00:14: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", 184], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["user_id", 219]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YoNpRq87BCEAc1R4xpxe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 184, "user_id" = 219, "created_at" = '2013-07-18 00:14:59.369817', "updated_at" = '2013-07-18 00:14:59.369817', "auth_token" = 'YoNpRq87BCEAc1R4xpxe' WHERE "public"."cadenero_members"."id" = 174  (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" = 219 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 219 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 219 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 219 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/219" for 127.0.0.1 at 2013-07-17 19:14:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"219"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 184 AND "public"."cadenero_users"."id" = 219 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 219 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 219 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 219 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 219 Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 1.9ms)  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$T9sxoUyYDiBO7ySApVolNuLgs/UMSanVsUSqtzRvB78yKvOeNA.3O"], ["updated_at", Thu, 18 Jul 2013 00:14: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" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 220], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kE8Ae1uZcU9tyqjEdeRN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 220, "created_at" = '2013-07-18 00:14:59.508991', "updated_at" = '2013-07-18 00:14:59.508991', "auth_token" = 'kE8Ae1uZcU9tyqjEdeRN' WHERE "public"."cadenero_accounts"."id" = 185  (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", 185], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["user_id", 220]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n5BKBSmBrEMqA3opFtTa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 185, "user_id" = 220, "created_at" = '2013-07-18 00:14:59.514340', "updated_at" = '2013-07-18 00:14:59.514340', "auth_token" = 'n5BKBSmBrEMqA3opFtTa' WHERE "public"."cadenero_members"."id" = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:14: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" = 'test15' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DdwSB5Fu31Hj1wKiYxVpTOTW.4W6.N05yb5hRYljHh99KyzPee7mi"], ["updated_at", Thu, 18 Jul 2013 00:14: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", 185], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["user_id", 221]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4nqp7T6qTERnizb4TiGi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 185, "user_id" = 221, "created_at" = '2013-07-18 00:14:59.661978', "updated_at" = '2013-07-18 00:14:59.661978', "auth_token" = '4nqp7T6qTERnizb4TiGi' WHERE "public"."cadenero_members"."id" = 176  (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" = 221 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 221 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 221 Completed 201 Created in 111ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/221" for 127.0.0.1 at 2013-07-17 19:14:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"221"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 185 AND "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 221 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" = 221 Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 1.6ms) 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" = 'test16' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 221], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KbxWVSuruyzoxX2QZNLR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 221, "created_at" = '2013-07-18 00:14:59.691646', "updated_at" = '2013-07-18 00:14:59.691646', "auth_token" = 'KbxWVSuruyzoxX2QZNLR' WHERE "public"."cadenero_accounts"."id" = 186  (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", 186], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["user_id", 221]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UJirVKqyX37g8jA8mjYH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 186, "user_id" = 221, "created_at" = '2013-07-18 00:14:59.697429', "updated_at" = '2013-07-18 00:14:59.697429', "auth_token" = 'UJirVKqyX37g8jA8mjYH' WHERE "public"."cadenero_members"."id" = 177  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:14: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" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IBjMNqn9Zf1phId5R.aSC.5OTZ2Ld.kKwMnBaId1MIU6GMjZFgM9u"], ["updated_at", Thu, 18 Jul 2013 00:14: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", 186], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:14:59 UTC +00:00], ["user_id", 222]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D6Z1c7xam4kzyb8ti1Wq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 186, "user_id" = 222, "created_at" = '2013-07-18 00:14:59.843485', "updated_at" = '2013-07-18 00:14:59.843485', "auth_token" = 'D6Z1c7xam4kzyb8ti1Wq' WHERE "public"."cadenero_members"."id" = 178  (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" = 222 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 222 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 222 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 222 Completed 201 Created in 111ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/222" for 127.0.0.1 at 2013-07-17 19:14:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"222"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 186 AND "public"."cadenero_users"."id" = 222 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 222 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 222 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 222 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 222 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) Started GET "/v1/users/221" for 127.0.0.1 at 2013-07-17 19:14:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"221"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 185 AND "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 221 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 221 Completed 200 OK in 45ms (Views: 39.5ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 19:14: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" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 185 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 221 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 221 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 220 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 220 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 220 Completed 200 OK in 17ms (Views: 12.6ms | ActiveRecord: 2.7ms)  (7.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:15:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:15:00 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4azdV7qVeqqJ8yML2z5n' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 00:15:00.061878', "updated_at" = '2013-07-18 00:15:00.061878', "auth_token" = '4azdV7qVeqqJ8yML2z5n' WHERE "public"."cadenero_members"."id" = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) 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", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$ivGD7t01cBLNkFzM8sVssum8aEN9Pgdy/y0zFpb7QC4SNSz8r5goa"], ["updated_at", Thu, 18 Jul 2013 00:15: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" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 223], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SqN6VW3TtyJxG1LkNusk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 223, "created_at" = '2013-07-18 00:15:08.240722', "updated_at" = '2013-07-18 00:15:08.240722', "auth_token" = 'SqN6VW3TtyJxG1LkNusk' WHERE "public"."cadenero_accounts"."id" = 187  (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", 187], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["user_id", 223]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tQ3py1xP37wcevQA3xkh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 187, "user_id" = 223, "created_at" = '2013-07-18 00:15:08.247983', "updated_at" = '2013-07-18 00:15:08.247983', "auth_token" = 'tQ3py1xP37wcevQA3xkh' WHERE "public"."cadenero_members"."id" = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$2uyIKu6ylg.1HkPYLia0LeUKJ2wu5Szqdjl0FvT4bWwXJC4fe8Tk6"], ["updated_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$l7AkUIBuFMlYDwCNxwD5uO2mlQwoICqCFXqa94L.Iaz35xulR5TZG"], ["updated_at", Thu, 18 Jul 2013 00:15: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" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["name", "Root"], ["owner_id", 225], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6PjXpwccuKPCyV5Y7r9U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 225, "created_at" = '2013-07-18 00:15:08.457504', "updated_at" = '2013-07-18 00:15:08.457504', "auth_token" = '6PjXpwccuKPCyV5Y7r9U' WHERE "public"."cadenero_accounts"."id" = 188  (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", 188], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:15:08 UTC +00:00], ["user_id", 225]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mtBMC6pwTrbzoZUf6SFY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 188, "user_id" = 225, "created_at" = '2013-07-18 00:15:08.463167', "updated_at" = '2013-07-18 00:15:08.463167', "auth_token" = 'mtBMC6pwTrbzoZUf6SFY' WHERE "public"."cadenero_members"."id" = 181  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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))  (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.0ms) 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")  (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)   (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 ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCadeneroV1Accounts (20130612061604)  (0.1ms) BEGIN  (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, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612061604"]]  (1.1ms) COMMIT Migrating to CreateCadeneroV1Users (20130612064652)  (0.2ms) BEGIN  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  SQL (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612064652"]]  (2.2ms) COMMIT Migrating to CreateCadeneroV1Members (20130612073709)  (0.7ms) BEGIN  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp)   (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") SQL (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612073709"]]  (0.8ms) COMMIT Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.5ms) BEGIN  (0.6ms) ALTER TABLE "cadenero_members" ADD COLUMN "auth_token" character varying(255)  (10.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130715174857"]]  (0.6ms) COMMIT Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "cadenero_accounts" RENAME COLUMN "authentication_token" TO "auth_token"  (0.2ms) ALTER INDEX "index_cadenero_accounts_on_authentication_token" RENAME TO "index_cadenero_accounts_on_auth_token"  (0.1ms) ROLLBACK  (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCadeneroV1Accounts (20130612061604)  (0.2ms) BEGIN  (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, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612061604"]]  (1.2ms) COMMIT Migrating to CreateCadeneroV1Users (20130612064652)  (0.2ms) BEGIN  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612064652"]]  (1.2ms) COMMIT Migrating to CreateCadeneroV1Members (20130612073709)  (0.3ms) BEGIN  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp)   (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") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612073709"]]  (1.2ms) COMMIT Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "cadenero_members" ADD COLUMN "auth_token" character varying(255)  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130715174857"]]  (0.6ms) COMMIT Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "cadenero_accounts" RENAME COLUMN "authentication_token" TO "auth_token"  (0.2ms) ALTER INDEX "index_cadenero_accounts_on_authentication_token" RENAME TO "index_cadenero_accounts_on_auth_token"  (0.3ms) ROLLBACK  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCadeneroV1Accounts (20130612061604)  (0.1ms) BEGIN  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612061604"]]  (1.2ms) COMMIT Migrating to CreateCadeneroV1Users (20130612064652)  (0.2ms) BEGIN  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612064652"]]  (1.0ms) COMMIT Migrating to CreateCadeneroV1Members (20130612073709)  (0.6ms) BEGIN  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp)   (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") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130612073709"]]  (0.8ms) COMMIT Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "cadenero_members" ADD COLUMN "auth_token" character varying(255)  (4.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130715174857"]]  (0.9ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (6.0ms) COMMIT  (3.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 26ms  (0.1ms) ROLLBACK  (9.0ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (2.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (48.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$csRAuj8WXr3qrcHypQ0RfuFHOEGRgeQlr3r5mcAWn21A91jKp97SK"], ["updated_at", Thu, 18 Jul 2013 00:30:05 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, 18 Jul 2013 00:30:05 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'aBBLsY3q9NAma2bQW1fW' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["id", 1], ["auth_token", "aBBLsY3q9NAma2bQW1fW"]] 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, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 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" = 'uDDBP8r1jE9sN95rQHu6' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1], ["user_id", 1], ["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["id", 1], ["auth_token", "uDDBP8r1jE9sN95rQHu6"]]  (0.4ms) CREATE SCHEMA "test" SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.4ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]]  (5.4ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) COMMIT  (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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$AWx3e2UveKxJoWT2ThQF4uEvcuTF6JydblY2d.NVOrsBXdPpj/0q6"], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'X1g1rhRfAYgmHbCdyHgV' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 2], ["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["id", 2], ["auth_token", "X1g1rhRfAYgmHbCdyHgV"]] Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:30: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} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:30: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} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$2tD.eluZ6xpJKliIzxtxy.ANW.EZE3lM5sqNU1xmakJsjk.M9KdhW"], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["name", "Testy"], ["owner_id", 3], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Jzx2qrs9WoUSvLx5VLYc' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 3], ["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["id", 3], ["auth_token", "Jzx2qrs9WoUSvLx5VLYc"]] 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, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gdCadxC1Mq1HVyyNpSxj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 3], ["user_id", 3], ["created_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:05 UTC +00:00], ["id", 2], ["auth_token", "gdCadxC1Mq1HVyyNpSxj"]]  (0.2ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) 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.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" != 3) LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 500 Internal Server Error in 120ms  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (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" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (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 76ms (Views: 73.2ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (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" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (3.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_users" 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, 18 Jul 2013 00:30:08 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$oWSy5l3EkbLMFjOF.QKAse2bp//t.LbuVkcT8dCZSRakHTpumAzGa"], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00]] Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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, 18 Jul 2013 00:30:08 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 4], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'iPvH535ZrW4nAQDc3FdK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 4], ["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["id", 4], ["auth_token", "iPvH535ZrW4nAQDc3FdK"]] 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, 18 Jul 2013 00:30:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["user_id", 4]] Cadenero::Member Load (4.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gsen8UaGPEGyyrWoEzzd' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 4], ["user_id", 4], ["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["id", 3], ["auth_token", "gsen8UaGPEGyyrWoEzzd"]] SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$Wgjih5d0icjQilDY/kYizORe.Q0npmBRcU0OOExmFa2cQSjv6DakK"], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$0Z5Uq7hbFlwA9yc5fixqPu/4v7FPrJwcKq9wQpE7n6C.ZzNameZWm"], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["name", "Root"], ["owner_id", 6], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's58dL9ApWaw97ykvykpw' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Root"], ["subdomain", "www"], ["owner_id", 6], ["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["id", 5], ["auth_token", "s58dL9ApWaw97ykvykpw"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["user_id", 6]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ykCQCUhVsvnxLzEzmtn5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 5], ["user_id", 6], ["created_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:08 UTC +00:00], ["id", 4], ["auth_token", "ykCQCUhVsvnxLzEzmtn5"]]  (0.2ms) CREATE SCHEMA "www" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) COMMIT  (0.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QpU62fpLf8wPisiK9Nvc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 1001], ["user_id", 101], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["id", 5], ["auth_token", "QpU62fpLf8wPisiK9Nvc"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$.Hb7Awzoey/7ZxH7xjGJAONeWk9dWVI0VLU0ehui5KKQIvaMP9wJO"], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 7], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GvXya8NgzU92VoYqQ7db' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 7], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["id", 6], ["auth_token", "GvXya8NgzU92VoYqQ7db"]] 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, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["user_id", 7]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cKF95gmdhaD932JD2yLg' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 6], ["user_id", 7], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["id", 6], ["auth_token", "cKF95gmdhaD932JD2yLg"]]  (0.2ms) CREATE SCHEMA "test2" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (29.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (15.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (57.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:30: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 (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$UanGZkHLDX8gLLyrSdCjhuBh493Pf5gkgMbFSePsuJ9QceGdTTiSC"], ["updated_at", Thu, 18 Jul 2013 00:30:12 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", 6], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["user_id", 8]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZxDBKKJopHpPMkonebGk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 6], ["user_id", 8], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["id", 7], ["auth_token", "ZxDBKKJopHpPMkonebGk"]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] 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", 8]] Completed 201 Created in 61ms (Views: 18.6ms | ActiveRecord: 25.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/8" for 127.0.0.1 at 2013-07-17 19:30:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"8"} 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 (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" = 8 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] 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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 200 OK in 22ms (Views: 9.2ms | ActiveRecord: 3.0ms) Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Started GET "/v1?auth_token[]=cKF95gmdhaD932JD2yLg" for 127.0.0.1 at 2013-07-17 19:30:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["cKF95gmdhaD932JD2yLg"], "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::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('cKF95gmdhaD932JD2yLg') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 7]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 70ms (Views: 0.2ms | ActiveRecord: 5.1ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Started GET "/v1?auth_token[]=ZxDBKKJopHpPMkonebGk" for 127.0.0.1 at 2013-07-17 19:30:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ZxDBKKJopHpPMkonebGk"], "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::Member Load (10.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('ZxDBKKJopHpPMkonebGk') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 8]] 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 24ms (Views: 0.2ms | ActiveRecord: 12.4ms)  (24.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$slDjCPwtP/36EwcjZJTzn.HIESanDmXLw9lPa.AXs0PFbk08JQBhy"], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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, 18 Jul 2013 00:30:12 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 9], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CcejLGRTWqyXTAmykvbQ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 9], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["id", 7], ["auth_token", "CcejLGRTWqyXTAmykvbQ"]] 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, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["user_id", 9]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DUmPKu6u4cFefEapQ9Qf' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 7], ["user_id", 9], ["created_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:12 UTC +00:00], ["id", 8], ["auth_token", "DUmPKu6u4cFefEapQ9Qf"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.5ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (66.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (17.4ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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) Cadenero::Member Load (8.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Started GET "/v1?auth_token[]=DUmPKu6u4cFefEapQ9Qf" for 127.0.0.1 at 2013-07-17 19:30:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["DUmPKu6u4cFefEapQ9Qf"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('DUmPKu6u4cFefEapQ9Qf') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 9]] Cadenero::User Load (0.2ms) 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: 2.1ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$.nnVrGqKZSMVSOWzq7mOyOxQrCQCR9FDAtqmUWLgx.QrA01A/OdLe"], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00]] Cadenero::V1::Account Exists (2.1ms) 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, 18 Jul 2013 00:30:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 10], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00]] Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hvyqtAMYy9y4tb12TkSn' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 10], ["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["id", 8], ["auth_token", "hvyqtAMYy9y4tb12TkSn"]] 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, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["user_id", 10]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vYM7KMa1NzJiBZjxDtZa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 8], ["user_id", 10], ["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["id", 9], ["auth_token", "vYM7KMa1NzJiBZjxDtZa"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (29.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (16.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) 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, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (7.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$YX09iBcILg1Ffpdvpx7BaOTqMXeavtxLCe6OQn/uRA/mPq.hDN.Aq"], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00]] Cadenero::V1::Account Exists (8.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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, 18 Jul 2013 00:30:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 11], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00]] Cadenero::V1::Account Load (7.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'e59gJDXgeRyWy7jLTAe9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (36.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 11], ["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["id", 9], ["auth_token", "e59gJDXgeRyWy7jLTAe9"]] 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, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["user_id", 11]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gD3dUreriTuGsPKMy2ir' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 9], ["user_id", 11], ["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["id", 10], ["auth_token", "gD3dUreriTuGsPKMy2ir"]]  (0.2ms) CREATE SCHEMA "test5" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (9.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (9.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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) Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Started GET "/v1?auth_token[]=gD3dUreriTuGsPKMy2ir" for 127.0.0.1 at 2013-07-17 19:30:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["gD3dUreriTuGsPKMy2ir"], "default"=>:json} Cadenero::V1::Account Load (12.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (10.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('gD3dUreriTuGsPKMy2ir') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 8]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 27ms (Views: 0.3ms | ActiveRecord: 23.2ms)  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$2pAoZhmzT5/8JWD1LkUfwO5uh8B6rSSIAl/y77dwCfomWEXm.rbiS"], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 00:30:13 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 12], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'JsDmYkUvk7nuCaha4PW5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (10.0ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 12], ["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["id", 10], ["auth_token", "JsDmYkUvk7nuCaha4PW5"]] SQL (20.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, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["user_id", 12]] Cadenero::Member Load (7.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yfyz8ncpMftWpmb5dxGA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 10], ["user_id", 12], ["created_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:13 UTC +00:00], ["id", 11], ["auth_token", "Yfyz8ncpMftWpmb5dxGA"]]  (0.3ms) CREATE SCHEMA "test6" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (81.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (8.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (9.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (31.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (13.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.3ms) SELECT version FROM "schema_migrations"  (8.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (10.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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/users" for 127.0.0.1 at 2013-07-17 19:30:14 -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" = 'test6' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$ItP5LYE4.perzdM3mRLHQOWgd4WuNzcXmEq6M6YMLQlRk1wDQx0q6"], ["updated_at", Thu, 18 Jul 2013 00:30: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", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["user_id", 13]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fWvs7R3BnyakoDJUEGqq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 10], ["user_id", 13], ["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["id", 12], ["auth_token", "fWvs7R3BnyakoDJUEGqq"]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] Cadenero::V1::Account Load (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", 13]] Completed 201 Created in 26ms (Views: 6.8ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (4.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-17 19:30:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"13"} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 13 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]] Cadenero::User Load (9.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" 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", 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]] Completed 200 OK in 26ms (Views: 6.7ms | ActiveRecord: 14.8ms) Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:14 -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.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] 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 12ms (Views: 6.1ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (2.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" for 127.0.0.1 at 2013-07-17 19:30:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Completed 200 OK in 32ms (Views: 0.4ms | ActiveRecord: 0.3ms)  (5.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (5.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$TcvF8StnXgPO9raeDXW.HeiEFcbjPsnfv5aePh6XbOSl3cxBqH6LS"], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00]] Cadenero::V1::Account Exists (4.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (10.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, 18 Jul 2013 00:30:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 14], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '79rkLfJSvJSgjR5Tvsmz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (18.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 14], ["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["id", 11], ["auth_token", "79rkLfJSvJSgjR5Tvsmz"]] SQL (28.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", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["user_id", 14]] Cadenero::Member Load (12.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uipzES824H3D8pBbepK5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 11], ["user_id", 14], ["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["id", 13], ["auth_token", "uipzES824H3D8pBbepK5"]]  (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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (25.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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-17 19:30: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 (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 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 AND "public"."cadenero_users"."email" = 'user8@example.com' 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::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 14]] 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 40ms (Views: 6.9ms | ActiveRecord: 22.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 14]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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" = 14 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (11.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (14.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$9Z3y71OlP9z94ZlHOIVMcuHS9C3sRavURVR2zKhODJaBzoiGatg66"], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00]] Cadenero::V1::Account Exists (9.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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, 18 Jul 2013 00:30:14 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 15], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00]] Cadenero::V1::Account Load (13.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KyJPcmuzqx8J7dKZJ5Mw' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 15], ["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["id", 12], ["auth_token", "KyJPcmuzqx8J7dKZJ5Mw"]] 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, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["user_id", 15]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BThwfYckJ1D6nV6cwfsP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (4.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 12], ["user_id", 15], ["created_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:14 UTC +00:00], ["id", 14], ["auth_token", "BThwfYckJ1D6nV6cwfsP"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (6.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (11.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.4ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:14 -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.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" = 'user9@example.com' LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 15]] 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 (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", 15]] Completed 201 Created in 29ms (Views: 16.5ms | ActiveRecord: 5.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 Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 15]] Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user9@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:15 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"15", "default"=>:json} Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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-17 19:30: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$T8jrUtzkHTjakmfgBMQJeOr4/JFycgCdQ7mzD7u48ZcDMJfYXkTeO"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] 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", 12], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["user_id", 16]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JCLJ41TsTFbnSLPWBEYw' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (10.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 12], ["user_id", 16], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["id", 15], ["auth_token", "JCLJ41TsTFbnSLPWBEYw"]] Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 16]] Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Completed 201 Created in 85ms (Views: 30.1ms | ActiveRecord: 30.0ms) 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/16" for 127.0.0.1 at 2013-07-17 19:30:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"16"} Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 Cadenero::User Load (8.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" = 16 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" 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", 16]] 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", 16]] Completed 200 OK in 32ms (Views: 10.1ms | ActiveRecord: 17.5ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30: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 (32.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::Member Load (13.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 16]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Completed 201 Created in 66ms (Views: 9.9ms | ActiveRecord: 48.3ms) Cadenero::V1::Account Load (6.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  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$fTZC16ZaILEw917GMSiiIOW//3Y71C1CMNoyncA1n2S4IPFpCN3fG"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] Cadenero::V1::Account Exists (2.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, 18 Jul 2013 00:30:15 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 17], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tiBzxKrs7w6EnyFzUxvu' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 17], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["id", 13], ["auth_token", "tiBzxKrs7w6EnyFzUxvu"]] SQL (35.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", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["user_id", 17]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'weLpDVgHtM4uyGQxr2tE' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 13], ["user_id", 17], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["id", 16], ["auth_token", "weLpDVgHtM4uyGQxr2tE"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (7.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (12.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (20.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (13.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:15 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (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" = 'user10@example.com' LIMIT 1 [["account_id", 13]] Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 17]] Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 201 Created in 29ms (Views: 8.7ms | ActiveRecord: 12.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 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 17]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:15 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"17", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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.3ms | ActiveRecord: 0.0ms)  (3.1ms) ROLLBACK  (3.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$Id.HcMJP7s1SoMXr16B74eacLkpIfFZ47fC7FKw9Jg1jc4evcGPnS"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (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, 18 Jul 2013 00:30:15 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 18], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dRY3eht76wckBtdm5dNs' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 18], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["id", 14], ["auth_token", "dRY3eht76wckBtdm5dNs"]] 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", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["user_id", 18]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2H5dUxJb4E76LsA72wq8' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 14], ["user_id", 18], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["id", 17], ["auth_token", "2H5dUxJb4E76LsA72wq8"]]  (3.4ms) CREATE SCHEMA "test10" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30: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 (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') 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" = 'foo@example.com' LIMIT 1 [["account_id", 14]] Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 10.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  (9.4ms) ROLLBACK  (0.3ms) BEGIN  (23.5ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$jVTLIr8ueA/bk3hJ7epqleOPg4SBY5Yt6qNpHxc17yqB.xHcY8Tn2"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] Cadenero::V1::Account Exists (4.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (18.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, 18 Jul 2013 00:30:15 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 19], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jEwezZ88kqWTZGnxc44A' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 19], ["created_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:15 UTC +00:00], ["id", 15], ["auth_token", "jEwezZ88kqWTZGnxc44A"]] 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", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 19]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yFU6RxBJjWjJyqgtq7Pg' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 15], ["user_id", 19], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 18], ["auth_token", "yFU6RxBJjWjJyqgtq7Pg"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (17.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (9.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (7.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (15.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (8.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (6.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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-17 19:30: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 ('test11') 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" = 'user@example.com' LIMIT 1 [["account_id", 15]] Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 8.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$VmAOHl5i/BLivJsLnM9/WOUXHbcb0VOOz/wiTRdBZZOtEjgJX/Jva"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 20], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '42rsYdt1XyP5nsWS8Eo7' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 20], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 16], ["auth_token", "42rsYdt1XyP5nsWS8Eo7"]] 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", 16], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 20]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WXnxqwNxV7PnDdUcZrTo' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 16], ["user_id", 20], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 19], ["auth_token", "WXnxqwNxV7PnDdUcZrTo"]]  (0.2ms) CREATE SCHEMA "test12" SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (12.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:16 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.6ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$UX9tLb6DPEffJKlXVmK2X.YzIdIeTvOn6p9jAHXByNPTLeCz7yhVC"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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, 18 Jul 2013 00:30:16 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 21], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DeQBQBEJMswWSsh2cTTb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.0ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 21], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 17], ["auth_token", "DeQBQBEJMswWSsh2cTTb"]] 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", 17], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 21]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D5xoHZPjxTajC9sKauGn' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 17], ["user_id", 21], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 20], ["auth_token", "D5xoHZPjxTajC9sKauGn"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (11.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (3.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 ('20130715174857')  (2.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') SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$04$owA.Zr2iX49j47PT.5naK.8kejJrHUWtg9zH7EIM8Cu0M4xAK3oZa"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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, 18 Jul 2013 00:30:16 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 22], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bFfEpmFASwcRyqmshtM5' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 18 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 22], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 18], ["auth_token", "bFfEpmFASwcRyqmshtM5"]] 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", 18], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 22]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Tg8DBSAqpExLw8RsYpU7' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 18], ["user_id", 22], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 21], ["auth_token", "Tg8DBSAqpExLw8RsYpU7"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:30: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 5ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:30:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user15@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') 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" = 'user15@example.com' LIMIT 1 [["account_id", 17]] Completed 422 Unprocessable Entity in 8ms (Views: 0.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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (10.4ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$04$83NLqtzNQZs95Ht62C.WGOC.a7mbnSfVjRqfUvyq3BOTCuQApOoPe"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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, 18 Jul 2013 00:30:16 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 23], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'os653sRQAJytSsKCwJYL' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 19 [["name", "Test Account #15"], ["subdomain", "test15"], ["owner_id", 23], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 19], ["auth_token", "os653sRQAJytSsKCwJYL"]] 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", 19], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 23]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p1sKvAwJPr5jhxyzpCTZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 22 [["account_id", 19], ["user_id", 23], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 22], ["auth_token", "p1sKvAwJPr5jhxyzpCTZ"]]  (0.2ms) CREATE SCHEMA "test15" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (27.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (6.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (5.4ms) 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.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-17 19:30: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 (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 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", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$6lzzAqall5zBHEhRtMGcme/9YVI0F.rIls80He3Xrz/fLBzJ/zSlW"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] 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", 19], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 24]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'G3Yvsp1QyWjhsLzgG9Vg' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 23 [["account_id", 19], ["user_id", 24], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 23], ["auth_token", "G3Yvsp1QyWjhsLzgG9Vg"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 24]] 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", 24]] Completed 201 Created in 63ms (Views: 6.5ms | ActiveRecord: 35.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/24" for 127.0.0.1 at 2013-07-17 19:30:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"24"} Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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" = 24 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 19]] Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 24]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Completed 200 OK in 19ms (Views: 6.0ms | ActiveRecord: 5.6ms) Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' 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, 18 Jul 2013 00:30:16 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 24], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dMASCkDaqJtrU4an6wtQ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 20 [["name", "Test Account #16"], ["subdomain", "test16"], ["owner_id", 24], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 20], ["auth_token", "dMASCkDaqJtrU4an6wtQ"]] 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", 20], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["user_id", 24]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4sRvMwbzGX1DqprNDpw1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 24 [["account_id", 20], ["user_id", 24], ["created_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:16 UTC +00:00], ["id", 24], ["auth_token", "4sRvMwbzGX1DqprNDpw1"]]  (0.2ms) CREATE SCHEMA "test16" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (11.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (12.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.0ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:30: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" = 'test16' ORDER BY "public"."cadenero_accounts"."id" ASC 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, 18 Jul 2013 00:30:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$7y4R8WpfIEV28dUHNeTacug9X0kIBvcjlaMJ4VoNcJQDtVcscBwYK"], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 20], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["user_id", 25]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XMnqLyc78frmL3LXUaEq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (9.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 25 [["account_id", 20], ["user_id", 25], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["id", 25], ["auth_token", "XMnqLyc78frmL3LXUaEq"]] Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 25 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 25]] Cadenero::V1::Account Load (23.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 25]] Cadenero::V1::Account Load (13.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", 25]] Completed 201 Created in 76ms (Views: 11.4ms | ActiveRecord: 52.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/25" for 127.0.0.1 at 2013-07-17 19:30:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"25"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 25 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 20]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 25 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 25]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 25]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 25]] Completed 200 OK in 116ms (Views: 108.7ms | ActiveRecord: 4.1ms) Started GET "/v1/users/24" for 127.0.0.1 at 2013-07-17 19:30:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"24"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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" = 24 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 19]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 24]] 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" = $1 [["user_id", 24]] Completed 200 OK in 61ms (Views: 50.6ms | ActiveRecord: 7.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 19:30:17 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (7.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (5.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 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", 19]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 24]] 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", 24]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 23]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 23]] Cadenero::V1::Account Load (7.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", 23]] Completed 200 OK in 64ms (Views: 20.7ms | ActiveRecord: 30.4ms)  (7.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$04$Gc54TOF/1yAZFz3FTxFOAeBIV34YOUAgGuE0q3v8UnPyMsVX/QMcy"], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00]] Cadenero::V1::Account Exists (3.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (6.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, 18 Jul 2013 00:30:17 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 26], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'utjGBsNnko3VVUwy58W4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (4.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 21 [["name", "Test Account #17"], ["subdomain", "test17"], ["owner_id", 26], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["id", 21], ["auth_token", "utjGBsNnko3VVUwy58W4"]] 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", 21], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["user_id", 26]] Cadenero::Member Load (2.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yFLsWzxmktzmd6ELphap' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (10.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 26 [["account_id", 21], ["user_id", 26], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["id", 26], ["auth_token", "yFLsWzxmktzmd6ELphap"]]  (0.2ms) CREATE SCHEMA "test17" SQL (3.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (10.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (14.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.6ms) SELECT version FROM "schema_migrations"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:30: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 (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 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", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$b/eXArCifnqucr3tNgOuT.olGYxFdhmsnGpL8.xn.Y0dYxm..G8zK"], ["updated_at", Thu, 18 Jul 2013 00:30:17 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", 21], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["user_id", 27]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WEMXu1SYKMzSYqZ2KCgb' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 27 [["account_id", 21], ["user_id", 27], ["created_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:30:17 UTC +00:00], ["id", 27], ["auth_token", "WEMXu1SYKMzSYqZ2KCgb"]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 27 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 27]] Cadenero::V1::Account Load (0.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", 27]] Completed 201 Created in 38ms (Views: 8.1ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/27" for 127.0.0.1 at 2013-07-17 19:30:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"27"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' 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" = 27 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 21]] Cadenero::User Load (5.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 27 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 27]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] Completed 200 OK in 17ms (Views: 6.2ms | ActiveRecord: 7.0ms)  (5.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) 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", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$YigUNF0IGsT8LhzwL0funeMdYiLpfmSh.sA7XpZkLoVsoNI9VkZyC"], ["updated_at", Thu, 18 Jul 2013 00:39:37 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, 18 Jul 2013 00:39:37 UTC +00:00], ["name", "Test Account"], ["owner_id", 28], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CfmVqz3hBx8LDgeuKZNd' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 22 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 28], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["id", 22], ["auth_token", "CfmVqz3hBx8LDgeuKZNd"]] SQL (6.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 22], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["user_id", 28]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GQ8Hzj16AwyGSZp4br28' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 28 [["account_id", 22], ["user_id", 28], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["id", 28], ["auth_token", "GQ8Hzj16AwyGSZp4br28"]]  (0.4ms) CREATE SCHEMA "test" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (37.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (56.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (9.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (9.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 22]]  (7.7ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:39: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} 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, 18 Jul 2013 00:39:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$CXTVLPVCEPmu3MB6aYLGwe7z39Qebj0CAgdDyFC77vbinuv0TnwOq"], ["updated_at", Thu, 18 Jul 2013 00:39:37 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, 18 Jul 2013 00:39:37 UTC +00:00], ["name", "Testy"], ["owner_id", 29], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Mqs6XENk9BeAJUfDmSa3' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 23 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 29], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["id", 23], ["auth_token", "Mqs6XENk9BeAJUfDmSa3"]] 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", 23], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["user_id", 29]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wQVbX8fixjEJsbqPVRpL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 29 [["account_id", 23], ["user_id", 29], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["id", 29], ["auth_token", "wQVbX8fixjEJsbqPVRpL"]]  (0.8ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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" != 23) LIMIT 1 Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 29 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", 23]] Completed 201 Created in 155ms (Views: 8.9ms | ActiveRecord: 48.6ms) 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  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$WXIEIADm08up6On12Ztyw.bg4uWppoWT8XNePFSqfo28YBZwNXKJe"], ["updated_at", Thu, 18 Jul 2013 00:39:37 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, 18 Jul 2013 00:39:37 UTC +00:00], ["name", "Testy"], ["owner_id", 30], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yo4Jptunh8pZ4FK4Z8cF' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 24 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 30], ["created_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:37 UTC +00:00], ["id", 24], ["auth_token", "yo4Jptunh8pZ4FK4Z8cF"]] Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:39: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} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 11ms (Views: 0.3ms | ActiveRecord: 0.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.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (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 75ms (Views: 72.8ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$qejZUAtZekV0bis6S2pV3uJWlOjvG8DZCa57/nKyDJEWhkXe09cZm"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 31], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xd5NUDS23P1oZJS2eT8L' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 25 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 31], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 25], ["auth_token", "xd5NUDS23P1oZJS2eT8L"]] 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", 25], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 31]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EETm9txdmJgPjPxBK1tr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 30 [["account_id", 25], ["user_id", 31], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 30], ["auth_token", "EETm9txdmJgPjPxBK1tr"]]  (0.2ms) CREATE SCHEMA "test1" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:39: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$vVSPLz0biD2MsI//udCRKe7XocctTQDo4Y9K9YkVgmtMxDVo3rNFa"], ["updated_at", Thu, 18 Jul 2013 00:39: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", 25], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 32]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'daeUCV55tUWEiYJWdFzs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 31 [["account_id", 25], ["user_id", 32], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 31], ["auth_token", "daeUCV55tUWEiYJWdFzs"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 32 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 32]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 32]] 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", 32]] Completed 201 Created in 22ms (Views: 6.9ms | 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 Started GET "/v1/users/32" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"32"} 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.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" = 32 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 25]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 32 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 32]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 32]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 32]] Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.2ms)  (4.6ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$QzvX16yob1tyDvo.V4ZAp.jzvWfH4VwI43ERnZCqu9hLHvoMl6nsS"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 33], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VQjYdvkfFsafXh1fYTh7' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 26 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 33], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 26], ["auth_token", "VQjYdvkfFsafXh1fYTh7"]] 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", 26], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 33]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qsqCsYUAcxnWbVppwYJL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 32 [["account_id", 26], ["user_id", 33], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 32], ["auth_token", "qsqCsYUAcxnWbVppwYJL"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) 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.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-17 19:39: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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Raca51HHbYo2fRty.TfI/ef/8277/WJkEZ.MiGdUngmwPcbp8QUAy"], ["updated_at", Thu, 18 Jul 2013 00:39: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", 26], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 34]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VSvvVXrqexSUouq8FFXj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 33 [["account_id", 26], ["user_id", 34], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 33], ["auth_token", "VSvvVXrqexSUouq8FFXj"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 34 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 34]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 34]] 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", 34]] Completed 201 Created in 22ms (Views: 6.1ms | 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 Started GET "/v1/users/34" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"34"} 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" = 34 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 26]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 34 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 34]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 34]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 34]] Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 34], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NsC5zFj5UHMaAttoFHSu' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 27 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 34], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 27], ["auth_token", "NsC5zFj5UHMaAttoFHSu"]] 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", 27], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 34]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LVdMMsseRx8fkx1f3qHu' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 34 [["account_id", 27], ["user_id", 34], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 34], ["auth_token", "LVdMMsseRx8fkx1f3qHu"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:39: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" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$cTu0Xo4.bT9lX.AHTAgLI.VwrhVLy6THmGzPsVyneePYOk086amE2"], ["updated_at", Thu, 18 Jul 2013 00:39: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", 27], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 35]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Jwpg2uy6KmxuKQcFYqyk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 35 [["account_id", 27], ["user_id", 35], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 35], ["auth_token", "Jwpg2uy6KmxuKQcFYqyk"]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 35 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 35]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 35]] 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", 35]] Completed 201 Created in 22ms (Views: 6.2ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/35" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"35"} 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" = 35 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 27]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 35 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 35]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 35]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 35]] Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.1ms) Started GET "/v1/users/34" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"34"} 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" = 34 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 26]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 34 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 34]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 34]] 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", 34]] Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 2.2ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 34 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", 26]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 34]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 34]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 34]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 33]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 33]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 33]] Completed 200 OK in 19ms (Views: 13.4ms | ActiveRecord: 3.1ms)  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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", 1001], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sxpq8iN6xPUfCLdyKi2b' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 36 [["account_id", 1001], ["user_id", 101], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 36], ["auth_token", "sxpq8iN6xPUfCLdyKi2b"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$PFbI24Eq95ASgRjNVsdPweakybuw8mvaOBeEIGyMPTgpVGlxjONZK"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 36], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SXQzs8cA99zD4JDvFaN2' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 28 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 36], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 28], ["auth_token", "SXQzs8cA99zD4JDvFaN2"]] 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", 28], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 36]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1pGzqckdDMbc1JbzBcLc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 37 [["account_id", 28], ["user_id", 36], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 37], ["auth_token", "1pGzqckdDMbc1JbzBcLc"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39:38 -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.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", 28]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 36 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 36]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 36]] 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", 36]] Completed 201 Created in 17ms (Views: 6.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 36]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39:38 -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" = 36 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$HogK2fm5Jn6JD0bO.LdEJuarWDnWBhcmQHx5rkluDpvHa70smZi06"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 37], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'fkNSVA4i3zpP7gA5y5bt' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 29 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 37], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 29], ["auth_token", "fkNSVA4i3zpP7gA5y5bt"]] 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", 29], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 37]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KTmJKM5bsWa2NoaxnxVS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 38 [["account_id", 29], ["user_id", 37], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 38], ["auth_token", "KTmJKM5bsWa2NoaxnxVS"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) 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, "updated_at" timestamp)  (0.7ms) 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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39: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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 29]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 37 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 37]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 37]] 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", 37]] Completed 201 Created in 17ms (Views: 6.4ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 37]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"37", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 37 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$CSpnoAwUCOfLweG218nVZuuo1j3zIrrTWZrT1RRw2A7mQwOUgyUN6"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 38], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jc2iWKYhD41mGzfyzbeC' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 30 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 38], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 30], ["auth_token", "jc2iWKYhD41mGzfyzbeC"]] 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", 30], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 38]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RpCXLCSKQjxf3YhxhtBo' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 39 [["account_id", 30], ["user_id", 38], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 39], ["auth_token", "RpCXLCSKQjxf3YhxhtBo"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (9.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:39:38 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$NYOTdQuvTE/ovAwiBdxKbeaokp1HX9CIQlfU01maZJ26P.k/zOy6q"], ["updated_at", Thu, 18 Jul 2013 00:39: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", 30], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 39]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ordQXnyS5zaqhaWh6vg8' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 40 [["account_id", 30], ["user_id", 39], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 40], ["auth_token", "ordQXnyS5zaqhaWh6vg8"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 39 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 39]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 39]] 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", 39]] Completed 201 Created in 20ms (Views: 5.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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/39" for 127.0.0.1 at 2013-07-17 19:39:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"39"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 39 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 30]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 39 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 39]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 39]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 39]] Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39:38 -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" = 39 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 39]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 39]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 39]] Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39:38 -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" = 39 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$13GFe.yJJT5KgH4fx8urLuEwS.zD7rnKKZtON1H33w2Z5AbfXRi8i"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] 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, 18 Jul 2013 00:39:38 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 40], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MsgqC7qnLF1EuHAksivb' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 31 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 40], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 31], ["auth_token", "MsgqC7qnLF1EuHAksivb"]] 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", 31], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["user_id", 40]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hmt5qX46Ccq5nqL2ZTxt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 41 [["account_id", 31], ["user_id", 40], ["created_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:38 UTC +00:00], ["id", 41], ["auth_token", "Hmt5qX46Ccq5nqL2ZTxt"]]  (0.2ms) CREATE SCHEMA "test7" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (5.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.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, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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, "updated_at" timestamp)  (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39: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 (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 31]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 40 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 40]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 40]] 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", 40]] Completed 201 Created in 17ms (Views: 6.1ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 40]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39:39 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"40", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 40 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:39:39 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$v4ieXHlCq7CwO73onkAjrOi.qtPR/PVKtByZ.PEI4IrVp6K/6Ry8K"], ["updated_at", Thu, 18 Jul 2013 00:39: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", 31], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 41]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bxCYNqwgXKhJ7Z3pckpr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 42 [["account_id", 31], ["user_id", 41], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 42], ["auth_token", "bxCYNqwgXKhJ7Z3pckpr"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 41 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Completed 201 Created in 20ms (Views: 5.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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/41" for 127.0.0.1 at 2013-07-17 19:39:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"41"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 41 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 31]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 41 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39:39 -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" = 41 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] Completed 201 Created in 7ms (Views: 4.9ms | 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  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.0ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$mx0EPufE4yZYAzIOofMDtONkNKJ5RdZ/6uTq.Sim/AD83FuXVq0Fy"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 42], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NvrZMfXx7qppRcznUk4b' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 32 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 42], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 32], ["auth_token", "NvrZMfXx7qppRcznUk4b"]] 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", 32], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 42]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'o8DBa85yyu5jjyLhuY4x' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 43 [["account_id", 32], ["user_id", 42], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 43], ["auth_token", "o8DBa85yyu5jjyLhuY4x"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (13.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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-17 19:39:39 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.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", 32]] 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  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$dmV90cYkSQa1QnJtz4AHDOmo.hFe.ayLjjab/pQkUWv1Csn5l5MDK"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] 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, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 43], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wFz4spu2xum77Xqwj7n1' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 33 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 43], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 33], ["auth_token", "wFz4spu2xum77Xqwj7n1"]] 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", 33], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 43]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mzsjQub3KbK3fHB6imqP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 44 [["account_id", 33], ["user_id", 43], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 44], ["auth_token", "mzsjQub3KbK3fHB6imqP"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.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, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.6ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.7ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$FiBL9CCNIjl/dBjjwGcQDeTS3ozf7W1m9dzwElGJnt/004lxBKEgK"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 44], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cyqaNYa3Fo4mQHmQMGby' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 34 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 44], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 34], ["auth_token", "cyqaNYa3Fo4mQHmQMGby"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 34], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 44]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't3oyQz84DKTKD9zFJ7xW' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 45 [["account_id", 34], ["user_id", 44], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 45], ["auth_token", "t3oyQz84DKTKD9zFJ7xW"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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-17 19:39:39 -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 [["account_id", 33]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.6ms) ROLLBACK  (1.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$i5/Mu9t33YZc9TZv2umrcejLZUhW/pCN763gScfuybEEL5uVc9aYK"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.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, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 45], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Azyc7xHQF2cPp2GqpeNx' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 35 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 45], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 35], ["auth_token", "Azyc7xHQF2cPp2GqpeNx"]] 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", 35], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 45]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LJb32WcSrXzzr4Bxtnhy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 46 [["account_id", 35], ["user_id", 45], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 46], ["auth_token", "LJb32WcSrXzzr4Bxtnhy"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 35]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$HtWBZhw4pHu..n7VltxBBeuoqUFLiKApRQBz6UgrqmcAsKGqrrTi."], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (1.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, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 46], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cCzgtQFHh7met8yYvpjA' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 36 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 46], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 36], ["auth_token", "cCzgtQFHh7met8yYvpjA"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 36], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 46]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GnzxNzjcfe1Dy7FTQaC1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 47 [["account_id", 36], ["user_id", 46], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 47], ["auth_token", "GnzxNzjcfe1Dy7FTQaC1"]]  (0.2ms) CREATE SCHEMA "test12" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (3.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (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, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:39:39 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.0ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$XXAgq1/A9KQeScfAk5j/8O3nzQBcguZZKhhMxeY28zQ5smzkHCKy2"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 47], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'F7SNZNp6pp77bcQsxjVt' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 37 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 47], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 37], ["auth_token", "F7SNZNp6pp77bcQsxjVt"]] SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 37], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 47]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XRKCQmvALz87VUsdaEXN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 48 [["account_id", 37], ["user_id", 47], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 48], ["auth_token", "XRKCQmvALz87VUsdaEXN"]]  (0.2ms) CREATE SCHEMA "test13" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (6.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 47]] Started GET "/v1?auth_token[]=XRKCQmvALz87VUsdaEXN" for 127.0.0.1 at 2013-07-17 19:39:39 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["XRKCQmvALz87VUsdaEXN"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('XRKCQmvALz87VUsdaEXN') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 37]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 47]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 47 LIMIT 1 Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 1.9ms)  (15.6ms) ROLLBACK  (0.8ms) BEGIN  (0.6ms) COMMIT  (0.6ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$qlBzUFnhezvAAbC9O2BAFOV9DtYrZ.Kqzyc3S6Ci7K2ICvyRnQWR."], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 48], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'emkpQxQobjszvukML2NK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 38 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 48], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 38], ["auth_token", "emkpQxQobjszvukML2NK"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 38], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 48]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uLXjdWzvB5eptdyozgAs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 49 [["account_id", 38], ["user_id", 48], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 49], ["auth_token", "uLXjdWzvB5eptdyozgAs"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (3.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$eWUFUEeSSmWviMgO3dEa2emXcBPpa5s5W/ZSdf8cXcLw1Lsqp7LpG"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 49], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'twr7ksbSrQzTf2FZx3wJ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 39 [["name", "Test Account #15"], ["subdomain", "test15"], ["owner_id", 49], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 39], ["auth_token", "twr7ksbSrQzTf2FZx3wJ"]] 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", 39], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["user_id", 49]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yJDpfiG3x5EgqKzH2xCB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 50 [["account_id", 39], ["user_id", 49], ["created_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:39 UTC +00:00], ["id", 50], ["auth_token", "yJDpfiG3x5EgqKzH2xCB"]]  (0.2ms) CREATE SCHEMA "test15" SQL (0.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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.4ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (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_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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) Cadenero::Member Load (4.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] Started GET "/v1?auth_token[]=yJDpfiG3x5EgqKzH2xCB" for 127.0.0.1 at 2013-07-17 19:39:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["yJDpfiG3x5EgqKzH2xCB"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('yJDpfiG3x5EgqKzH2xCB') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 38]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$04$zBIyz8KBaqINIHHYohLid.DDFuylF1WmzE8b3EzjkZaFdpsVBzqua"], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 50], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oxbzftpWppKrqhL2Y2jJ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 40 [["name", "Test Account #16"], ["subdomain", "test16"], ["owner_id", 50], ["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["id", 40], ["auth_token", "oxbzftpWppKrqhL2Y2jJ"]] 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", 40], ["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["user_id", 50]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HvLBJRBApZU1ceUeM92e' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 51 [["account_id", 40], ["user_id", 50], ["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["id", 51], ["auth_token", "HvLBJRBApZU1ceUeM92e"]]  (0.2ms) CREATE SCHEMA "test16" SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (21.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:39: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/users" for 127.0.0.1 at 2013-07-17 19:39:40 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$wqz2TWZ5okk70JNToY7As.HxFAhslLoTDB0ITmTzdJwN4LjIxsrDW"], ["updated_at", Thu, 18 Jul 2013 00:39: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", 40], ["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["user_id", 51]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4axypmgzGhroez2obfJP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 52 [["account_id", 40], ["user_id", 51], ["created_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:40 UTC +00:00], ["id", 52], ["auth_token", "4axypmgzGhroez2obfJP"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 51 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 51]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 51]] 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", 51]] Completed 201 Created in 21ms (Views: 5.9ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/51" for 127.0.0.1 at 2013-07-17 19:39:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"51"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.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" = 51 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 40]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 51 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 51]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 51]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 51]] Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 50]] Started GET "/v1?auth_token[]=HvLBJRBApZU1ceUeM92e" for 127.0.0.1 at 2013-07-17 19:39:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["HvLBJRBApZU1ceUeM92e"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('HvLBJRBApZU1ceUeM92e') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 40]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 50]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 50 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.6ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 51]] Started GET "/v1?auth_token[]=4axypmgzGhroez2obfJP" for 127.0.0.1 at 2013-07-17 19:39:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["4axypmgzGhroez2obfJP"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('4axypmgzGhroez2obfJP') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 40]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 51]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 51 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (3.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users" SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$04$zw7IoSBHAF0oo67KHTinzOudwX/JBZk9geLFBSzf8wRalmXFYvqZK"], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' 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, 18 Jul 2013 00:39:42 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 52], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '94J4jbzMEWpxaaDE6p3s' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 41 [["name", "Test Account #17"], ["subdomain", "test17"], ["owner_id", 52], ["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["id", 41], ["auth_token", "94J4jbzMEWpxaaDE6p3s"]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 41], ["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["user_id", 52]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zNMdtdiiZGUb1xahfTUj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 53 [["account_id", 41], ["user_id", 52], ["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["id", 53], ["auth_token", "zNMdtdiiZGUb1xahfTUj"]] SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$04$BnHmeU1ogvXCy.2oZK0WTuTZCT/hIPgcr2R0g3aJGtR19PQv6bFSW"], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$DLrFftcE2kmG5I0Mwna7suRpr9vt0qZ8g1iz/UN.biglAoO5mL6fK"], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["name", "Root"], ["owner_id", 54], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '64QPNijJpu7bbnKxBKjs' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 42 [["name", "Root"], ["subdomain", "www"], ["owner_id", 54], ["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["id", 42], ["auth_token", "64QPNijJpu7bbnKxBKjs"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 42], ["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["user_id", 54]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MRZpnA49DEQpzZ1EpPxy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 54 [["account_id", 42], ["user_id", 54], ["created_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:39:42 UTC +00:00], ["id", 54], ["auth_token", "MRZpnA49DEQpzZ1EpPxy"]]  (0.2ms) CREATE SCHEMA "www" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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, "updated_at" timestamp)   (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (2.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (7.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (8.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:43: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} Cadenero::V1::Account Exists (8.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (16.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$28tQOVBseBl.0G87d53aI.GaPSeHhoPl47gb6ccMl7wd8HmohRQ9S"], ["updated_at", Thu, 18 Jul 2013 00:43:32 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, 18 Jul 2013 00:43:32 UTC +00:00], ["name", "Testy"], ["owner_id", 55], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'X6JCCkqsMMhPci28F4y6' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 43 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 55], ["created_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["id", 43], ["auth_token", "X6JCCkqsMMhPci28F4y6"]] 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", 43], ["created_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["user_id", 55]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QpNjXBsWNoynm9Zgg3Vh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (14.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 55 [["account_id", 43], ["user_id", 55], ["created_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:32 UTC +00:00], ["id", 55], ["auth_token", "QpNjXBsWNoynm9Zgg3Vh"]]  (0.5ms) CREATE SCHEMA "test" SQL (5.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 43) LIMIT 1 Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 55 LIMIT 1 Cadenero::User Load (9.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", 43]] Completed 201 Created in 645ms (Views: 16.6ms | ActiveRecord: 241.6ms) Cadenero::V1::Account Load (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (3.7ms) 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, 18 Jul 2013 00:43:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$vq9g4XIMUfG1cLMfXQWWlOht38b.1CjnCDAsOA/6GOk81UH6Ko.i6"], ["updated_at", Thu, 18 Jul 2013 00:43: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", Thu, 18 Jul 2013 00:43:33 UTC +00:00], ["name", "Testy"], ["owner_id", 56], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:43:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZRdrEuqbMSxczy2YHsZs' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 44 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 56], ["created_at", Thu, 18 Jul 2013 00:43:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:33 UTC +00:00], ["id", 44], ["auth_token", "ZRdrEuqbMSxczy2YHsZs"]] Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 19:43: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} Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 29ms (Views: 0.4ms | ActiveRecord: 0.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.1ms) ROLLBACK  (1.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$c9D6.7beti72Rxzw/PjfqeivSEWEGRqA2XLNxCoTUxBm0M.gK3Fy2"], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 57], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '23gW9QNa3sbhy1QjzjPi' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 45 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 57], ["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["id", 45], ["auth_token", "23gW9QNa3sbhy1QjzjPi"]] 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", 45], ["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["user_id", 57]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P9edfG7uekrFq2FhBBdX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 56 [["account_id", 45], ["user_id", 57], ["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["id", 56], ["auth_token", "P9edfG7uekrFq2FhBBdX"]] SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$w6RKlkhNGHkyglm9uTL43uZwpYYkMVSVsaaRfTJvmsDiZciuWpQf."], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$1rhMBstsBabOpvAt80L1Yutlcl31rLRzg7Kr9GgNTGm1oQA3.j9XK"], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["name", "Root"], ["owner_id", 59], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'gDJpjCbwt3p2FGGPRFTg' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 46 [["name", "Root"], ["subdomain", "www"], ["owner_id", 59], ["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["id", 46], ["auth_token", "gDJpjCbwt3p2FGGPRFTg"]] 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", 46], ["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["user_id", 59]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DQsaiEynaNAk5SR3LgMa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 57 [["account_id", 46], ["user_id", 59], ["created_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:36 UTC +00:00], ["id", 57], ["auth_token", "DQsaiEynaNAk5SR3LgMa"]]  (0.2ms) CREATE SCHEMA "www" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.4ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (10.5ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) COMMIT  (0.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN 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, 18 Jul 2013 00:43:39 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$VM81BIwjUtRZZ3pkGf7ofOZtpfvKQEyZlABBpQJbOXKc14TwAnY0W"], ["updated_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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, 18 Jul 2013 00:43:39 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 60], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sGojNqf4WhAoL8TqFgXU' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 47 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 60], ["created_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00], ["id", 47], ["auth_token", "sGojNqf4WhAoL8TqFgXU"]] 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", 47], ["created_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00], ["user_id", 60]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZpABER71PojoH8YJL85y' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 58 [["account_id", 47], ["user_id", 60], ["created_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:39 UTC +00:00], ["id", 58], ["auth_token", "ZpABER71PojoH8YJL85y"]]  (0.2ms) CREATE SCHEMA "test2" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (16.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:43:40 -0500 Processing by 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Z8S1vMWc6RVKh84OsHydTurkmaVRN7ITGf1Kb5KtxaJprv.3SeuXi"], ["updated_at", Thu, 18 Jul 2013 00:43:40 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", 47], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 61]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sxpATxrxP61Wi6C5LBFA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 59 [["account_id", 47], ["user_id", 61], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 59], ["auth_token", "sxpATxrxP61Wi6C5LBFA"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] 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", 61]] Completed 201 Created in 72ms (Views: 52.7ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/61" for 127.0.0.1 at 2013-07-17 19:43:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"61"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 61 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 47]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] Completed 200 OK in 17ms (Views: 6.6ms | ActiveRecord: 2.3ms)  (6.9ms) ROLLBACK  (1.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$8IMY18Les/SG6RNLodwCXOcMVmbKl/3AbEf5xwqG.63cEmDkUSB4e"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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, 18 Jul 2013 00:43:40 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 62], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oCfxEFNm1AsChrokDLUc' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 48 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 62], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 48], ["auth_token", "oCfxEFNm1AsChrokDLUc"]] 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", 48], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 62]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gsywQjVVEEEV4Gps11Li' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 60 [["account_id", 48], ["user_id", 62], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 60], ["auth_token", "gsywQjVVEEEV4Gps11Li"]]  (0.3ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (21.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.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, "updated_at" timestamp)   (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"  (1.2ms) 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-17 19:43:40 -0500 Processing by 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' ORDER BY "public"."cadenero_accounts"."id" ASC 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, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$KlXDqtUq3/mAZ4NRvLbG5Op4JliFWT0p8foU5Fu2QOOhYtMj/iVXC"], ["updated_at", Thu, 18 Jul 2013 00:43:40 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", 48], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 63]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xcxmPxEenUyVYcfuYeWv' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 61 [["account_id", 48], ["user_id", 63], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 61], ["auth_token", "xcxmPxEenUyVYcfuYeWv"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 63 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 63]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 63]] 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", 63]] Completed 201 Created in 27ms (Views: 6.4ms | ActiveRecord: 7.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 Started GET "/v1/users/63" for 127.0.0.1 at 2013-07-17 19:43:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"63"} 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" = 63 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 48]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 63 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 63]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 63]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 63]] Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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, 18 Jul 2013 00:43:40 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 63], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xNsp2gJ4xwBb3GLpWCou' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 49 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 63], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 49], ["auth_token", "xNsp2gJ4xwBb3GLpWCou"]] 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", 49], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 63]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8YqzQQHcchwQkoBBvPVE' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 62 [["account_id", 49], ["user_id", 63], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 62], ["auth_token", "8YqzQQHcchwQkoBBvPVE"]]  (0.2ms) CREATE SCHEMA "test4" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.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 ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:43:40 -0500 Processing by 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" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$POVb3nF297KpXNchuszvuOvMBvwPjlrtTp0PEN0Dx9T5DBynd6kCa"], ["updated_at", Thu, 18 Jul 2013 00:43:40 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", 49], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 64]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cwJfBb2L2xEphdyV3Wm6' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 63 [["account_id", 49], ["user_id", 64], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 63], ["auth_token", "cwJfBb2L2xEphdyV3Wm6"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 64 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 64]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 64]] 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", 64]] Completed 201 Created in 22ms (Views: 6.3ms | 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/64" for 127.0.0.1 at 2013-07-17 19:43:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"64"} 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.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" = 64 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 49]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 64 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 64]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 64]] 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", 64]] Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 2.2ms) Started GET "/v1/users/63" for 127.0.0.1 at 2013-07-17 19:43:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"63"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 63 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 48]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 63 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 63]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 63]] 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", 63]] Completed 200 OK in 16ms (Views: 8.9ms | ActiveRecord: 3.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 19:43:40 -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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 63 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", 48]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 63]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 63]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 63]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 62]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 62]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 62]] Completed 200 OK in 22ms (Views: 16.7ms | ActiveRecord: 3.1ms)  (8.1ms) ROLLBACK  (0.7ms) BEGIN  (48.6ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} 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 [["account_id", 1001]] Completed 201 Created in 6ms (Views: 3.2ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (1.4ms) COMMIT  (0.5ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.5ms) 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.6ms) BEGIN  (0.1ms) COMMIT  (0.7ms) 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.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$UfRlnOGu1VPhx6yktW.y.OkEiMMY3A6qO3CGPV8JChafc3zM/YZDS"], ["updated_at", Thu, 18 Jul 2013 00:43:40 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, 18 Jul 2013 00:43:40 UTC +00:00], ["name", "Test Account"], ["owner_id", 65], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6skbgQ1PqpGiYnzwocpE' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 50 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 65], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 50], ["auth_token", "6skbgQ1PqpGiYnzwocpE"]] 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", 50], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 65]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SKznZ2NdtrBz3YCjQQCo' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 64 [["account_id", 50], ["user_id", 65], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 64], ["auth_token", "SKznZ2NdtrBz3YCjQQCo"]]  (0.6ms) CREATE SCHEMA "test" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::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", 50]]  (5.1ms) ROLLBACK  (1.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$2AImPOQ8x3YP4T.ZthLQfesOit.ivr75uu9eoEWJzm6b2aVfQiHOa"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Exists (0.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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 66], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'YPr465gaTcvMH9SEHy9B' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 51 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 66], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 51], ["auth_token", "YPr465gaTcvMH9SEHy9B"]] 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", 51], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 66]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GSUpwjNAaXdmcA4nrbVx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 65 [["account_id", 51], ["user_id", 66], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 65], ["auth_token", "GSUpwjNAaXdmcA4nrbVx"]]  (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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (14.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) 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, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.1ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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-17 19:43:40 -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.9ms) 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", 51]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 66 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 66]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 66]] 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", 66]] Completed 201 Created in 21ms (Views: 6.7ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 66]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43:40 -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" = 66 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (3.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN 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, 18 Jul 2013 00:43:40 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$ygo9eD95EpY.cQVNYihHW..FYVBpLt7o1B5QYMdJzTAR6FT4eFP66"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 00:43:40 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 67], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MBp46yoYSycXW2XLTRzH' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 52 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 67], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 52], ["auth_token", "MBp46yoYSycXW2XLTRzH"]] 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", 52], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["user_id", 67]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UH4r1fXhKjaDkzJPRWmo' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 66 [["account_id", 52], ["user_id", 67], ["created_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:40 UTC +00:00], ["id", 66], ["auth_token", "UH4r1fXhKjaDkzJPRWmo"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (9.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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", 52]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 67 LIMIT 1 Cadenero::Member Load (46.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 67]] Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 67]] 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", 67]] Completed 201 Created in 85ms (Views: 22.6ms | ActiveRecord: 56.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 67]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"67", "default"=>:json} Cadenero::User Load (20.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 67 LIMIT 1 Completed 200 OK in 23ms (Views: 0.2ms | ActiveRecord: 20.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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)  (20.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$4fLsN2PGUkzAbte6JHhGJeA7lYrZXES/.f4u08v/HNm/MBVMiU5vu"], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 68], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xK2WDnfDzupkUQkEcnrX' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 53 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 68], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["id", 53], ["auth_token", "xK2WDnfDzupkUQkEcnrX"]] 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", 53], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["user_id", 68]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uknMWyMj8q7nPiHGCzPM' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 67 [["account_id", 53], ["user_id", 68], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["id", 67], ["auth_token", "uknMWyMj8q7nPiHGCzPM"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.1ms) SELECT version FROM "schema_migrations"  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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-17 19:43: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" = 'test7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$QE2OGt2DDSXorKtkfU9B.e3q6kQUM085AuYNdbp19ZrqaybFzGebK"], ["updated_at", Thu, 18 Jul 2013 00:43:41 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", 53], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["user_id", 69]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XtTmX2ca3qgBdRJN4eLS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 68 [["account_id", 53], ["user_id", 69], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["id", 68], ["auth_token", "XtTmX2ca3qgBdRJN4eLS"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 69 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 69]] Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 69]] 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", 69]] Completed 201 Created in 30ms (Views: 6.8ms | ActiveRecord: 10.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 Started GET "/v1/users/69" for 127.0.0.1 at 2013-07-17 19:43:41 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"69"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 69 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 53]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 69 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 69]] Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 69]] 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", 69]] Completed 200 OK in 15ms (Views: 6.3ms | ActiveRecord: 5.3ms) Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43: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 (5.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 69 LIMIT 1 Cadenero::Member Load (12.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 69]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 69]] 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", 69]] Completed 201 Created in 74ms (Views: 34.6ms | ActiveRecord: 19.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" for 127.0.0.1 at 2013-07-17 19:43:41 -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" = 69 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$XuQLKD/eIltW1lAe2nVfcOr9Z7Wn8DLniEGozMNf0OljV6krF9vL."], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.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, 18 Jul 2013 00:43:41 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 70], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ji6j3yumpsCmDNYDTwYo' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 54 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 70], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["id", 54], ["auth_token", "ji6j3yumpsCmDNYDTwYo"]] 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", 54], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["user_id", 70]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zojUxast15qqMaF2cCJG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 69 [["account_id", 54], ["user_id", 70], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["id", 69], ["auth_token", "zojUxast15qqMaF2cCJG"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (15.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (6.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (18.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (16.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (10.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43:41 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') 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", 54]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 70]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 70]] 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", 70]] Completed 201 Created in 53ms (Views: 7.0ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 70]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"70", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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/users" for 127.0.0.1 at 2013-07-17 19:43: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$/PvChF6ecUVhkKSTjN9xOe/.ZdGLM4TdWtWSlR9hR2vAbC1kjXeSW"], ["updated_at", Thu, 18 Jul 2013 00:43:41 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", 54], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["user_id", 71]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7hPVTciTGkQcvBqpZaxV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 70 [["account_id", 54], ["user_id", 71], ["created_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:41 UTC +00:00], ["id", 70], ["auth_token", "7hPVTciTGkQcvBqpZaxV"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 71]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 71]] 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", 71]] Completed 201 Created in 25ms (Views: 8.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 Started GET "/v1/users/71" for 127.0.0.1 at 2013-07-17 19:43:42 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"71"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 71 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 54]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 71]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 71]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 71]] Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43:42 -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" = 71 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 71]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 71]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 71]] Completed 201 Created in 8ms (Views: 5.4ms | 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  (4.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$H13mCh.L0b0dPkJKU2i1b.27lJYgXz64hMTO5RqppApIxmv4Soxe."], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 72], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uv5fmR2Nj5RxDLtsPzWu' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 55 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 72], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 55], ["auth_token", "uv5fmR2Nj5RxDLtsPzWu"]] 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", 55], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["user_id", 72]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uxefqSzMwzbppiHfEb8s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 71 [["account_id", 55], ["user_id", 72], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 71], ["auth_token", "uxefqSzMwzbppiHfEb8s"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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-17 19:43: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 (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (14.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", 55]] Completed 422 Unprocessable Entity in 22ms (Views: 0.3ms | ActiveRecord: 17.5ms) Cadenero::V1::Account Load (9.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  (5.0ms) ROLLBACK  (9.5ms) BEGIN  (10.1ms) COMMIT  (10.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$ibDW4kN5Uj19Hrxj3Jl5o.fJ7YQzWNKYuh7KVWqMMK28Ho28OW4Pq"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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, 18 Jul 2013 00:43:42 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 73], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wuuF4FmPcwHrJ8EhHTUF' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (8.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 56 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 73], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 56], ["auth_token", "wuuF4FmPcwHrJ8EhHTUF"]] 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", 56], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["user_id", 73]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'o7W79evtVdh5VSdaktxx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (8.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 72 [["account_id", 56], ["user_id", 73], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 72], ["auth_token", "o7W79evtVdh5VSdaktxx"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (10.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (7.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (13.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (6.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (6.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$HWin8W7b4uUhfNs7DiQrYuNKKheGU481iHZNNYi9B3lylrR.k0LOC"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Exists (6.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (14.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, 18 Jul 2013 00:43:42 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 74], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Load (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rs1xhN6fTxRfuV44t8E1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (10.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 57 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 74], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 57], ["auth_token", "rs1xhN6fTxRfuV44t8E1"]] 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", 57], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["user_id", 74]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WHSPzy3mN2bQDrqsEAPs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 73 [["account_id", 57], ["user_id", 74], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 73], ["auth_token", "WHSPzy3mN2bQDrqsEAPs"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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-17 19:43:42 -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.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" = 'user11@example.com' LIMIT 1 [["account_id", 56]] 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  (4.0ms) ROLLBACK  (1.6ms) BEGIN  (3.1ms) COMMIT  (2.3ms) BEGIN 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, 18 Jul 2013 00:43:42 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$/zKoXLcO4UC6yNQIht4UlOmBB0IYzq2Pw4P/XkAEuGjPCmX.Z5GUK"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' 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, 18 Jul 2013 00:43:42 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 75], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ziQnoiaMjmxhRrqrEtnK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 58 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 75], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 58], ["auth_token", "ziQnoiaMjmxhRrqrEtnK"]] 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", 58], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["user_id", 75]] Cadenero::Member Load (7.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'so4e1SzUsLb4pS1uxhzP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (34.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 74 [["account_id", 58], ["user_id", 75], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 74], ["auth_token", "so4e1SzUsLb4pS1uxhzP"]]  (0.9ms) CREATE SCHEMA "test12" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (7.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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-17 19:43: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 ('test12') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 58]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) 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  (3.4ms) ROLLBACK  (2.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$iHS.G8AVp6/qYW7xm7yq2e.PbU5wgWmHNycTr4EbhlAeQhV7LxvJW"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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, 18 Jul 2013 00:43:42 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 76], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wNRxzn7RQ58kKmobd7Wo' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 59 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 76], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 59], ["auth_token", "wNRxzn7RQ58kKmobd7Wo"]] 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", 59], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["user_id", 76]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x9GSxVFK2tqBZ2qTzu2V' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (23.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 75 [["account_id", 59], ["user_id", 76], ["created_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:42 UTC +00:00], ["id", 75], ["auth_token", "x9GSxVFK2tqBZ2qTzu2V"]]  (5.9ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (19.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (10.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.5ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (14.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.4ms) 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, "updated_at" timestamp)   (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.6ms) SELECT version FROM "schema_migrations"  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 19:43:43 -0500 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  (22.7ms) ROLLBACK  (0.2ms) BEGIN  (8.2ms) COMMIT  (0.1ms) BEGIN SQL (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$BLNQhzO6aBF5YJuuzOsQJu8gYgA2M4a2AExOX80.uiS9nVnZATMim"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Exists (5.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (6.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, 18 Jul 2013 00:43:43 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 77], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'q7TJVvnzdMcmGhGN9Gyw' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 60 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 77], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 60], ["auth_token", "q7TJVvnzdMcmGhGN9Gyw"]] 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", 60], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["user_id", 77]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mvuEsSANGboZtiDaoyg9' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 76 [["account_id", 60], ["user_id", 77], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 76], ["auth_token", "mvuEsSANGboZtiDaoyg9"]]  (6.0ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 77]] Started GET "/v1?auth_token[]=mvuEsSANGboZtiDaoyg9" for 127.0.0.1 at 2013-07-17 19:43:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["mvuEsSANGboZtiDaoyg9"], "default"=>:json} Cadenero::V1::Account Load (6.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('mvuEsSANGboZtiDaoyg9') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 60]] Cadenero::User Load (5.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 77]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 77 LIMIT 1 Completed 200 OK in 27ms (Views: 0.2ms | ActiveRecord: 19.1ms)  (3.2ms) ROLLBACK  (0.5ms) BEGIN  (2.0ms) COMMIT  (0.9ms) BEGIN SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$04$L1I8tRS0VkVvWl97M9OQ7eI7SS/DPjaAhjzUqg54FXnZQ8M7A8KRC"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Exists (14.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' 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, 18 Jul 2013 00:43:43 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 78], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dpyM85rMSCqprczQ7P7z' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (22.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 61 [["name", "Test Account #15"], ["subdomain", "test15"], ["owner_id", 78], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 61], ["auth_token", "dpyM85rMSCqprczQ7P7z"]] 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", 61], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["user_id", 78]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aHihueq3xa1t3YPQMVLt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 77 [["account_id", 61], ["user_id", 78], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 77], ["auth_token", "aHihueq3xa1t3YPQMVLt"]]  (0.2ms) CREATE SCHEMA "test15" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.1ms) 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') SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$04$EEvDxHr/JoXs35Nlz9UekuoNY.6UDZb25TlBP8VzNZ4NS4KPa0/5C"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' 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, 18 Jul 2013 00:43:43 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 79], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xk2qudL6mpgedzChVK22' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 62 [["name", "Test Account #16"], ["subdomain", "test16"], ["owner_id", 79], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 62], ["auth_token", "xk2qudL6mpgedzChVK22"]] 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", 62], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["user_id", 79]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ycTCyM7tz4upAZEJkqJ7' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 78 [["account_id", 62], ["user_id", 79], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 78], ["auth_token", "ycTCyM7tz4upAZEJkqJ7"]]  (0.2ms) CREATE SCHEMA "test16" SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (8.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (14.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (10.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (10.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 79]] Started GET "/v1?auth_token[]=ycTCyM7tz4upAZEJkqJ7" for 127.0.0.1 at 2013-07-17 19:43:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ycTCyM7tz4upAZEJkqJ7"], "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('ycTCyM7tz4upAZEJkqJ7') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 61]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (8.5ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 00:43:43 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$04$/0aDI9ADq3sHUh3wGs.tCedj3CwbEzv1OUBOZoIreFBRwF9Q9tzgK"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Exists (4.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' 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, 18 Jul 2013 00:43:43 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 80], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UtZKcWCuufVs3nEkksAp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (7.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 63 [["name", "Test Account #17"], ["subdomain", "test17"], ["owner_id", 80], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 63], ["auth_token", "UtZKcWCuufVs3nEkksAp"]] 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", 63], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["user_id", 80]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FZRzvpMkrs5YWg81syzg' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 79 [["account_id", 63], ["user_id", 80], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 79], ["auth_token", "FZRzvpMkrs5YWg81syzg"]]  (0.2ms) CREATE SCHEMA "test17" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (9.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (4.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) 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, "updated_at" timestamp)  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 19:43: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.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 19:43: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 (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 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", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$KA4eJPxH5mTaowbXrkXY.OJJUtlzTmRXmuV85FEG5NsEuxBZmc7aK"], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00]] SQL (11.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 63], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["user_id", 81]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e7KGpHxxhno4Cdk1i9hu' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (7.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 80 [["account_id", 63], ["user_id", 81], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 80], ["auth_token", "e7KGpHxxhno4Cdk1i9hu"]] Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 81 LIMIT 1 Cadenero::Member Load (5.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 81]] Cadenero::V1::Account Load (8.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 81]] 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", 81]] Completed 201 Created in 74ms (Views: 8.4ms | ActiveRecord: 52.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/81" for 127.0.0.1 at 2013-07-17 19:43:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"81"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.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" = 81 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 63]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 81 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 81]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 81]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 81]] Completed 200 OK in 13ms (Views: 6.3ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 80]] Started GET "/v1?auth_token[]=FZRzvpMkrs5YWg81syzg" for 127.0.0.1 at 2013-07-17 19:43:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FZRzvpMkrs5YWg81syzg"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('FZRzvpMkrs5YWg81syzg') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 63]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 80]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 80 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms) Cadenero::Member Load (7.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 81]] Started GET "/v1?auth_token[]=e7KGpHxxhno4Cdk1i9hu" for 127.0.0.1 at 2013-07-17 19:43:43 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["e7KGpHxxhno4Cdk1i9hu"], "default"=>:json} Cadenero::V1::Account Load (8.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (5.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('e7KGpHxxhno4Cdk1i9hu') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 63]] Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 81]] Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 81 LIMIT 1 Completed 200 OK in 23ms (Views: 0.2ms | ActiveRecord: 16.9ms)  (3.9ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VThMbQHKEwUqoFUnU9v1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 81 [["account_id", 1001], ["user_id", 101], ["created_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 00:43:43 UTC +00:00], ["id", 81], ["auth_token", "VThMbQHKEwUqoFUnU9v1"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (4.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (13.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (18.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 43ms (Views: 6.9ms | ActiveRecord: 35.9ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (15.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (17.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 198ms (Views: 160.8ms | ActiveRecord: 36.5ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (55.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$IQmnJbw14hvo6QIMtwjMkuaBotT5MENKUH/OHDtYeAfByOkLqT0FC"], ["updated_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00]] Cadenero::V1::Account Exists (1.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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 82], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7BUrpYtEsNrp45EnDnpj' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 64 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 82], ["created_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["id", 64], ["auth_token", "7BUrpYtEsNrp45EnDnpj"]] 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", 64], ["created_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["user_id", 82]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XjJKcXphsddUEYUxtTEh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 82 [["account_id", 64], ["user_id", 82], ["created_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["id", 82], ["auth_token", "XjJKcXphsddUEYUxtTEh"]]  (0.4ms) CREATE SCHEMA "test1" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (23.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (2.9ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53: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.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" = 'user1@example.com' LIMIT 1 [["account_id", 64]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 82 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 82]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 82]] 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", 82]] Completed 201 Created in 114ms (Views: 38.6ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 82]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"82", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 82 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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)  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$YOXsxJoiI12QGolVZnAH.OrQvPIcBVslXELHmpCBhRFIpMVhr9zWG"], ["updated_at", Thu, 18 Jul 2013 01:53:32 UTC +00:00]] 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", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 83], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XSiZLBbvwQiK4oq1ypzk' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 65 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 83], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 65], ["auth_token", "XSiZLBbvwQiK4oq1ypzk"]] 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", 65], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 83]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zJwWBiEDAVbc4yVdvskY' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 83 [["account_id", 65], ["user_id", 83], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 83], ["auth_token", "zJwWBiEDAVbc4yVdvskY"]]  (0.4ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (17.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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-17 20:53: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 (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" = 'user2@example.com' LIMIT 1 [["account_id", 65]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 83 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 83]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 83]] 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", 83]] Completed 201 Created in 19ms (Views: 7.2ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 83]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53:33 -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" = 83 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$TlbfLOV5Euahic06vYjYo.pXQRDccySB7.adNmIEZCVdzgD9BmCfu"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 84], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '91ecdWgR7aNYXVjNeWPD' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 66 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 84], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 66], ["auth_token", "91ecdWgR7aNYXVjNeWPD"]] 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", 66], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 84]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GquLQ7q26TwMC9Amnngz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 84 [["account_id", 66], ["user_id", 84], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 84], ["auth_token", "GquLQ7q26TwMC9Amnngz"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) 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, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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/users" for 127.0.0.1 at 2013-07-17 20:53: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" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$2V2Lo2IWtdIVRiEsIzzjB.Hwg0vAXJmysaz1Lk/EjhhvAvMN5kgNm"], ["updated_at", Thu, 18 Jul 2013 01:53:33 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", 66], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 85]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zuPVzYSby4oUvN3TL5nU' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 85 [["account_id", 66], ["user_id", 85], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 85], ["auth_token", "zuPVzYSby4oUvN3TL5nU"]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 85]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 85]] 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", 85]] Completed 201 Created in 25ms (Views: 6.4ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/85" for 127.0.0.1 at 2013-07-17 20:53:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"85"} 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.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" = 85 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 66]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 85]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 85]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 85]] Completed 200 OK in 14ms (Views: 6.5ms | ActiveRecord: 2.5ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53: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.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 85]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 85]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 85]] Completed 201 Created in 9ms (Views: 5.5ms | ActiveRecord: 1.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" for 127.0.0.1 at 2013-07-17 20:53: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" = 85 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Z70V.kQl0qFDI6cs8qefh.HYs0cj7b3bBiZLn/8V4viZppfYgOnca"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] 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", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 86], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '47exC1R2tQqF9zGsX5Pb' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 67 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 86], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 67], ["auth_token", "47exC1R2tQqF9zGsX5Pb"]] 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", 67], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 86]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JTUVGbGEzfsLzH1bCuxR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 86 [["account_id", 67], ["user_id", 86], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 86], ["auth_token", "JTUVGbGEzfsLzH1bCuxR"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) 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, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 67]] Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 86 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 86]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 86]] 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", 86]] Completed 201 Created in 18ms (Views: 6.4ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 86]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"86", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 86 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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/users" for 127.0.0.1 at 2013-07-17 20:53: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" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$Khf3LWRfzP/WK3f0UxK3SuzARSZSJwHzyKHVWWW5wVXroPs9jAdpe"], ["updated_at", Thu, 18 Jul 2013 01:53: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", 67], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 87]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'As9svWkyizcv3DNMz9Tk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 87 [["account_id", 67], ["user_id", 87], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 87], ["auth_token", "As9svWkyizcv3DNMz9Tk"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 87]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 87]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 87]] Completed 201 Created in 23ms (Views: 6.3ms | ActiveRecord: 4.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/87" for 127.0.0.1 at 2013-07-17 20:53:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"87"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 87 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 67]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 87]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 87]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 87]] Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 2.3ms) Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 87]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 87]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 87]] Completed 201 Created in 9ms (Views: 5.8ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Ae0PaAq8N8exAtd8E67SNukGw6Q70mJVxvQMCZbotIJ3E1HRMlTla"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] 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, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 88], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5nKFqfnYtdyz3T8pya3D' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 68 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 88], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 68], ["auth_token", "5nKFqfnYtdyz3T8pya3D"]] 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", 68], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 88]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cyU5k2yCCBsSCfV2QqQy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 88 [["account_id", 68], ["user_id", 88], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 88], ["auth_token", "cyU5k2yCCBsSCfV2QqQy"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.7ms) 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, "updated_at" timestamp)  (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.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') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$ZS9opNlgU31eyHFl/Uo9ROcAuL29aJasJzbt3CjqRe.zUgIXGVJdG"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] 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, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 89], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LdxNRas1Unzq5nK1zesX' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 69 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 89], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 69], ["auth_token", "LdxNRas1Unzq5nK1zesX"]] 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", 69], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 89]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SowrxhRrZAqhkxMcVYcy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 89 [["account_id", 69], ["user_id", 89], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 89], ["auth_token", "SowrxhRrZAqhkxMcVYcy"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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-17 20:53: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 68]] Completed 422 Unprocessable Entity in 9ms (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  (2.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$kYCAVGo6aJTS09ceqijR6OOKnJBGclk.SZn4HgBjrxztP29YaLj8."], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 90], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LdquCPVsfEFJDp4me3PS' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 70 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 90], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 70], ["auth_token", "LdquCPVsfEFJDp4me3PS"]] 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", 70], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 90]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M43dBeqJHx37QpHqXnig' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 90 [["account_id", 70], ["user_id", 90], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 90], ["auth_token", "M43dBeqJHx37QpHqXnig"]]  (0.3ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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 59ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53: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.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", 70]] 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  (2.6ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$CCYuVz8lkz5H6i4gEGYaeuVcQ2VnO3jKBrNchBwBYFhvdWtBJoUhm"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 91], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '65z3xA1QBimfF2QYp5bA' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 71 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 91], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 71], ["auth_token", "65z3xA1QBimfF2QYp5bA"]] 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", 71], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 91]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MrG2WuevzascUWbxLSV5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 91 [["account_id", 71], ["user_id", 91], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 91], ["auth_token", "MrG2WuevzascUWbxLSV5"]]  (0.2ms) CREATE SCHEMA "test8" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (6.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (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_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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-17 20:53: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 (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 [["account_id", 71]] 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  (3.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$PnhHFPFk1cEM1PAPe90P4OWXjScKp/K5aRCWrLzPF2s8UARezPW8K"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (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, 18 Jul 2013 01:53:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 92], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ydQpCEe7D2CFgCXXGgau' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 72 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 92], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 72], ["auth_token", "ydQpCEe7D2CFgCXXGgau"]] 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", 72], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["user_id", 92]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Jdg3nZcauM35kJLw7JP5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 92 [["account_id", 72], ["user_id", 92], ["created_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:33 UTC +00:00], ["id", 92], ["auth_token", "Jdg3nZcauM35kJLw7JP5"]]  (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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$mVY7Hg1s.VvyRYou2Rkz2u7gcRoQwx8QDgMOuU68ZzozD1zS4Ua4m"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 93], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2snqE7a2EPB58eVqxpwU' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 73 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 93], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 73], ["auth_token", "2snqE7a2EPB58eVqxpwU"]] 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", 73], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["user_id", 93]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '81SPpZyLgAqZc3PxhEST' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 93 [["account_id", 73], ["user_id", 93], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 93], ["auth_token", "81SPpZyLgAqZc3PxhEST"]]  (0.2ms) CREATE SCHEMA "test10" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$vhy0DbnsSdyYr3B4VclDKuuIjRjGqJkI7lQPlwEYc35Um7W29Kr0S"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 94], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jsFysXUFEma86T3K63pN' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 74 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 94], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 74], ["auth_token", "jsFysXUFEma86T3K63pN"]] 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", 74], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["user_id", 94]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tQgemcgdMv8fxV5X4NWo' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 94 [["account_id", 74], ["user_id", 94], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 94], ["auth_token", "tQgemcgdMv8fxV5X4NWo"]]  (0.2ms) CREATE SCHEMA "test11" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (16.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) Cadenero::Member Load (16.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 94]] Started GET "/v1?auth_token[]=tQgemcgdMv8fxV5X4NWo" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["tQgemcgdMv8fxV5X4NWo"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('tQgemcgdMv8fxV5X4NWo') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 73]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (15.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$LeVgRgZysAZPn7oTW3LzXOLRHAhtnEhj/ZRSGv.OTaf2SKLXtRjTO"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 95], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BQpkrvoCtCHNrUnetvUn' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 75 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 95], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 75], ["auth_token", "BQpkrvoCtCHNrUnetvUn"]] 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", 75], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["user_id", 95]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'unQeWMMxzy3zzfJq9R7o' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 95 [["account_id", 75], ["user_id", 95], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 95], ["auth_token", "unQeWMMxzy3zzfJq9R7o"]]  (0.2ms) CREATE SCHEMA "test12" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (14.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] Started GET "/v1?auth_token[]=unQeWMMxzy3zzfJq9R7o" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["unQeWMMxzy3zzfJq9R7o"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('unQeWMMxzy3zzfJq9R7o') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 75]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 95]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.8ms)  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$A6N54vTLgZVuscsuMFjCOu8iEkiYPM5qDoJm893KifV9.lk9yEMoq"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 96], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'm1BwyCmZWieo5psH6z7K' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 76 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 96], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 76], ["auth_token", "m1BwyCmZWieo5psH6z7K"]] 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", 76], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["user_id", 96]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YvmYpWHkRAN1YzF2XLpQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 96 [["account_id", 76], ["user_id", 96], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 96], ["auth_token", "YvmYpWHkRAN1YzF2XLpQ"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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/users" for 127.0.0.1 at 2013-07-17 20:53: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$p6.oNwjJ4aW/V.okeO23MeAotbpgtMXJe7M/g0vTNy7S3.fGEeryK"], ["updated_at", Thu, 18 Jul 2013 01:53: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", 76], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["user_id", 97]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ueyxpw1PKPVAZAFWx2XH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 97 [["account_id", 76], ["user_id", 97], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 97], ["auth_token", "ueyxpw1PKPVAZAFWx2XH"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 97 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 97]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 97]] 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", 97]] Completed 201 Created in 21ms (Views: 5.8ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/97" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"97"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.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" = 97 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 76]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 97 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 97]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 97]] 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", 97]] Completed 200 OK in 16ms (Views: 9.8ms | ActiveRecord: 2.9ms) Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] Started GET "/v1?auth_token[]=YvmYpWHkRAN1YzF2XLpQ" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["YvmYpWHkRAN1YzF2XLpQ"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('YvmYpWHkRAN1YzF2XLpQ') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 76]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 96]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.6ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 97]] Started GET "/v1?auth_token[]=ueyxpw1PKPVAZAFWx2XH" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ueyxpw1PKPVAZAFWx2XH"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('ueyxpw1PKPVAZAFWx2XH') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 76]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 97]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 97 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.7ms)  (5.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$WAOFgbKTOmlGUcGgJ0.EpOHt7cH0pqWZh3nLMNYjmV0OlymSDyPfy"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 98], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'p2gQC6eQ8epMVtNL6HtC' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 77 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 98], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 77], ["auth_token", "p2gQC6eQ8epMVtNL6HtC"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 77], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["user_id", 98]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B2eMmxxBG6yg5uzqyxp9' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 98 [["account_id", 77], ["user_id", 98], ["created_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:53:34 UTC +00:00], ["id", 98], ["auth_token", "B2eMmxxBG6yg5uzqyxp9"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp)   (1.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 GET "/v1" for 127.0.0.1 at 2013-07-17 20:53: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) Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] Started GET "/v1?auth_token[]=B2eMmxxBG6yg5uzqyxp9" for 127.0.0.1 at 2013-07-17 20:53:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["B2eMmxxBG6yg5uzqyxp9"], "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('B2eMmxxBG6yg5uzqyxp9') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 77]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 98]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 98 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.2ms) Started GET "/v1v1/users/98" for 127.0.0.1 at 2013-07-17 20:53:34 -0500  (2.9ms) ROLLBACK  (1.6ms) BEGIN  (4.0ms) COMMIT  (0.1ms) BEGIN SQL (80.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$icdvi1i9za4oa0IKylzSeu6lPer2GFoCO11kmUQiczMYy2zFXtJoK"], ["updated_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00]] Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (3.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, 18 Jul 2013 01:54:11 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 99], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9tgsB1mt3uqoX5pcQL5G' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 78 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 99], ["created_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["id", 78], ["auth_token", "9tgsB1mt3uqoX5pcQL5G"]] 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", 78], ["created_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["user_id", 99]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hkHucyEvn9w9qhXrhrzx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 99 [["account_id", 78], ["user_id", 99], ["created_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:11 UTC +00:00], ["id", 99], ["auth_token", "hkHucyEvn9w9qhXrhrzx"]]  (0.3ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (6.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 GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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 118ms (Views: 0.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 99]] Started GET "/v1?auth_token[]=hkHucyEvn9w9qhXrhrzx" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hkHucyEvn9w9qhXrhrzx"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('hkHucyEvn9w9qhXrhrzx') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 78]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 99]] Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 99 LIMIT 1 Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 4.2ms) Started GET "/v1/users/99" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"99"} 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 (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" = 99 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 78]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 99 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 99]] Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 99]] Cadenero::V1::Account Load (13.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", 99]] Completed 200 OK in 131ms (Views: 94.1ms | ActiveRecord: 26.6ms)  (6.6ms) ROLLBACK  (0.4ms) BEGIN  (3.0ms) COMMIT  (0.1ms) BEGIN SQL (7.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$HmCn4tHpQy61gFVVN5.7MuGVU5ME2E4k8kD98c2CBoegcp4jv3po2"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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, 18 Jul 2013 01:54:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 100], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EpA25bymVgNUyrXM8f8Y' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 79 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 100], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 79], ["auth_token", "EpA25bymVgNUyrXM8f8Y"]] SQL (35.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 79], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["user_id", 100]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's5uqYJR96RgJCHj4nL2r' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 100 [["account_id", 79], ["user_id", 100], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 100], ["auth_token", "s5uqYJR96RgJCHj4nL2r"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.9ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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-17 20:54: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 (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (13.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$qlMQEgsh0fAB3J6BX0b3z..9Yq6P5i8q0yCxpsql.E16vPfgW3yhW"], ["updated_at", Thu, 18 Jul 2013 01:54: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", 79], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 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" = 'BRpEwfPirMpt7qfp2s9G' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 101 [["account_id", 79], ["user_id", 101], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 101], ["auth_token", "BRpEwfPirMpt7qfp2s9G"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 201 Created in 38ms (Views: 6.1ms | ActiveRecord: 17.3ms) 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/101" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"101"} 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" = 101 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 79]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 100]] Started GET "/v1?auth_token[]=s5uqYJR96RgJCHj4nL2r" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["s5uqYJR96RgJCHj4nL2r"], "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::Member Load (5.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('s5uqYJR96RgJCHj4nL2r') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 79]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 100]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 100 LIMIT 1 Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 7.2ms) Cadenero::Member Load (8.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Started GET "/v1?auth_token[]=BRpEwfPirMpt7qfp2s9G" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["BRpEwfPirMpt7qfp2s9G"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('BRpEwfPirMpt7qfp2s9G') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 79]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 101]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (3.8ms) ROLLBACK  (2.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (4.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$u16nyxTxg6z6/Bjpz30hgeAXbidxc4MKKKiV7OIvtShHGLNdGZrTG"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 102], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '4Ln7rpjzoBZtR2y376Qp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 80 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 102], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 80], ["auth_token", "4Ln7rpjzoBZtR2y376Qp"]] 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", 80], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["user_id", 102]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rNzyAusxzdLgtfrMxwM2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 102 [["account_id", 80], ["user_id", 102], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 102], ["auth_token", "rNzyAusxzdLgtfrMxwM2"]]  (13.1ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (10.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (9.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.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.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') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$0pbmeVOpkYrZlEO5ux69teLueauR3UgRuTgXkzffymGErh0u2.K9W"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 103], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1Dak3zaLrrXDkD8oPesN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 81 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 103], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 81], ["auth_token", "1Dak3zaLrrXDkD8oPesN"]] 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", 81], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["user_id", 103]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Bxdsmkwuu7Na5xgJ8Gpr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 103 [["account_id", 81], ["user_id", 103], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 103], ["auth_token", "Bxdsmkwuu7Na5xgJ8Gpr"]]  (2.0ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.3ms) 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, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 103]] Started GET "/v1?auth_token[]=Bxdsmkwuu7Na5xgJ8Gpr" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Bxdsmkwuu7Na5xgJ8Gpr"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('Bxdsmkwuu7Na5xgJ8Gpr') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 80]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (17.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Z/Hhrh8smOmnvIOk7afDu.qzb13MWgvkHRpSj5htVc93ZHFboQw4S"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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, 18 Jul 2013 01:54:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 104], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NBgw1p5sHmzVWucjHRHM' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 82 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 104], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 82], ["auth_token", "NBgw1p5sHmzVWucjHRHM"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 82], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["user_id", 104]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zbRLBsQnZrUWWjQm2id5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 104 [["account_id", 82], ["user_id", 104], ["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["id", 104], ["auth_token", "zbRLBsQnZrUWWjQm2id5"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (21.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (16.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] Started GET "/v1?auth_token[]=zbRLBsQnZrUWWjQm2id5" for 127.0.0.1 at 2013-07-17 20:54:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zbRLBsQnZrUWWjQm2id5"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('zbRLBsQnZrUWWjQm2id5') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 82]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 104]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (8.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$/08YUZkkinMis62GjaufzOWmQbI53yLwfGoYyDDxxmsLC3qy/.AWm"], ["updated_at", Thu, 18 Jul 2013 01:54:12 UTC +00:00]] Cadenero::V1::Account Exists (1.7ms) 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, 18 Jul 2013 01:54:13 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 105], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kixcWVtfRfsKbLxv7Jk2' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 83 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 105], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 83], ["auth_token", "kixcWVtfRfsKbLxv7Jk2"]] 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", 83], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["user_id", 105]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YE8Bn274sQmPj1XWtS65' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 105 [["account_id", 83], ["user_id", 105], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 105], ["auth_token", "YE8Bn274sQmPj1XWtS65"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (8.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (2.6ms) 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 ('20130715174857')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user6@example.com' LIMIT 1 [["account_id", 83]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 105 LIMIT 1 Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 105]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 105]] 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" = $1 [["user_id", 105]] Completed 201 Created in 42ms (Views: 8.0ms | ActiveRecord: 16.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 Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 105]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"105", "default"=>:json} Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 105 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.9ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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-17 20:54: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$hiYTe7wCE2NS4XmYQw5Fa.I1lDVbwhkE0lg1Pt5WjQwyG8OUGIPF6"], ["updated_at", Thu, 18 Jul 2013 01:54:13 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", 83], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["user_id", 106]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wAq6V4HUdQAmDgycf6wc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 106 [["account_id", 83], ["user_id", 106], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 106], ["auth_token", "wAq6V4HUdQAmDgycf6wc"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 106]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Completed 201 Created in 21ms (Views: 6.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/106" for 127.0.0.1 at 2013-07-17 20:54:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"106"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 106 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 83]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 106]] Cadenero::V1::Account Load (35.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", 106]] Completed 200 OK in 48ms (Views: 6.5ms | ActiveRecord: 37.4ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54: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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 106]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] Completed 201 Created in 10ms (Views: 6.7ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (1.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  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 01:54:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$1In/pRwtR8w8od8qXuGSnu9rtfR.PARuo.pc7oNqkjjb59OrJUkCa"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 107], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DCQ37oCYHrQzgJyy5s5Q' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 84 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 107], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 84], ["auth_token", "DCQ37oCYHrQzgJyy5s5Q"]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 84], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["user_id", 107]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MPUAyy7p5NCsqhtZFw2z' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 107 [["account_id", 84], ["user_id", 107], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 107], ["auth_token", "MPUAyy7p5NCsqhtZFw2z"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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/users" for 127.0.0.1 at 2013-07-17 20:54: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$LIQzZnSEFENUu/43MyZSuexfbBlTRYWHx03VcXQ5bqRG3h3ne1dHe"], ["updated_at", Thu, 18 Jul 2013 01:54:13 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", 84], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["user_id", 108]] Cadenero::Member Load (70.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B2x1qqiDmFz1zpSpYBzG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (7.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 108 [["account_id", 84], ["user_id", 108], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 108], ["auth_token", "B2x1qqiDmFz1zpSpYBzG"]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 108 LIMIT 1 Cadenero::Member Load (11.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 108]] Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 108]] Cadenero::V1::Account Load (13.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", 108]] Completed 201 Created in 145ms (Views: 22.6ms | ActiveRecord: 109.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/108" for 127.0.0.1 at 2013-07-17 20:54:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"108"} Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (4.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 108 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 84]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 108 LIMIT 1 Cadenero::Member Load (5.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 108]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 108]] 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", 108]] Completed 200 OK in 23ms (Views: 6.9ms | ActiveRecord: 12.7ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54: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" = 108 LIMIT 1 Cadenero::Member Load (3.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 108]] Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 108]] Cadenero::V1::Account Load (15.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", 108]] Completed 201 Created in 32ms (Views: 5.6ms | ActiveRecord: 24.8ms) 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" for 127.0.0.1 at 2013-07-17 20:54: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" = 108 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$KoaevYclPMMv17vSyBQ6..QyGr3bs0AvJoixZJaVKWnYeLH8lYLSO"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.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, 18 Jul 2013 01:54:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 109], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BWFYnbeq6zhLDtr53fEV' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 85 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 109], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 85], ["auth_token", "BWFYnbeq6zhLDtr53fEV"]] 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", 85], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["user_id", 109]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6y6csqp3Y3MdAZjRY7Ym' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 109 [["account_id", 85], ["user_id", 109], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 109], ["auth_token", "6y6csqp3Y3MdAZjRY7Ym"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (8.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (9.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54: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 (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (5.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 85]] Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 109 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 109]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 109]] 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", 109]] Completed 201 Created in 32ms (Views: 6.6ms | ActiveRecord: 18.2ms) Cadenero::V1::Account Load (11.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 109]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"109", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 109 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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)  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (3.0ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 01:54:13 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$GTn3r1IOyznf0ADGsTBrAOm8q4G4Th6/rRcIoBjygS1BPYp0iN6Re"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 110], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's1Sx3x4qQrtsUPVEAhXp' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 86 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 110], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 86], ["auth_token", "s1Sx3x4qQrtsUPVEAhXp"]] 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", 86], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["user_id", 110]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fetnj6ZVuxoqYxAz57oL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 110 [["account_id", 86], ["user_id", 110], ["created_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:13 UTC +00:00], ["id", 110], ["auth_token", "fetnj6ZVuxoqYxAz57oL"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (8.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (6.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (7.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.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-17 20:54: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-17 20:54:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@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 ('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"."email" = 'user9@example.com' LIMIT 1 [["account_id", 86]] Cadenero::User Load (7.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 110 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 110]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 110]] Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 110]] Completed 201 Created in 31ms (Views: 7.6ms | ActiveRecord: 16.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 110]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54:14 -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" = 110 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.9ms) ROLLBACK  (0.9ms) BEGIN  (3.2ms) COMMIT  (0.2ms) BEGIN SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$EEQlXhJgLuzp1L2savBgCuecqhTOtNQURCl1o45ly1GYHqgjlyzyG"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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, 18 Jul 2013 01:54:14 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 111], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kQQrDgwvsZsj3QwF6xWU' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 87 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 111], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 87], ["auth_token", "kQQrDgwvsZsj3QwF6xWU"]] 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", 87], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["user_id", 111]] Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aJs35ehz7yaq4gEiERFh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 111 [["account_id", 87], ["user_id", 111], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 111], ["auth_token", "aJs35ehz7yaq4gEiERFh"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (17.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (6.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.8ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 20:54:14 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (2.6ms) COMMIT  (6.1ms) BEGIN SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$ZDbtrqTTc6jj/ZouQMYt1OPcndsJ7i2nfzS62cTdzx3k99YT5dKDm"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Exists (3.8ms) 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", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 112], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'q8zNQqy4psS57RYjp2hZ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 88 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 112], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 88], ["auth_token", "q8zNQqy4psS57RYjp2hZ"]] 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", 88], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["user_id", 112]] Cadenero::Member Load (3.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mH1fLsF8h5FNhbYLmBrQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 112 [["account_id", 88], ["user_id", 112], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 112], ["auth_token", "mH1fLsF8h5FNhbYLmBrQ"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (5.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.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, "updated_at" timestamp)   (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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-17 20:54: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 ('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 [["account_id", 88]] 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  (5.1ms) ROLLBACK  (1.2ms) BEGIN  (3.0ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$9aQEZYLiwCgeoW/iaGEI8enTm8KA80TZ1ZWUKQhjQqh.PR0JpYbnG"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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, 18 Jul 2013 01:54:14 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 113], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hhqHprJYzRLj6hvE2RhJ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 89 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 113], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 89], ["auth_token", "hhqHprJYzRLj6hvE2RhJ"]] 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", 89], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["user_id", 113]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D1KfnBwEZzvUzzqe32DE' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 113 [["account_id", 89], ["user_id", 113], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 113], ["auth_token", "D1KfnBwEZzvUzzqe32DE"]]  (0.2ms) CREATE SCHEMA "test12" SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (6.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (6.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 ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$k6fkgrJybaMHr8tAuPbWbOnbrvBc1K.TzwBXuDfZFLhQnF5FuVQgy"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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, 18 Jul 2013 01:54:14 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 114], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'eztXsDEyiznzzagbz7M5' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 90 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 114], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 90], ["auth_token", "eztXsDEyiznzzagbz7M5"]] 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", 90], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["user_id", 114]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hp3YS7VAPHYyM8UR7rFx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 114 [["account_id", 90], ["user_id", 114], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 114], ["auth_token", "hp3YS7VAPHYyM8UR7rFx"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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-17 20:54:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user13@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') 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" = 'user13@example.com' LIMIT 1 [["account_id", 89]] Completed 422 Unprocessable Entity in 15ms (Views: 0.9ms | ActiveRecord: 6.9ms) Cadenero::V1::Account Load (5.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  (9.6ms) ROLLBACK  (1.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$hTq9Jr7KD.fc8q1zQRB16OEDgk50iBFduPPXHMymluIRKE6zOc2sG"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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, 18 Jul 2013 01:54:14 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 115], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'szybnhmLzq9vx3yMShqF' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 91 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 115], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 91], ["auth_token", "szybnhmLzq9vx3yMShqF"]] 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", 91], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["user_id", 115]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hQUq3r17BqCs2ZbLx8Bz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 115 [["account_id", 91], ["user_id", 115], ["created_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 01:54:14 UTC +00:00], ["id", 115], ["auth_token", "hQUq3r17BqCs2ZbLx8Bz"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (6.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 20:54: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-17 20:54: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 (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') 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", 91]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.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  (8.1ms) ROLLBACK  (8.4ms) BEGIN  (3.4ms) COMMIT  (0.1ms) BEGIN SQL (73.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$inzeXpw4qB6a7v7zfo9.B.Vtq2IJJCLmP1NShWxbVidEWbjuSayXi"], ["updated_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00]] Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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, 18 Jul 2013 02:04:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 116], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00]] Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'adzsiWeE1aBdLHpyqoyz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (11.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 92 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 116], ["created_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["id", 92], ["auth_token", "adzsiWeE1aBdLHpyqoyz"]] SQL (19.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 92], ["created_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["user_id", 116]] Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qKdAQ34Tqc4fHx6pFzAt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (20.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 116 [["account_id", 92], ["user_id", 116], ["created_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:50 UTC +00:00], ["id", 116], ["auth_token", "qKdAQ34Tqc4fHx6pFzAt"]]  (10.1ms) CREATE SCHEMA "test1" SQL (9.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (5.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (10.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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 41ms (Views: 0.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 116]] Started GET "/v1?auth_token[]=qKdAQ34Tqc4fHx6pFzAt" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["qKdAQ34Tqc4fHx6pFzAt"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('qKdAQ34Tqc4fHx6pFzAt') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 92]] Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 116]] Cadenero::User Load (4.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 116 LIMIT 1 Completed 200 OK in 30ms (Views: 3.5ms | ActiveRecord: 9.5ms) Started GET "/v1/users/116" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"116"} Cadenero::V1::Account Load (0.6ms) 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" = 116 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 92]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 116 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 116]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 116]] 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", 116]] Completed 200 OK in 134ms (Views: 118.3ms | ActiveRecord: 5.3ms)  (8.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$JJNHmpkHwn53KdyqBhHbJOskHXh8MTqjgJC1Z2VUC2pTT21Zlhyt."], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 117], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8gahgm6pxH6teaqUMRko' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 93 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 117], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 93], ["auth_token", "8gahgm6pxH6teaqUMRko"]] 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", 93], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["user_id", 117]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PMSkMouZyqpDCUULNNEG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (10.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 117 [["account_id", 93], ["user_id", 117], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 117], ["auth_token", "PMSkMouZyqpDCUULNNEG"]]  (16.9ms) CREATE SCHEMA "test2" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (9.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (3.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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 ('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') 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, 18 Jul 2013 02:04:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$Sk5IAomXk19tXHj5dQi2EemkpOt.QrkVIFAM0uvWlm8b1njMw2ctW"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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, 18 Jul 2013 02:04:51 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 118], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2PzBgRiHzud1K7jN7JkN' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 94 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 118], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 94], ["auth_token", "2PzBgRiHzud1K7jN7JkN"]] 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", 94], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["user_id", 118]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2GE1uNGwbcQxRydk17qD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 118 [["account_id", 94], ["user_id", 118], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 118], ["auth_token", "2GE1uNGwbcQxRydk17qD"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (7.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (11.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (11.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (14.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.0ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 118]] Started GET "/v1?auth_token[]=2GE1uNGwbcQxRydk17qD" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["2GE1uNGwbcQxRydk17qD"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('2GE1uNGwbcQxRydk17qD') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 93]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$BMBdflCRvZfqz4rFRjfPI.h7wQv5gIiCQs94rgoi1HorqZ.saLCQu"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] 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", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 119], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LHWXYsKkBbxveaZiMejt' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 95 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 119], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 95], ["auth_token", "LHWXYsKkBbxveaZiMejt"]] 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", 95], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["user_id", 119]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'APnXsJ9JMi9xuUqrXJKK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 119 [["account_id", 95], ["user_id", 119], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 119], ["auth_token", "APnXsJ9JMi9xuUqrXJKK"]]  (0.2ms) CREATE SCHEMA "test4" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (16.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (34.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp)  (0.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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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/users" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$MBzq3/4kcpvLSkOLYpxp4u1qvirBrk8xyTRw1IgFnzW5jcQZ6m5sK"], ["updated_at", Thu, 18 Jul 2013 02:04:51 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", 95], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["user_id", 120]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UyxxmZfD4pVzjqLgCzGi' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 120 [["account_id", 95], ["user_id", 120], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 120], ["auth_token", "UyxxmZfD4pVzjqLgCzGi"]] Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 120]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 120]] 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", 120]] Completed 201 Created in 28ms (Views: 6.2ms | ActiveRecord: 9.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/120" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"120"} 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.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" = 120 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 95]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 120]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 120]] 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", 120]] Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 119]] Started GET "/v1?auth_token[]=APnXsJ9JMi9xuUqrXJKK" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["APnXsJ9JMi9xuUqrXJKK"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('APnXsJ9JMi9xuUqrXJKK') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 95]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 119]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 120]] Started GET "/v1?auth_token[]=UyxxmZfD4pVzjqLgCzGi" for 127.0.0.1 at 2013-07-17 21:04:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["UyxxmZfD4pVzjqLgCzGi"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('UyxxmZfD4pVzjqLgCzGi') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 95]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 120]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (22.3ms) ROLLBACK  (1.3ms) BEGIN  (3.4ms) COMMIT  (10.2ms) BEGIN SQL (5.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$xHMX6KBnIktHW7Q71/mNEeTz9ezFaXK8idhQbncsT6KMJfa3bjrIa"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Exists (12.1ms) 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", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 121], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wG6hYhaXNJAtFwySi8pC' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 96 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 121], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 96], ["auth_token", "wG6hYhaXNJAtFwySi8pC"]] 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", 96], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["user_id", 121]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'T9nKjifFxbGTKZZFxvBT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 121 [["account_id", 96], ["user_id", 121], ["created_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:51 UTC +00:00], ["id", 121], ["auth_token", "T9nKjifFxbGTKZZFxvBT"]]  (0.2ms) CREATE SCHEMA "test5" SQL (3.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (11.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (11.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (8.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 121]] Started GET "/v1?auth_token[]=T9nKjifFxbGTKZZFxvBT" for 127.0.0.1 at 2013-07-17 21:04:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["T9nKjifFxbGTKZZFxvBT"], "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::Member Load (10.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('T9nKjifFxbGTKZZFxvBT') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 96]] Cadenero::User Load (12.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 121]] Cadenero::User Load (10.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 121 LIMIT 1 Completed 200 OK in 41ms (Views: 0.2ms | ActiveRecord: 34.8ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$El9hp6L.yudRbYRg/bcPFuLNslAGwu2WoSSVRZ50FF.TJ0fnQMAyK"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 02:04:52 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 122], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pDBhrqKz9Kzu7xJAWG5T' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 97 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 122], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 97], ["auth_token", "pDBhrqKz9Kzu7xJAWG5T"]] 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", 97], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["user_id", 122]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R8x5pXq85zqm75k4QSVM' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 122 [["account_id", 97], ["user_id", 122], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 122], ["auth_token", "R8x5pXq85zqm75k4QSVM"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (7.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:52 -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 (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" = 'user6@example.com' LIMIT 1 [["account_id", 97]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 122 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 122]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 122]] 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", 122]] Completed 201 Created in 24ms (Views: 7.1ms | ActiveRecord: 8.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (4.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 122]] Cadenero::User Load (3.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"122", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 122 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:04:52 -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' ORDER BY "public"."cadenero_accounts"."id" ASC 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, 18 Jul 2013 02:04:52 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$MubJXKH4QVp0lhHnNGTiL.2bl548y0geWlijtJ396xbQZpLHyIm2q"], ["updated_at", Thu, 18 Jul 2013 02:04: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", 97], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["user_id", 123]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5zC6zz7LisqCPcToxgkk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 123 [["account_id", 97], ["user_id", 123], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 123], ["auth_token", "5zC6zz7LisqCPcToxgkk"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 123 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 123]] Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 123]] 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", 123]] Completed 201 Created in 27ms (Views: 7.1ms | ActiveRecord: 7.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/123" for 127.0.0.1 at 2013-07-17 21:04:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"123"} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 123 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 97]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 123 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 123]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 123]] Cadenero::V1::Account Load (45.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", 123]] Completed 200 OK in 60ms (Views: 6.9ms | ActiveRecord: 48.8ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:52 -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" = 123 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 123]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 123]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 123]] Completed 201 Created in 8ms (Views: 5.5ms | 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  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$HuRpmwTEmwtnmSEyV2X3yuEsN7PKgRFNByowUfM.5BcBUwAqYuytC"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] 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", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 124], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uz9o59UTDZzqga4jsREK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 98 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 124], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 98], ["auth_token", "uz9o59UTDZzqga4jsREK"]] 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", 98], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["user_id", 124]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tLZu2nvmGppFLSQBHy6z' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 124 [["account_id", 98], ["user_id", 124], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 124], ["auth_token", "tLZu2nvmGppFLSQBHy6z"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (9.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (14.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (36.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (11.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04: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 (10.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (10.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 98]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 124 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 124]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 124]] 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", 124]] Completed 201 Created in 93ms (Views: 63.3ms | ActiveRecord: 23.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 124]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"124", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 124 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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)  (9.5ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$M.YrN6IGh5Unv5TLUIKwruBAwJXe/gx0UHpjoP4xgw7nHYj42IhZ2"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.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, 18 Jul 2013 02:04:52 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 125], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7wshy6tWv1TQWmVmMt6i' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 99 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 125], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 99], ["auth_token", "7wshy6tWv1TQWmVmMt6i"]] 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", 99], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["user_id", 125]] Cadenero::Member Load (3.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fyzDh81TE1HxCnN9Goq2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (16.1ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 125 [["account_id", 99], ["user_id", 125], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 125], ["auth_token", "fyzDh81TE1HxCnN9Goq2"]]  (0.3ms) CREATE SCHEMA "test8" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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/users" for 127.0.0.1 at 2013-07-17 21:04:52 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$vmoZn85utQdYFJHcb/Xei.AtwSXAqBfXpXZ.uEpXgy/8PAkdjzDW2"], ["updated_at", Thu, 18 Jul 2013 02:04: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", 99], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["user_id", 126]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xKmCZRqsVMsNHXseMoeb' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 126 [["account_id", 99], ["user_id", 126], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 126], ["auth_token", "xKmCZRqsVMsNHXseMoeb"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 126 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 126]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 126]] 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", 126]] Completed 201 Created in 21ms (Views: 6.4ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/126" for 127.0.0.1 at 2013-07-17 21:04:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"126"} 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" = 126 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 99]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 126 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 126]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 126]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 126]] Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:52 -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" = 126 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 126]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 126]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 126]] Completed 201 Created in 9ms (Views: 6.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (8.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" for 127.0.0.1 at 2013-07-17 21:04:52 -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" = 126 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (3.9ms) ROLLBACK  (5.4ms) BEGIN  (6.0ms) COMMIT  (6.3ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$vV8NoG0gOBpgWqtm1iaVO.pj9lfgWvVwu50P9YSHlakbchiUvwAlm"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 127], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oGKBt7zsJNAZLjK9ZLzd' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (5.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 100 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 127], ["created_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:52 UTC +00:00], ["id", 100], ["auth_token", "oGKBt7zsJNAZLjK9ZLzd"]] 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", 100], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["user_id", 127]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LmXBCLkApz69FUWC4Uva' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 127 [["account_id", 100], ["user_id", 127], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 127], ["auth_token", "LmXBCLkApz69FUWC4Uva"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.4ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:53 -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.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 100]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 127 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 127]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 127]] 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", 127]] Completed 201 Created in 17ms (Views: 6.6ms | ActiveRecord: 3.9ms) 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 Cadenero::Member Load (3.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 127]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (8.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 127 LIMIT 1 Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 8.2ms)  (6.5ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$Jwhs7YeB36XMBAzNq6ThY.UdKc3UZC6M18/Bk9Kr3dts0uiVbSnRe"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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, 18 Jul 2013 02:04:53 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 128], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GJv5LyN2JFuLAiS3gH3p' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 101 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 128], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 101], ["auth_token", "GJv5LyN2JFuLAiS3gH3p"]] 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", 101], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["user_id", 128]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NV692sxQjcm6cxxe6Fxq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 128 [["account_id", 101], ["user_id", 128], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 128], ["auth_token", "NV692sxQjcm6cxxe6Fxq"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (12.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (10.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (12.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:53 -0500 Cadenero::V1::Account Load (4.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  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$kXq54Amz.vbm7KLUUzjGfOcd7hZLJuZg/3TuG5u0KHmO2QTuzHkkq"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 129], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NHqG5qKdN8JtC2qmME5t' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 102 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 129], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 102], ["auth_token", "NHqG5qKdN8JtC2qmME5t"]] 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", 102], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["user_id", 129]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '56LbyeqmNxC1hza9rrSn' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 129 [["account_id", 102], ["user_id", 129], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 129], ["auth_token", "56LbyeqmNxC1hza9rrSn"]]  (1.0ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (7.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (7.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (6.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (5.5ms) 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.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') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$4sdMCEn6/5sK6gN4qiuIBOulZHyQN/11JYvgoknIxOORTVYZ/cbtG"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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, 18 Jul 2013 02:04:53 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 130], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'g7qpiSVyF7EEezinQVKj' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 103 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 130], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 103], ["auth_token", "g7qpiSVyF7EEezinQVKj"]] 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", 103], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["user_id", 130]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oxvADGpZmzYp8aDsnnwa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 130 [["account_id", 103], ["user_id", 130], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 130], ["auth_token", "oxvADGpZmzYp8aDsnnwa"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:53 -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 (17.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" = 'user12@example.com' LIMIT 1 [["account_id", 102]] Completed 422 Unprocessable Entity in 21ms (Views: 0.3ms | ActiveRecord: 17.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.8ms) ROLLBACK  (0.8ms) BEGIN  (3.5ms) COMMIT  (1.3ms) BEGIN 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, 18 Jul 2013 02:04:53 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$37Mx8wwk6xG7sUnjEovGu.fBvfVklSsCNmSid5CbOH7bybN3Z65Xe"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Exists (4.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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, 18 Jul 2013 02:04:53 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 131], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CJxyHmxMxu7Nr9xiserF' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 104 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 131], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 104], ["auth_token", "CJxyHmxMxu7Nr9xiserF"]] 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", 104], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["user_id", 131]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Sg4joaCDMyzvq7j6DnVA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 131 [["account_id", 104], ["user_id", 131], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 131], ["auth_token", "Sg4joaCDMyzvq7j6DnVA"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (20.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') 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", 104]] Completed 422 Unprocessable Entity in 8ms (Views: 0.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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.8ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$FYXIUGnV7a7w7pOrhpfFGuD4SKF0dPmBrEBJRr2BQWAZXEeenvQLi"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 132], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '93Ygpj8LHspYBi1Y5fe7' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 105 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 132], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 105], ["auth_token", "93Ygpj8LHspYBi1Y5fe7"]] 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", 105], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["user_id", 132]] Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eJPoHxmNWuvqDDUi9oTV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (3.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 132 [["account_id", 105], ["user_id", 132], ["created_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:04:53 UTC +00:00], ["id", 132], ["auth_token", "eJPoHxmNWuvqDDUi9oTV"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (16.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:04: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 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:04:53 -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 ('test14') 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", 105]] Completed 422 Unprocessable Entity in 8ms (Views: 2.2ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.9ms) ROLLBACK  (9.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (86.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$br8AXgPkhex4Lt3BmvsgFOipuHyN8CHh6UzPCseKytSzSyF.Dwx0a"], ["updated_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00]] Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (3.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 133], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XTd5tyiPhkVHxfo8ApGY' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 106 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 133], ["created_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["id", 106], ["auth_token", "XTd5tyiPhkVHxfo8ApGY"]] 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", 106], ["created_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["user_id", 133]] Cadenero::Member Load (9.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QzLBm4jsmq3NLZzaPt1D' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (3.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 133 [["account_id", 106], ["user_id", 133], ["created_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:24 UTC +00:00], ["id", 133], ["auth_token", "QzLBm4jsmq3NLZzaPt1D"]]  (0.4ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.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, "updated_at" timestamp, "auth_token" character varying(255))   (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (7.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.8ms) 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.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') SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$Ye2wL6Om0CumaHjg.DS.7OnHizPx2mniBuNFreB0ScPah0xbTcayu"], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00]] Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (6.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, 18 Jul 2013 02:05:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 134], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jDnxHzeWqNrmcZ35Mpqz' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 107 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 134], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 107], ["auth_token", "jDnxHzeWqNrmcZ35Mpqz"]] 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", 107], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["user_id", 134]] Cadenero::Member Load (4.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oTBxne7aSVseqAXqpp8C' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 134 [["account_id", 107], ["user_id", 134], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 134], ["auth_token", "oTBxne7aSVseqAXqpp8C"]]  (0.3ms) CREATE SCHEMA "test2" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (6.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp)  (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.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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 48ms (Views: 0.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (6.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 134]] Started GET "/v1?auth_token[]=oTBxne7aSVseqAXqpp8C" for 127.0.0.1 at 2013-07-17 21:05:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["oTBxne7aSVseqAXqpp8C"], "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::Member Load (9.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('oTBxne7aSVseqAXqpp8C') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 106]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 10.1ms)  (12.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$a0sPZYUTw4HpBrB2W9jPiOx5Z0tPpPgmTAnWHzg0puqIPauFJyYly"], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00]] Cadenero::V1::Account Exists (4.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, 18 Jul 2013 02:05:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 135], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BiQdydrFXwk6gGmgzMH4' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 108 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 135], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 108], ["auth_token", "BiQdydrFXwk6gGmgzMH4"]] 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", 108], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["user_id", 135]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hehUSdqrHVzFdSCqvWok' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 135 [["account_id", 108], ["user_id", 135], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 135], ["auth_token", "hehUSdqrHVzFdSCqvWok"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (13.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (12.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.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 GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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) Cadenero::Member Load (5.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 135]] Started GET "/v1?auth_token[]=hehUSdqrHVzFdSCqvWok" for 127.0.0.1 at 2013-07-17 21:05:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hehUSdqrHVzFdSCqvWok"], "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('hehUSdqrHVzFdSCqvWok') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 108]] Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 135]] Cadenero::User Load (5.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 135 LIMIT 1 Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 10.9ms) Started GET "/v1/users/135" for 127.0.0.1 at 2013-07-17 21:05:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"135"} Cadenero::V1::Account Load (18.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 135 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 108]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 135 LIMIT 1 Cadenero::Member Load (5.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 135]] Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 135]] Cadenero::V1::Account Load (8.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", 135]] Completed 200 OK in 90ms (Views: 40.6ms | ActiveRecord: 38.1ms)  (4.6ms) ROLLBACK  (3.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$fEgbuNygj/1.uoKt9vFeuuj9e0bHYkdrGc4FKIt.hs5EKJxvXK7FC"], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 136], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qzADNvRxqidXbcycsjfz' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 109 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 136], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 109], ["auth_token", "qzADNvRxqidXbcycsjfz"]] 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", 109], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["user_id", 136]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NxRoz4vJDSavFMor8DYx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 136 [["account_id", 109], ["user_id", 136], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 136], ["auth_token", "NxRoz4vJDSavFMor8DYx"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (21.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (5.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (7.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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/users" for 127.0.0.1 at 2013-07-17 21:05:25 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (32.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$Bobs03MTH/orjTrAVsqWUOA.7NwHFJCkwyaybDmyL/eXdXvMOfGKu"], ["updated_at", Thu, 18 Jul 2013 02:05:25 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", 109], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["user_id", 137]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'm1zs8PLxch1qbbEpY8XC' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 137 [["account_id", 109], ["user_id", 137], ["created_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:25 UTC +00:00], ["id", 137], ["auth_token", "m1zs8PLxch1qbbEpY8XC"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 137 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 137]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 137]] 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", 137]] Completed 201 Created in 75ms (Views: 16.1ms | ActiveRecord: 43.9ms) Cadenero::V1::Account Load (3.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/137" for 127.0.0.1 at 2013-07-17 21:05:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"137"} Cadenero::V1::Account Load (14.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 137 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 109]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 137 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 137]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 137]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 137]] Completed 200 OK in 30ms (Views: 6.6ms | ActiveRecord: 17.2ms) Cadenero::User Load (5.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 136]] Started GET "/v1?auth_token[]=NxRoz4vJDSavFMor8DYx" for 127.0.0.1 at 2013-07-17 21:05:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["NxRoz4vJDSavFMor8DYx"], "default"=>:json} Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('NxRoz4vJDSavFMor8DYx') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 109]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 136]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 136 LIMIT 1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 6.6ms) Cadenero::Member Load (20.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 137]] Started GET "/v1?auth_token[]=m1zs8PLxch1qbbEpY8XC" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["m1zs8PLxch1qbbEpY8XC"], "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::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('m1zs8PLxch1qbbEpY8XC') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 109]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 137]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 137 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.8ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$per4cRFrJoS9zW8wWMGrLunvc1QBaTBw1igg9/shE7rcgwe4kBRay"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 138], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'abmbqqjLCUrRix9J46sY' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 110 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 138], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 110], ["auth_token", "abmbqqjLCUrRix9J46sY"]] 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", 110], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 138]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BpsKd9vEzHCjV9jYfsH6' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 138 [["account_id", 110], ["user_id", 138], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 138], ["auth_token", "BpsKd9vEzHCjV9jYfsH6"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (12.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (9.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 138]] Started GET "/v1?auth_token[]=BpsKd9vEzHCjV9jYfsH6" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["BpsKd9vEzHCjV9jYfsH6"], "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::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('BpsKd9vEzHCjV9jYfsH6') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 110]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 138]] Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 138 LIMIT 1 Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 7.8ms)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (1.6ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$Y.9Om5Luaei8JaChmbvHcucYjb7afP1V.vjE.sVqEp3atbkS9/hDS"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 02:05:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 139], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GUntdyGLNj2fpZqeC6JQ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (7.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 111 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 139], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 111], ["auth_token", "GUntdyGLNj2fpZqeC6JQ"]] 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", 111], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 139]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ztWAUFusfo9Esm2mhGt5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (7.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 139 [["account_id", 111], ["user_id", 139], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 139], ["auth_token", "ztWAUFusfo9Esm2mhGt5"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (12.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (10.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05: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 ('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", 111]] Cadenero::User Load (7.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 139 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 139]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 139]] 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", 139]] Completed 201 Created in 25ms (Views: 6.8ms | ActiveRecord: 9.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 139]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"139", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 139 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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)  (3.8ms) ROLLBACK  (0.7ms) BEGIN  (1.2ms) COMMIT  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$LY9qOVEbCTRBF4LbvvGcXufOhjmrF2MnGklqvDvphvY5X6vm2n6a6"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] 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", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 140], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'k73NaSUVTf3jktCNXgss' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 112 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 140], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 112], ["auth_token", "k73NaSUVTf3jktCNXgss"]] 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", 112], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 140]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kujPRav3qyP91ao2pKMK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 140 [["account_id", 112], ["user_id", 140], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 140], ["auth_token", "kujPRav3qyP91ao2pKMK"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (8.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (6.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (7.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (3.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", 112]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 140 LIMIT 1 Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 140]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 140]] Cadenero::V1::Account Load (4.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", 140]] Completed 201 Created in 31ms (Views: 12.2ms | ActiveRecord: 12.2ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 140]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user7@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"140", "default"=>:json} Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 140 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 2.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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/users" for 127.0.0.1 at 2013-07-17 21:05:26 -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" = 'test7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$9YMpMSOQq397kFPqjKigKuNOQL/pzD2JDGnDLv0UcUycaV7KaNDb6"], ["updated_at", Thu, 18 Jul 2013 02:05: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", 112], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 141]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jmAszmswaqbQGFQabt8i' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 141 [["account_id", 112], ["user_id", 141], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 141], ["auth_token", "jmAszmswaqbQGFQabt8i"]] Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 141 LIMIT 1 Cadenero::Member Load (8.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 141]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 141]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 141]] Completed 201 Created in 38ms (Views: 7.1ms | ActiveRecord: 15.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/141" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"141"} 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 (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" = 141 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 112]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 141 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 141]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 141]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 141]] Completed 200 OK in 66ms (Views: 7.7ms | ActiveRecord: 3.7ms) Cadenero::User Load (6.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:26 -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" = 141 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 141]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 141]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 141]] Completed 201 Created in 12ms (Views: 5.8ms | 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  (5.4ms) ROLLBACK  (3.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$NmUJDMfystkpr0k3JB7JKuMOHkIi1p8Vx0wl2s7/M2HLvVr9zMzk2"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (5.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, 18 Jul 2013 02:05:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 142], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'za8xaFbUUmBP8R1ShoM8' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 113 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 142], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 113], ["auth_token", "za8xaFbUUmBP8R1ShoM8"]] 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", 113], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 142]] Cadenero::Member Load (4.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iompxd8yC5Q8JRCPRUFo' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 142 [["account_id", 113], ["user_id", 142], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 142], ["auth_token", "iompxd8yC5Q8JRCPRUFo"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (21.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (3.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"  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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/users" for 127.0.0.1 at 2013-07-17 21:05:26 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$UtbITlJvdNgKBGV8S.3IQuugAlSh8QFQbY5/PSlaHUHIpeG28jXb6"], ["updated_at", Thu, 18 Jul 2013 02:05: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", 113], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 143]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BDHfyjvsmeoGhyiLybtM' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 143 [["account_id", 113], ["user_id", 143], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 143], ["auth_token", "BDHfyjvsmeoGhyiLybtM"]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 143]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 143]] 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", 143]] Completed 201 Created in 24ms (Views: 6.5ms | ActiveRecord: 6.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 Started GET "/v1/users/143" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"143"} 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 (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" = 143 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 113]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 143]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 143]] 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", 143]] Completed 200 OK in 20ms (Views: 6.1ms | ActiveRecord: 6.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:26 -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" = 143 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 143]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 143]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 143]] Completed 201 Created in 8ms (Views: 5.2ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:05:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$/Fdw8gHPpi13bA59.MbMW.6nerLLqBgZVD23zSLfNjQDl8Wdil4RC"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 144], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BKj5fkXJCHwXCsZB5tsf' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 114 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 144], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 114], ["auth_token", "BKj5fkXJCHwXCsZB5tsf"]] 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", 114], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["user_id", 144]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oHHQJTPqLqsEQpsh1VDD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 144 [["account_id", 114], ["user_id", 144], ["created_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:26 UTC +00:00], ["id", 144], ["auth_token", "oHHQJTPqLqsEQpsh1VDD"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (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_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@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 ('test9') 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 [["account_id", 114]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 144 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 144]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 144]] 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", 144]] Completed 201 Created in 22ms (Views: 7.1ms | ActiveRecord: 9.1ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 144]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05:27 -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" = 144 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$lNfpJblgstsFijhMQiV7ZeqqqBfQoCgDwdd9BzTEGVJCWWYzolrA2"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (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", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 145], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KAsUjgeLU9zLncYL4YJb' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 115 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 145], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 115], ["auth_token", "KAsUjgeLU9zLncYL4YJb"]] 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", 115], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["user_id", 145]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HL5sPhripPwz6v3yMU7n' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 145 [["account_id", 115], ["user_id", 145], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 145], ["auth_token", "HL5sPhripPwz6v3yMU7n"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (17.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.5ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.6ms) 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, "updated_at" timestamp)   (1.7ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.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') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$lQpmnl4/wbl4BaDHIdUwz.NBg48/ibwkaH4mDHvoMNklYdEIEJd8C"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 146], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Load (7.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CoNsy6nJzXwChtGzTXst' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 116 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 146], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 116], ["auth_token", "CoNsy6nJzXwChtGzTXst"]] 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", 116], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["user_id", 146]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DVPsHhS9ucYcmWejBYxh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 146 [["account_id", 116], ["user_id", 146], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 146], ["auth_token", "DVPsHhS9ucYcmWejBYxh"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@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 ('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" = 'user11@example.com' LIMIT 1 [["account_id", 115]] Completed 422 Unprocessable Entity in 5ms (Views: 0.5ms | ActiveRecord: 1.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  (5.6ms) ROLLBACK  (2.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$2OBxRGi4blPk32mxDwMKFO1AKrJcu1pXxCDUuDc.SIwBipY7tGBoy"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (6.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, 18 Jul 2013 02:05:27 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 147], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'T545QqoDWvrHWf3xZGy4' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 117 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 147], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 117], ["auth_token", "T545QqoDWvrHWf3xZGy4"]] 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", 117], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["user_id", 147]] Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wQtLepsNkwpmqSqf9Udx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 147 [["account_id", 117], ["user_id", 147], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 147], ["auth_token", "wQtLepsNkwpmqSqf9Udx"]]  (0.3ms) CREATE SCHEMA "test12" SQL (2.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (6.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (14.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (7.1ms) SELECT version FROM "schema_migrations"  (10.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:27 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$6EdVAXQ26isSFKTR9Qpm6utqhJYs0gykxETpah2SIuWT34UYXs7Ly"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 148], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'aGGuqk7YNFZAt2t4KXkq' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 118 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 148], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 118], ["auth_token", "aGGuqk7YNFZAt2t4KXkq"]] 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", 118], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["user_id", 148]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WuGEn32DkMFp6ypF5Cua' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 148 [["account_id", 118], ["user_id", 148], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 148], ["auth_token", "WuGEn32DkMFp6ypF5Cua"]]  (0.3ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (27.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (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_auth_token" ON "cadenero_members" USING btree ("auth_token")  (5.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05:27 -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 ('test13') 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 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 118]] Completed 422 Unprocessable Entity in 7ms (Views: 0.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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.6ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$TZmpuROEAQlH/7Oxuu15PedgSTYP3afYFRQuh0arL/aCiZjWLGkxa"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (3.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, 18 Jul 2013 02:05:27 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 149], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mG7vptoUD3H6ptPkVpan' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 119 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 149], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 119], ["auth_token", "mG7vptoUD3H6ptPkVpan"]] 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", 119], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["user_id", 149]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6GKz2weR7sedFj5sSkWr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 149 [["account_id", 119], ["user_id", 149], ["created_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:27 UTC +00:00], ["id", 149], ["auth_token", "6GKz2weR7sedFj5sSkWr"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (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, "updated_at" timestamp)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.5ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05: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 (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') 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", 119]] Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (11.7ms) ROLLBACK  (2.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (64.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$AhEm4klDEx/07gFIfzMQVe08l3fZk9PKVRsQ.njVOg3tc9Ok1XXFe"], ["updated_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00]] Cadenero::V1::Account Exists (1.6ms) 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, 18 Jul 2013 02:05:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 150], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hSUuR5VNLwGdvB4r9Sd6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (20.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 120 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 150], ["created_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["id", 120], ["auth_token", "hSUuR5VNLwGdvB4r9Sd6"]] 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", 120], ["created_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["user_id", 150]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1jCYr9TFajmRVvE38QBy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 150 [["account_id", 120], ["user_id", 150], ["created_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:49 UTC +00:00], ["id", 150], ["auth_token", "1jCYr9TFajmRVvE38QBy"]]  (0.3ms) CREATE SCHEMA "test1" SQL (5.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (9.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (10.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (16.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (8.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.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 ('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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05: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.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 [["account_id", 120]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 150 LIMIT 1 Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 150]] Cadenero::V1::Account Load (11.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 150]] 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", 150]] Completed 201 Created in 112ms (Views: 38.8ms | 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 Cadenero::Member Load (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 150]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"150", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 150 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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/users" for 127.0.0.1 at 2013-07-17 21:05:50 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$Kj3Mac0WT0f94kdxwcuCleF04CdNe1XHQwgIfgUsfM/wHfYIaHaB6"], ["updated_at", Thu, 18 Jul 2013 02:05: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", 120], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["user_id", 151]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wQ6Zyzcfmpf1ntuujrEh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 151 [["account_id", 120], ["user_id", 151], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 151], ["auth_token", "wQ6Zyzcfmpf1ntuujrEh"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 151 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 151]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 151]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 151]] Completed 201 Created in 25ms (Views: 7.0ms | 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/151" for 127.0.0.1 at 2013-07-17 21:05:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"151"} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 151 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 120]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 151 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 151]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 151]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 151]] Completed 200 OK in 13ms (Views: 6.2ms | ActiveRecord: 3.4ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:50 -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" = 151 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 151]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 151]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 151]] Completed 201 Created in 8ms (Views: 5.5ms | 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  (8.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$5tVN85zC.9Dj13zF.y5yGuhF0K4iZxTnIlcslcL3AJ957dZgS9Ab."], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (3.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, 18 Jul 2013 02:05:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 152], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qoCXev7cz7TZzMdKY53E' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (4.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 121 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 152], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 121], ["auth_token", "qoCXev7cz7TZzMdKY53E"]] 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", 121], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["user_id", 152]] Cadenero::Member Load (14.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8RqBf6P53F7DSybMwgxy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 152 [["account_id", 121], ["user_id", 152], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 152], ["auth_token", "8RqBf6P53F7DSybMwgxy"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (5.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (5.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.6ms) SELECT version FROM "schema_migrations"  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:50 -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 (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 [["account_id", 121]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 152 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 152]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 152]] 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", 152]] Completed 201 Created in 17ms (Views: 6.3ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 152]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"152", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 152 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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.2ms | ActiveRecord: 0.0ms)  (5.2ms) ROLLBACK  (2.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:05:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$CIXUwJ7TTVzS/GIvMsqnDOYkMvfrnIsXATU7nAv.J3eIYA76Rku1e"], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00]] Cadenero::V1::Account Exists (10.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 153], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UjwqbxqUBCG3p8zxAixz' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 122 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 153], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 122], ["auth_token", "UjwqbxqUBCG3p8zxAixz"]] SQL (17.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 122], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["user_id", 153]] Cadenero::Member Load (18.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yFBfdazNNzvpuK1UqpmP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 153 [["account_id", 122], ["user_id", 153], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 153], ["auth_token", "yFBfdazNNzvpuK1UqpmP"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (7.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (16.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (10.4ms) 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, "updated_at" timestamp)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05: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.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 [["account_id", 122]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 153 LIMIT 1 Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 153]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 153]] 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", 153]] Completed 201 Created in 19ms (Views: 6.3ms | ActiveRecord: 5.7ms) 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 153]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05:50 -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" = 153 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.6ms) ROLLBACK  (1.0ms) BEGIN  (1.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$IwlbA.OBfVdE6.1ZfchLceLQPsoq3HZKS8H0zj1AmaEc2iZsftQWG"], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 154], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Pkqz9zeWXKmoKQboVcco' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 123 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 154], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 123], ["auth_token", "Pkqz9zeWXKmoKQboVcco"]] 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", 123], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["user_id", 154]] Cadenero::Member Load (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bqVEWrnnunmzAYCMxwUz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 154 [["account_id", 123], ["user_id", 154], ["created_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:50 UTC +00:00], ["id", 154], ["auth_token", "bqVEWrnnunmzAYCMxwUz"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (6.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.6ms) 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, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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/users" for 127.0.0.1 at 2013-07-17 21:05:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$P4VzddpIrp0B8R2Wo4mVpuvKO74C1sXo2Ch1WxXbDsLMUL8rlX5lW"], ["updated_at", Thu, 18 Jul 2013 02:05:51 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", 123], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["user_id", 155]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's6s3xVSUpSqWq7UskpZL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 155 [["account_id", 123], ["user_id", 155], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 155], ["auth_token", "s6s3xVSUpSqWq7UskpZL"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 155]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 155]] 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", 155]] Completed 201 Created in 22ms (Views: 6.5ms | 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/155" for 127.0.0.1 at 2013-07-17 21:05:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"155"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 155 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 123]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 155]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 155]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 155]] Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 155]] Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 155]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 155]] Completed 201 Created in 12ms (Views: 5.7ms | 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" for 127.0.0.1 at 2013-07-17 21:05:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (5.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 5.8ms)  (7.8ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$.S1GxgNoRj4kaqHwWV78ueaVCqCjWi4hNVmcCJ.4eG09ZjgHY2rVW"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.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, 18 Jul 2013 02:05:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 156], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QMVGw4fbUqqJ2p1u9S2V' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (8.1ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 124 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 156], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 124], ["auth_token", "QMVGw4fbUqqJ2p1u9S2V"]] 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", 124], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["user_id", 156]] Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HVKQJquRoGk3goKc2jVS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (12.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 156 [["account_id", 124], ["user_id", 156], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 156], ["auth_token", "HVKQJquRoGk3goKc2jVS"]]  (2.3ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (6.3ms) 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"  (7.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:05:51 -0500 Cadenero::V1::Account Load (1.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  (8.4ms) ROLLBACK  (2.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$EsLWDS8c5opcb9pWTxBF7.i6UEgS2E239/z4WnEgHeJjbtNNh33YS"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 02:05:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 157], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oHy2xp8vKWkBREkKBtKY' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (9.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 125 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 157], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 125], ["auth_token", "oHy2xp8vKWkBREkKBtKY"]] 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", 125], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["user_id", 157]] Cadenero::Member Load (45.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QuZ5q1Wq7gKcg4zs9zqh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 157 [["account_id", 125], ["user_id", 157], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 157], ["auth_token", "QuZ5q1Wq7gKcg4zs9zqh"]]  (1.1ms) CREATE SCHEMA "test6" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (9.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (8.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) 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 ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$A3mpxoafQEQv2x2RsBSTLuVgenuialIDBp7Zg/UYnFFW4nH/tZ/x."], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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, 18 Jul 2013 02:05:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 158], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '4EFR3F8BuA4gbyegSgkK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 126 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 158], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 126], ["auth_token", "4EFR3F8BuA4gbyegSgkK"]] 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", 126], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["user_id", 158]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sp3si4VziUDPxGqkJWxp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (9.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 158 [["account_id", 126], ["user_id", 158], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 158], ["auth_token", "sp3si4VziUDPxGqkJWxp"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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 [["account_id", 125]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.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  (4.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (3.3ms) BEGIN SQL (5.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$XfL5JByls5cnJ0KyXgvNfuggCZolVT8khe9vfNe8lDt1f3Ep5gemG"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (9.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, 18 Jul 2013 02:05:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 159], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'd9M8rHxzqbg3LjZMnek9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (14.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 127 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 159], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 127], ["auth_token", "d9M8rHxzqbg3LjZMnek9"]] SQL (5.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 127], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["user_id", 159]] Cadenero::Member Load (6.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5yDw4GqHnAcU4xPmogWD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 159 [["account_id", 127], ["user_id", 159], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 159], ["auth_token", "5yDw4GqHnAcU4xPmogWD"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (11.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (9.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.8ms) SELECT version FROM "schema_migrations"  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (7.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (10.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05: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 ('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 [["account_id", 127]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.6ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (6.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$l8UaG20JhLMXHwOWRO3WNeMzgE9XCWIDNaahfgM3pWqYqgXwGVqje"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Exists (2.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", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 160], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vDytTGGmNh9Fk5HTr7CB' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 128 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 160], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 128], ["auth_token", "vDytTGGmNh9Fk5HTr7CB"]] 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", 128], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["user_id", 160]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sQR5e944ZPNp4JSaGQzy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 160 [["account_id", 128], ["user_id", 160], ["created_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:51 UTC +00:00], ["id", 160], ["auth_token", "sQR5e944ZPNp4JSaGQzy"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) 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')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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-17 21:05: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 [["account_id", 128]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) 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  (5.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$CdL96fuAw.51Um7ZlktAYul2BeOL6l.j6EIopn8hx0bmquaIIcRSy"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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, 18 Jul 2013 02:05:52 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 161], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Craqzepn3NqcY4saSqDu' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 129 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 161], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 129], ["auth_token", "Craqzepn3NqcY4saSqDu"]] 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", 129], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["user_id", 161]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9C4kdAQQ3SM9kACmj4SX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 161 [["account_id", 129], ["user_id", 161], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 161], ["auth_token", "9C4kdAQQ3SM9kACmj4SX"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (20.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (6.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) 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"  (9.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 161]] Started GET "/v1?auth_token[]=9C4kdAQQ3SM9kACmj4SX" for 127.0.0.1 at 2013-07-17 21:05:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["9C4kdAQQ3SM9kACmj4SX"], "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::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('9C4kdAQQ3SM9kACmj4SX') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 129]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 161]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 161 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.9ms) Started GET "/v1/users/161" for 127.0.0.1 at 2013-07-17 21:05:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"161"} 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" = 161 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 129]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 161 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 161]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 161]] 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", 161]] Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 2.3ms)  (4.6ms) ROLLBACK  (0.2ms) BEGIN  (3.0ms) COMMIT  (0.1ms) BEGIN SQL (6.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$9Ymu/gFnF5Pr6AErJBJYj.b4yOo/EJfweOF8wJbWDkbwnEeOa8v4C"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Exists (10.5ms) 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", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 162], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Load (21.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'owzq6eByLLzwpZdLMKkE' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 130 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 162], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 130], ["auth_token", "owzq6eByLLzwpZdLMKkE"]] 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", 130], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["user_id", 162]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sFZQE2VApPQcMVs13SJq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 162 [["account_id", 130], ["user_id", 162], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 162], ["auth_token", "sFZQE2VApPQcMVs13SJq"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (10.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (11.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (8.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.9ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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, 18 Jul 2013 02:05:52 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$uw1QTiVByq66sIBAGwQYKeWAujdQyKmb/ERF0OV3Tz7u56cIlHkKe"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' 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, 18 Jul 2013 02:05:52 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 163], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '3uh542yytyjp2csL419m' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (11.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 131 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 163], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 131], ["auth_token", "3uh542yytyjp2csL419m"]] 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", 131], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["user_id", 163]] Cadenero::Member Load (4.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6pPw2P45zPpwHycrnHEz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 163 [["account_id", 131], ["user_id", 163], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 163], ["auth_token", "6pPw2P45zPpwHycrnHEz"]]  (0.2ms) CREATE SCHEMA "test12" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (4.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 163]] Started GET "/v1?auth_token[]=6pPw2P45zPpwHycrnHEz" for 127.0.0.1 at 2013-07-17 21:05:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["6pPw2P45zPpwHycrnHEz"], "default"=>:json} Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (15.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('6pPw2P45zPpwHycrnHEz') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 130]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 23ms (Views: 0.3ms | ActiveRecord: 19.2ms)  (7.0ms) ROLLBACK  (4.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:05:52 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$YnsInbALHQ3aer7vty/BAew6FdBBMUdH2tMBkpzpYV8ce9fVkE6N."], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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, 18 Jul 2013 02:05:52 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 164], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'asWKxnmzGQA42KMxB79h' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 132 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 164], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 132], ["auth_token", "asWKxnmzGQA42KMxB79h"]] 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", 132], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["user_id", 164]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'avNANUyxJaPws68yGToQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 164 [["account_id", 132], ["user_id", 164], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 164], ["auth_token", "avNANUyxJaPws68yGToQ"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (4.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (12.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (11.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (16.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 164]] Started GET "/v1?auth_token[]=avNANUyxJaPws68yGToQ" for 127.0.0.1 at 2013-07-17 21:05:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["avNANUyxJaPws68yGToQ"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('avNANUyxJaPws68yGToQ') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 132]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 164]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 164 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.5ms)  (12.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$CHi662P/J.hxeoQzuATWU.v4o4cpesWCCsYQrCS6zRosl/lYG0hqG"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Exists (11.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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, 18 Jul 2013 02:05:52 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 165], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00]] Cadenero::V1::Account Load (9.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Eo68yvmbRs1GZeNR8TLe' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 133 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 165], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 133], ["auth_token", "Eo68yvmbRs1GZeNR8TLe"]] 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", 133], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["user_id", 165]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MCL9UXTiLBEysi1ZG5Dd' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 165 [["account_id", 133], ["user_id", 165], ["created_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:52 UTC +00:00], ["id", 165], ["auth_token", "MCL9UXTiLBEysi1ZG5Dd"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (6.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:05:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:05:53 -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 (9.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' ORDER BY "public"."cadenero_accounts"."id" ASC 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, 18 Jul 2013 02:05:53 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$56EjPW9KtF9jpRjaGSOqiuRWuw0RXb2Pbn8pw3eat3YdrKDnsJ7Cq"], ["updated_at", Thu, 18 Jul 2013 02:05:53 UTC +00:00]] SQL (13.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 133], ["created_at", Thu, 18 Jul 2013 02:05:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:53 UTC +00:00], ["user_id", 166]] Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cP9ajygHTP52oPcVc9zT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 166 [["account_id", 133], ["user_id", 166], ["created_at", Thu, 18 Jul 2013 02:05:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:05:53 UTC +00:00], ["id", 166], ["auth_token", "cP9ajygHTP52oPcVc9zT"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 166 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 166]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 166]] 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", 166]] Completed 201 Created in 58ms (Views: 7.4ms | ActiveRecord: 37.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/166" for 127.0.0.1 at 2013-07-17 21:05:53 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"166"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.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" = 166 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 133]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 166 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 166]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 166]] 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", 166]] Completed 200 OK in 15ms (Views: 6.2ms | ActiveRecord: 5.0ms) Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (8.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 165]] Started GET "/v1?auth_token[]=MCL9UXTiLBEysi1ZG5Dd" for 127.0.0.1 at 2013-07-17 21:05:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["MCL9UXTiLBEysi1ZG5Dd"], "default"=>:json} Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (8.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('MCL9UXTiLBEysi1ZG5Dd') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 133]] Cadenero::User Load (10.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 165]] Cadenero::User Load (6.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 165 LIMIT 1 Completed 200 OK in 34ms (Views: 0.2ms | ActiveRecord: 28.0ms) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 166]] Started GET "/v1?auth_token[]=cP9ajygHTP52oPcVc9zT" for 127.0.0.1 at 2013-07-17 21:05:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["cP9ajygHTP52oPcVc9zT"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('cP9ajygHTP52oPcVc9zT') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 133]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 166]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 166 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (19.8ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (129.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$vVpziC.RbYDARRshny1u8eITxATfg04tLvNDkc8ayn98Y5Nyc1lRu"], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00]] Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 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, 18 Jul 2013 02:07:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 167], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00]] Cadenero::V1::Account Load (10.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'gpcTiUJcsNEtdrLkHyHM' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 134 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 167], ["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["id", 134], ["auth_token", "gpcTiUJcsNEtdrLkHyHM"]] 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", 134], ["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["user_id", 167]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xXN2zxYV7ygDm7qq1piz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 167 [["account_id", 134], ["user_id", 167], ["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["id", 167], ["auth_token", "xXN2zxYV7ygDm7qq1piz"]]  (0.3ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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 52ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:07: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (10.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$yMJJ1tXJpNbBOK8qcTEufujgjQHuCYGuIiIPUPrqunAwEdyFOCGGC"], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00]] 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", 134], ["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["user_id", 168]] Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f7yAzbktciiLVLtu8nW7' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 168 [["account_id", 134], ["user_id", 168], ["created_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:32 UTC +00:00], ["id", 168], ["auth_token", "f7yAzbktciiLVLtu8nW7"]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 168]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 168]] 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", 168]] Completed 201 Created in 183ms (Views: 139.4ms | ActiveRecord: 27.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/168" for 127.0.0.1 at 2013-07-17 21:07:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"168"} Cadenero::V1::Account Load (10.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (6.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" = 168 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 134]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 168]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 168]] 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", 168]] Completed 200 OK in 32ms (Views: 7.8ms | ActiveRecord: 18.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:07: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.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 168 LIMIT 1 Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 168]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 168]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 168]] Completed 201 Created in 12ms (Views: 5.9ms | 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" for 127.0.0.1 at 2013-07-17 21:07:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (11.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 168 LIMIT 1 Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 11.0ms)  (16.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$4rNV.6r7em7XeNmuzwmhb.c6PpLEbC4ipKjL0nLAgy5mU90TALt4e"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Exists (0.9ms) 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, 18 Jul 2013 02:07:33 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 169], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jLKCDqCzMUrpJiDbTdWV' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (5.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 135 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 169], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 135], ["auth_token", "jLKCDqCzMUrpJiDbTdWV"]] 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", 135], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["user_id", 169]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZrBQi7yJVnycek96prex' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 169 [["account_id", 135], ["user_id", 169], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 169], ["auth_token", "ZrBQi7yJVnycek96prex"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (11.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.3ms) 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, "updated_at" timestamp)   (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.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/sessions" for 127.0.0.1 at 2013-07-17 21:07: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 (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", 135]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 169 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 169]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 169]] 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 [["user_id", 169]] Completed 201 Created in 27ms (Views: 7.0ms | ActiveRecord: 12.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 169]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:07:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"169", "default"=>:json} Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 169 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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)  (4.5ms) ROLLBACK  (4.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$JSlSqIQ2EFyUW5vHUoTtMe6xG2nqJDML90bdHBac2woJEJAZrJcS6"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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, 18 Jul 2013 02:07:33 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 170], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kNdYyJ3ADtqPDwErF32j' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 136 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 170], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 136], ["auth_token", "kNdYyJ3ADtqPDwErF32j"]] 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", 136], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["user_id", 170]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DWPcsyzqsNEtt9xd1czM' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 170 [["account_id", 136], ["user_id", 170], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 170], ["auth_token", "DWPcsyzqsNEtt9xd1czM"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (22.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (8.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.9ms) SELECT version FROM "schema_migrations"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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-17 21:07: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (16.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", 136]] Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 170 LIMIT 1 Cadenero::Member Load (16.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 170]] Cadenero::V1::Account Load (12.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 170]] Cadenero::V1::Account Load (20.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", 170]] Completed 201 Created in 83ms (Views: 7.7ms | ActiveRecord: 68.4ms) 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 Cadenero::Member Load (4.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 170]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (10.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 170 LIMIT 1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 10.2ms)  (6.2ms) ROLLBACK  (14.8ms) BEGIN  (1.7ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$qVN.VPnJOp/RjKW/mocXJ.jGy5QcLMQoW1VcBiaj5h4MariP5Wj5."], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.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, 18 Jul 2013 02:07:33 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 171], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ESqNtAmvxecGdppKxLBc' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 137 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 171], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 137], ["auth_token", "ESqNtAmvxecGdppKxLBc"]] 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", 137], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["user_id", 171]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9LC2jaVHD86aEavLh2Eu' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 171 [["account_id", 137], ["user_id", 171], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 171], ["auth_token", "9LC2jaVHD86aEavLh2Eu"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.5ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:07: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.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", 137]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 171 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 171]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 171]] 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", 171]] Completed 201 Created in 16ms (Views: 6.1ms | ActiveRecord: 2.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 171]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:07:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"171", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 171 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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-17 21:07: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$v.tMpswBaTzdAhKANM2vc.SwLGeyVz7m663hZNwRy3lrhlTS0COyi"], ["updated_at", Thu, 18 Jul 2013 02:07: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", 137], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["user_id", 172]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dTNZd1tz9Xo1pssWdrCk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 172 [["account_id", 137], ["user_id", 172], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 172], ["auth_token", "dTNZd1tz9Xo1pssWdrCk"]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 172 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 172]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 172]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 172]] Completed 201 Created in 21ms (Views: 6.4ms | ActiveRecord: 3.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 Started GET "/v1/users/172" for 127.0.0.1 at 2013-07-17 21:07:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"172"} 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.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" = 172 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 137]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 172 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 172]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 172]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 172]] Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:07: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 172 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 172]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 172]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 172]] Completed 201 Created in 8ms (Views: 5.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  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$8wS7Kpm0OdTWx9LFf8Yrbee.LdJCs7tSOtuv9z0EuFDSSL/Amrtly"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Exists (10.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (11.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, 18 Jul 2013 02:07:33 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 173], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00]] Cadenero::V1::Account Load (38.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bDjRCZA4HUaD6Hp39DxC' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (46.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 138 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 173], ["created_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:33 UTC +00:00], ["id", 138], ["auth_token", "bDjRCZA4HUaD6Hp39DxC"]] 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", 138], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 173]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hWmTJPLoDExRNobzXRnq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 173 [["account_id", 138], ["user_id", 173], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 173], ["auth_token", "hWmTJPLoDExRNobzXRnq"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (9.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.3ms) 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, "updated_at" timestamp)  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.6ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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-17 21:07: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 (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (14.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", 138]] Completed 422 Unprocessable Entity in 23ms (Views: 0.3ms | ActiveRecord: 19.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$m4VDrXYNa32kSmk5q1fp0uTri52sm3sL11JH7YIs9Xp/m59FRGCTm"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Exists (10.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (6.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, 18 Jul 2013 02:07:34 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 174], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WKAVu8TWqaBxrGVQxRD5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (17.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 139 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 174], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 139], ["auth_token", "WKAVu8TWqaBxrGVQxRD5"]] 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", 139], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 174]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9kwPAYas2WH5xhxTBKts' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 174 [["account_id", 139], ["user_id", 174], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 174], ["auth_token", "9kwPAYas2WH5xhxTBKts"]]  (9.3ms) CREATE SCHEMA "test6" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.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, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (5.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$2s1CcrV7Nw1GnsswhpDQmOISh/j4KTUSfQqnAqRj6vpLqQ5Cq/og2"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Exists (2.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 175], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cX2f9UvSU2y4K6wXcP5q' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (4.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 140 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 175], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 140], ["auth_token", "cX2f9UvSU2y4K6wXcP5q"]] 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", 140], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 175]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PtSsyytDeJhSps4ehLAq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 175 [["account_id", 140], ["user_id", 175], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 175], ["auth_token", "PtSsyytDeJhSps4ehLAq"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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-17 21:07:34 -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.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", 139]] 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  (3.9ms) ROLLBACK  (0.4ms) BEGIN  (10.1ms) COMMIT  (7.6ms) BEGIN SQL (6.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$4wyQxJy/pWd0krAEZcAYKeYGDvCK.is63CsctA/jYht6oL5E8Emcy"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Exists (1.6ms) 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", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 176], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qoDr4qYyjtMzMbTWZuQ8' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 141 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 176], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 141], ["auth_token", "qoDr4qYyjtMzMbTWZuQ8"]] 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", 141], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 176]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '93YGxg13WQ6nodNqvnQz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 176 [["account_id", 141], ["user_id", 176], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 176], ["auth_token", "93YGxg13WQ6nodNqvnQz"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.3ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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-17 21:07: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 ('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 [["account_id", 141]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.5ms) ROLLBACK  (2.3ms) BEGIN  (1.3ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$PMiFPBHL8g/QLVX3Tzdt2O9g45p5niMqCOIWRh1v.49EIFx.Ku5wS"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Exists (4.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", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 177], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sz7hoAxxNQeNgUx5Qibp' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 142 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 177], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 142], ["auth_token", "sz7hoAxxNQeNgUx5Qibp"]] 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", 142], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 177]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cCVvbMUm5UjQWa94tzrS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 177 [["account_id", 142], ["user_id", 177], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 177], ["auth_token", "cCVvbMUm5UjQWa94tzrS"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (16.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:07:34 -0500 Cadenero::V1::Account Load (2.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  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$MO6dFGkM21aE1OCvM2Un1uX9NO5CZAuUGCvI17Zsbjdy61eE5.ip."], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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, 18 Jul 2013 02:07:34 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 178], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zDcFMr1WUkusZBehnWid' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 143 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 178], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 143], ["auth_token", "zDcFMr1WUkusZBehnWid"]] 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", 143], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 178]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PCgyUovTWQWvYshZYVUE' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 178 [["account_id", 143], ["user_id", 178], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 178], ["auth_token", "PCgyUovTWQWvYshZYVUE"]]  (0.4ms) CREATE SCHEMA "test10" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (23.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.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.4ms) 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')  (5.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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/users" for 127.0.0.1 at 2013-07-17 21:07: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 (11.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' ORDER BY "public"."cadenero_accounts"."id" ASC 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, 18 Jul 2013 02:07:34 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$WjjaLgjtJX8Y7HxJxfFcU.Gw30DDdi7bjEPBW42fCisurQxjm32fm"], ["updated_at", Thu, 18 Jul 2013 02:07: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", 143], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["user_id", 179]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ot4EEy8AasxWgryqW2Mq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 179 [["account_id", 143], ["user_id", 179], ["created_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:34 UTC +00:00], ["id", 179], ["auth_token", "ot4EEy8AasxWgryqW2Mq"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 179 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 179]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 179]] 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", 179]] Completed 201 Created in 32ms (Views: 6.0ms | ActiveRecord: 15.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/179" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"179"} 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" = 179 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 143]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 179 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 179]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 179]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 179]] Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 178]] Started GET "/v1?auth_token[]=PCgyUovTWQWvYshZYVUE" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["PCgyUovTWQWvYshZYVUE"], "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::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('PCgyUovTWQWvYshZYVUE') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 143]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 178]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 178 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.7ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 179]] Started GET "/v1?auth_token[]=ot4EEy8AasxWgryqW2Mq" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ot4EEy8AasxWgryqW2Mq"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('ot4EEy8AasxWgryqW2Mq') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 143]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 179]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 179 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (3.1ms) ROLLBACK  (1.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$6i5wWVn0cPYek0jQ9KC0KOPd9HI9oN9MItwPpFT/pGQ9yQaNA4RBa"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 180], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PRbhMHMUqzGXRhY7dJyK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 144 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 180], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 144], ["auth_token", "PRbhMHMUqzGXRhY7dJyK"]] 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", 144], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["user_id", 180]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qJEJME7bqNNBxC7xkaoQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 180 [["account_id", 144], ["user_id", 180], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 180], ["auth_token", "qJEJME7bqNNBxC7xkaoQ"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (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_auth_token" ON "cadenero_members" USING btree ("auth_token")  (5.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$spD0ZV9Jb5H37CHcRITjXuisH.QAonzGcl/1IK54QIv8srMvaUm0C"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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, 18 Jul 2013 02:07:35 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 181], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cUoZZXLxntJhTPM4ihLy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (10.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 145 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 181], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 145], ["auth_token", "cUoZZXLxntJhTPM4ihLy"]] 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", 145], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["user_id", 181]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hAzZgJya6bRp3rXzdun5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 181 [["account_id", 145], ["user_id", 181], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 181], ["auth_token", "hAzZgJya6bRp3rXzdun5"]]  (5.1ms) CREATE SCHEMA "test12" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.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 GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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) Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 181]] Started GET "/v1?auth_token[]=hAzZgJya6bRp3rXzdun5" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hAzZgJya6bRp3rXzdun5"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('hAzZgJya6bRp3rXzdun5') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 144]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.0ms)  (7.2ms) ROLLBACK  (6.3ms) BEGIN  (0.1ms) COMMIT  (0.7ms) BEGIN SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$ld1d6T/mc88SHx9YORjT3.aIX41bqt.d6X3X7M4j889gbiUfDLEfG"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 182], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QUfLLMr5BWJ3Q3uxWNEL' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 146 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 182], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 146], ["auth_token", "QUfLLMr5BWJ3Q3uxWNEL"]] 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", 146], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["user_id", 182]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CdGzbgLUpBzp2fydsFvN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (7.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 182 [["account_id", 146], ["user_id", 182], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 182], ["auth_token", "CdGzbgLUpBzp2fydsFvN"]]  (0.3ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (5.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (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 ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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) Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 182]] Started GET "/v1?auth_token[]=CdGzbgLUpBzp2fydsFvN" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["CdGzbgLUpBzp2fydsFvN"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('CdGzbgLUpBzp2fydsFvN') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 146]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 182]] Cadenero::User Load (4.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 182 LIMIT 1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 6.4ms)  (4.9ms) ROLLBACK  (2.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$V4nyCrgDcROy5khfjS8Qneql9ezXSq30YDNhlflhk6aHIqjdu.A0m"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Exists (3.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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, 18 Jul 2013 02:07:35 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 183], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SP5yHxQGjSqBtjvrTZuh' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 147 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 183], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 147], ["auth_token", "SP5yHxQGjSqBtjvrTZuh"]] 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", 147], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["user_id", 183]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sf3sYQiT91MKWT5EpMyD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 183 [["account_id", 147], ["user_id", 183], ["created_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:07:35 UTC +00:00], ["id", 183], ["auth_token", "sf3sYQiT91MKWT5EpMyD"]]  (0.9ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (4.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (7.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (8.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (5.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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:07: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) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 183]] Started GET "/v1?auth_token[]=sf3sYQiT91MKWT5EpMyD" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["sf3sYQiT91MKWT5EpMyD"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('sf3sYQiT91MKWT5EpMyD') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 147]] Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 183]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 183 LIMIT 1 Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 4.7ms) Started GET "/v1/users/183" for 127.0.0.1 at 2013-07-17 21:07:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"183"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (8.8ms) ROLLBACK  (3.0ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (60.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$JXa.SIm9k7tivedC4rV.oOmh9dgcUPuOBrIOVkRLnNsry0wWit.CG"], ["updated_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00]] Cadenero::V1::Account Exists (8.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (5.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, 18 Jul 2013 02:08:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 184], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xL5c6X7oPkeSzN6ZWqJ7' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 148 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 184], ["created_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["id", 148], ["auth_token", "xL5c6X7oPkeSzN6ZWqJ7"]] 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", 148], ["created_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["user_id", 184]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Pktxqq6sy1RFdmY67cWr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 184 [["account_id", 148], ["user_id", 184], ["created_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:08:59 UTC +00:00], ["id", 184], ["auth_token", "Pktxqq6sy1RFdmY67cWr"]]  (1.3ms) CREATE SCHEMA "test1" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (9.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (10.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (8.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:08:59 -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 (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 [["account_id", 148]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 184 LIMIT 1 Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 184]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 184]] 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", 184]] Completed 201 Created in 135ms (Views: 36.4ms | ActiveRecord: 10.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 Cadenero::Member Load (8.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 184]] Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"184", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 184 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:09:00 -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 (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$6yVuXR0HQffRfrgEInw3gOCQokhR7NVMOXU.fsb/DY.hYo5OinlNm"], ["updated_at", Thu, 18 Jul 2013 02:09: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", 148], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 185]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ijdC4PTWT8pYzCegsxTs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 185 [["account_id", 148], ["user_id", 185], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 185], ["auth_token", "ijdC4PTWT8pYzCegsxTs"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 185 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 185]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 185]] 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", 185]] Completed 201 Created in 27ms (Views: 6.4ms | ActiveRecord: 7.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/185" for 127.0.0.1 at 2013-07-17 21:09:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"185"} 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.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" = 185 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 148]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 185 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 185]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 185]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 185]] Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09:00 -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" = 185 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 185]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 185]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 185]] Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$0iqrRA3ordDYw3LaaTx0Fea1kv.2ZJ.KmGxAXQx3dsCjCpHDSr.R2"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] 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, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 186], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '43r7m5j2qeVxZatUdPJq' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 149 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 186], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 149], ["auth_token", "43r7m5j2qeVxZatUdPJq"]] 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", 149], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 186]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Sm8zpcTR4YzywLD4bsZN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 186 [["account_id", 149], ["user_id", 186], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 186], ["auth_token", "Sm8zpcTR4YzywLD4bsZN"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (17.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (11.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (11.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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/users" for 127.0.0.1 at 2013-07-17 21:09:00 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$h90P6VyOOgUaFInC76ocEemJ4HTn2K4/hTPCPEQilJlZGH9ulutkS"], ["updated_at", Thu, 18 Jul 2013 02:09: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", 149], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 187]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n59sSdAsyEsoSPhtmHR1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 187 [["account_id", 149], ["user_id", 187], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 187], ["auth_token", "n59sSdAsyEsoSPhtmHR1"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 187 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 187]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 187]] 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", 187]] Completed 201 Created in 22ms (Views: 6.3ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (2.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/187" for 127.0.0.1 at 2013-07-17 21:09:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"187"} 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" = 187 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 149]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 187 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 187]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 187]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 187]] Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09:00 -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" = 187 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 187]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 187]] 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", 187]] Completed 201 Created in 10ms (Views: 7.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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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" = 187 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$MrCFV1iF0QstItP9e2sROehD.sizlhxyfOmxJXAIxHpah2FgDbfuS"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 188], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kC9aHmizhQaCM7zitq3S' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 150 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 188], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 150], ["auth_token", "kC9aHmizhQaCM7zitq3S"]] 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", 150], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 188]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'owz5Xfaxud8Hsf9pUy2i' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 188 [["account_id", 150], ["user_id", 188], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 188], ["auth_token", "owz5Xfaxud8Hsf9pUy2i"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (16.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09:00 -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", 150]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 188 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 188]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 188]] 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", 188]] Completed 201 Created in 16ms (Views: 6.4ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 188]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09:00 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"188", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 188 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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)  (3.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$wmhisiwhJpihxkow3FgTCOsAViqCpYAMZUpx/8PTS5/lEN9t.lv/K"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 189], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '3QszaQx3PDSNjhjKRyWs' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 151 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 189], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 151], ["auth_token", "3QszaQx3PDSNjhjKRyWs"]] 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", 151], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 189]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jvSPrzVgQEqpghy3pSkv' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 189 [["account_id", 151], ["user_id", 189], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 189], ["auth_token", "jvSPrzVgQEqpghy3pSkv"]]  (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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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-17 21:09: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.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", 151]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 189 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 189]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 189]] 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", 189]] Completed 201 Created in 15ms (Views: 6.1ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 189]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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" = 189 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$jaDoqMnvZZv2BfGgsedozOpTr.TZAi4uohMJ40GbGkHKCHLfJCGh2"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 190], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jVTRZCELKQNXugijLKbm' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 152 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 190], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 152], ["auth_token", "jVTRZCELKQNXugijLKbm"]] 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", 152], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 190]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yQzk3Hqz2ZBdg4SqUvRp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 190 [["account_id", 152], ["user_id", 190], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 190], ["auth_token", "yQzk3Hqz2ZBdg4SqUvRp"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09:00 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$ZLKC2gyyBOF3rtcyAFjRe.aHEuqA69TxHguC2378ZldgRL67.vDii"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 191], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rBaMz2MiCBHpxms8grMW' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 153 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 191], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 153], ["auth_token", "rBaMz2MiCBHpxms8grMW"]] 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", 153], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 191]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xnz7788tnGpy9XiVdE3r' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 191 [["account_id", 153], ["user_id", 191], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 191], ["auth_token", "xnz7788tnGpy9XiVdE3r"]]  (0.2ms) CREATE SCHEMA "test6" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.8ms) 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, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.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 GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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-17 21:09: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.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", 153]] 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  (2.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$VAkfmSGoBbDcxcgi6a7EXO5Ld0dQ7ERndDLz.2PL./tLkMQgVRLSe"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] 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, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 192], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VsuxMmHjMQqGyiBnXKRs' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 154 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 192], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 154], ["auth_token", "VsuxMmHjMQqGyiBnXKRs"]] 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", 154], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 192]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ptnyzyMzGb7mnvPhxVyL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 192 [["account_id", 154], ["user_id", 192], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 192], ["auth_token", "ptnyzyMzGb7mnvPhxVyL"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$svEQom8cWqK5kRbdbBZzmuQFZDmsO8etOvnP1tySPC.7LvU05sUQO"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.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, 18 Jul 2013 02:09:00 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 193], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'aXsyvvQoSP5L79Mufisf' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 155 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 193], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 155], ["auth_token", "aXsyvvQoSP5L79Mufisf"]] 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", 155], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["user_id", 193]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gz9NCXaBxPmHuLF8RD4x' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 193 [["account_id", 155], ["user_id", 193], ["created_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:00 UTC +00:00], ["id", 193], ["auth_token", "gz9NCXaBxPmHuLF8RD4x"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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-17 21:09: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.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 [["account_id", 154]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$w.y9qSM/ussfEyuVcTmPluD2UIo6H8jPbNf2KcLEThrQipdHnMple"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 194], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SASrmvqKxqRzxRy6WyKU' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 156 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 194], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 156], ["auth_token", "SASrmvqKxqRzxRy6WyKU"]] 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", 156], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 194]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oDqEPq3hJLBQsyokRARD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 194 [["account_id", 156], ["user_id", 194], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 194], ["auth_token", "oDqEPq3hJLBQsyokRARD"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (22.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:09: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.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", 156]] 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  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$OJWmzyEa2OnXIdExjQzmR.lsvR2nkw6uErwJGjW3vN0z4k5QU7DTO"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 195], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uD9bJjq4naCxikeM5TtD' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 157 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 195], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 157], ["auth_token", "uD9bJjq4naCxikeM5TtD"]] 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", 157], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 195]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PfqpGcz24sb9CryXXjTz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 195 [["account_id", 157], ["user_id", 195], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 195], ["auth_token", "PfqpGcz24sb9CryXXjTz"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (5.4ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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, "updated_at" timestamp)  (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 ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 195]] Started GET "/v1?auth_token[]=PfqpGcz24sb9CryXXjTz" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["PfqpGcz24sb9CryXXjTz"], "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::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('PfqpGcz24sb9CryXXjTz') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 157]] Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 195]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 195 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.8ms) Started GET "/v1/users/195" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"195"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$2QHZRrx.kAQ5Bw2DPkAJdOYpfBhibjY6CmEddo9ter/AKnmQ5CaTm"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Exists (1.0ms) 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", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 196], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MdrjecJyc5q96mydSDjF' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 158 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 196], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 158], ["auth_token", "MdrjecJyc5q96mydSDjF"]] 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", 158], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 196]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2uvjHqmzkMepys4pqqYk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 196 [["account_id", 158], ["user_id", 196], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 196], ["auth_token", "2uvjHqmzkMepys4pqqYk"]]  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (18.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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/users" for 127.0.0.1 at 2013-07-17 21:09: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$86Hs8bRoW4baJtzMw9iLm.bNpSkwzX88xkv6o0nY6dt4/Eqsd3fne"], ["updated_at", Thu, 18 Jul 2013 02:09: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", 158], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 197]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vMLuUNiqPdpx1JLKqJFU' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 197 [["account_id", 158], ["user_id", 197], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 197], ["auth_token", "vMLuUNiqPdpx1JLKqJFU"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 197 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 197]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 197]] 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", 197]] Completed 201 Created in 23ms (Views: 6.8ms | 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 Started GET "/v1/users/197" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"197"} 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.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" = 197 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 158]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 197 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 197]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 197]] 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", 197]] Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 196]] Started GET "/v1?auth_token[]=2uvjHqmzkMepys4pqqYk" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["2uvjHqmzkMepys4pqqYk"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('2uvjHqmzkMepys4pqqYk') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 158]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 196]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 196 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.5ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 197]] Started GET "/v1?auth_token[]=vMLuUNiqPdpx1JLKqJFU" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["vMLuUNiqPdpx1JLKqJFU"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('vMLuUNiqPdpx1JLKqJFU') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 158]] Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 197]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 197 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.1ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$XAEkIb3krbHZnrOpseOTzeZ2REpWlavmSecAJe/4gWvUy.pBEJfQG"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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, 18 Jul 2013 02:09:01 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 198], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XnZemycujhoyoriyqM4r' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 159 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 198], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 159], ["auth_token", "XnZemycujhoyoriyqM4r"]] 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", 159], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 198]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7BTdJMZzQR5xpnbXcXps' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 198 [["account_id", 159], ["user_id", 198], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 198], ["auth_token", "7BTdJMZzQR5xpnbXcXps"]]  (0.2ms) CREATE SCHEMA "test12" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$NxBDNWIxe.aUp7RTcuHRwOE83OiDDE6PWK/Xz1NF6eS1wdL8EXKfO"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 199], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'YBtvSDcRBsGNP2KNvCSz' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 160 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 199], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 160], ["auth_token", "YBtvSDcRBsGNP2KNvCSz"]] 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", 160], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 199]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yjyvayVQa3jogYyVJVAQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 199 [["account_id", 160], ["user_id", 199], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 199], ["auth_token", "yjyvayVQa3jogYyVJVAQ"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 199]] Started GET "/v1?auth_token[]=yjyvayVQa3jogYyVJVAQ" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["yjyvayVQa3jogYyVJVAQ"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('yjyvayVQa3jogYyVJVAQ') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 159]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:09:01 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$.Mjmqyxo6tEONVxfDdhKGuRfbrye.M81Nr1RJvEN3t4pB.7ssxvJu"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 200], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'n5ZtytD65zqpp1xqy5q6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (6.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 161 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 200], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 161], ["auth_token", "n5ZtytD65zqpp1xqy5q6"]] 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", 161], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["user_id", 200]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YBdCXy3s6yWUe9GDBS1T' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 200 [["account_id", 161], ["user_id", 200], ["created_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:09:01 UTC +00:00], ["id", 200], ["auth_token", "YBdCXy3s6yWUe9GDBS1T"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:09: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.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 200]] Started GET "/v1?auth_token[]=YBdCXy3s6yWUe9GDBS1T" for 127.0.0.1 at 2013-07-17 21:09:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["YBdCXy3s6yWUe9GDBS1T"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('YBdCXy3s6yWUe9GDBS1T') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 161]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 200]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 200 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.7ms)  (3.0ms) ROLLBACK  (10.4ms) BEGIN  (1.9ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:11:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$wFarF6JWIqL1gH/pIZvqH.dWZ8qkmU8zxlItkeyI7IqGZmEIxu2UO"], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00]] Cadenero::V1::Account Exists (10.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (14.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, 18 Jul 2013 02:11:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 201], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00]] Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BU7NrR16MKwJNdpKZwSX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (9.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 162 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 201], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["id", 162], ["auth_token", "BU7NrR16MKwJNdpKZwSX"]] SQL (10.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 162], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["user_id", 201]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QssQVeYosJzAdwQ7yzUs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (20.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 201 [["account_id", 162], ["user_id", 201], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["id", 201], ["auth_token", "QssQVeYosJzAdwQ7yzUs"]]  (0.5ms) CREATE SCHEMA "test1" SQL (3.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (13.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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 70ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (14.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user1@example.com' LIMIT 1 [["account_id", 162]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 201 LIMIT 1 Cadenero::Member Load (4.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 201]] Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 201]] Cadenero::V1::Account Load (9.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", 201]] Completed 201 Created in 133ms (Views: 80.6ms | ActiveRecord: 34.3ms) Cadenero::V1::Account Load (6.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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 201]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11:27 -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" = 201 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (14.1ms) ROLLBACK  (2.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$aBCc5GcDqyagaDzA.KWBxeF/EgnkMYIGVe7Lk5ArvhWu7BNJTABza"], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 202], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'no36ZzjGVygE8GWNwPUz' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 163 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 202], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["id", 163], ["auth_token", "no36ZzjGVygE8GWNwPUz"]] 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", 163], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["user_id", 202]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tNy1oqDugwRa2UaGzzUg' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 202 [["account_id", 163], ["user_id", 202], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["id", 202], ["auth_token", "tNy1oqDugwRa2UaGzzUg"]]  (0.2ms) CREATE SCHEMA "test2" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (24.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.2ms) SELECT version FROM "schema_migrations"  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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/users" for 127.0.0.1 at 2013-07-17 21:11:27 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$rk1yr43zrIKPwtnmTLOJa.ZNuQXEv.l.xr2tz.KRgf7YcdHLomHI2"], ["updated_at", Thu, 18 Jul 2013 02:11: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", 163], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["user_id", 203]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yJitwxSLc81b51yUgUXQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 203 [["account_id", 163], ["user_id", 203], ["created_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:27 UTC +00:00], ["id", 203], ["auth_token", "yJitwxSLc81b51yUgUXQ"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 203 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 203]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 203]] 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", 203]] Completed 201 Created in 29ms (Views: 6.3ms | ActiveRecord: 9.2ms) Cadenero::V1::Account Load (1.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/203" for 127.0.0.1 at 2013-07-17 21:11:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"203"} Cadenero::V1::Account Load (1.1ms) 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" = 203 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 163]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 203 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 203]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 203]] 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", 203]] Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 4.2ms) Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:28 -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" = 203 LIMIT 1 Cadenero::Member Load (10.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 203]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 203]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 203]] Completed 201 Created in 21ms (Views: 5.8ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11:28 -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" = 203 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$MGTR3O3fnwwFQVFa5Q4AfuZBUEYQGSObjJL4VFubPr2NOehS8YCYS"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Exists (3.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (6.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, 18 Jul 2013 02:11:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 204], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Load (10.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GyK1rWadxCiJrgLm3Qto' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (11.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 164 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 204], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 164], ["auth_token", "GyK1rWadxCiJrgLm3Qto"]] 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", 164], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["user_id", 204]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wH7p5RqGKBhYaDzsijXt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 204 [["account_id", 164], ["user_id", 204], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 204], ["auth_token", "wH7p5RqGKBhYaDzsijXt"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (22.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (7.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11: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 (3.0ms) 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", 164]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 204 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 204]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 204]] 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", 204]] Completed 201 Created in 24ms (Views: 6.5ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (4.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 204]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"204", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 204 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (12.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$RN/pgPqi3M9BLsJ35TraA.slBuGha4DuQrEWIZocPJLLb0Z0L/KBi"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 205], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5R2is8R8U7tCztwGdgPU' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 165 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 205], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 165], ["auth_token", "5R2is8R8U7tCztwGdgPU"]] 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", 165], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["user_id", 205]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'H5dmRXfCujyBaC2DioPN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 205 [["account_id", 165], ["user_id", 205], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 205], ["auth_token", "H5dmRXfCujyBaC2DioPN"]]  (0.2ms) CREATE SCHEMA "test4" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (25.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (14.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, "updated_at" timestamp, "auth_token" character varying(255))   (6.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:28 -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 (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" = 'user4@example.com' LIMIT 1 [["account_id", 165]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 205 LIMIT 1 Cadenero::Member Load (7.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 205]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 205]] Cadenero::V1::Account Load (7.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", 205]] Completed 201 Created in 45ms (Views: 9.5ms | ActiveRecord: 28.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 205]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"205", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 205 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:11:28 -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' ORDER BY "public"."cadenero_accounts"."id" ASC 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, 18 Jul 2013 02:11:28 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$VFMbI.njVNXWbLunLb3ZkeuOlSaOlJdHR0G3aScamj1IDPcv9FdBu"], ["updated_at", Thu, 18 Jul 2013 02:11:28 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", 165], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["user_id", 206]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PN1KyrvEqJXxae2rzoTd' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 206 [["account_id", 165], ["user_id", 206], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 206], ["auth_token", "PN1KyrvEqJXxae2rzoTd"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 206 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 206]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 206]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 206]] Completed 201 Created in 26ms (Views: 6.5ms | 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/206" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"206"} Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (9.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" = 206 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 165]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 206 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 206]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 206]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 206]] Completed 200 OK in 31ms (Views: 6.2ms | ActiveRecord: 20.7ms) Cadenero::User Load (10.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:28 -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" = 206 LIMIT 1 Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 206]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 206]] 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 [["user_id", 206]] Completed 201 Created in 17ms (Views: 5.8ms | ActiveRecord: 9.3ms) 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  (5.7ms) ROLLBACK  (4.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$FxNEO0ORmsSDvnN4rDtpSuJ2LCbsEoXESi4vYOWDgSWzBWS0YUIMu"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Exists (1.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, 18 Jul 2013 02:11:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 207], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CkAzaN1LxsJeY7pxYMWQ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 166 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 207], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 166], ["auth_token", "CkAzaN1LxsJeY7pxYMWQ"]] 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", 166], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["user_id", 207]] Cadenero::Member Load (4.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yw3KeGpuMDax3e7d5JwX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 207 [["account_id", 166], ["user_id", 207], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 207], ["auth_token", "Yw3KeGpuMDax3e7d5JwX"]]  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.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, "updated_at" timestamp, "auth_token" character varying(255))  (7.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (8.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (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"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 166]] 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  (3.0ms) ROLLBACK  (2.9ms) BEGIN  (1.1ms) COMMIT  (0.2ms) BEGIN SQL (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$5UiyJTDWeBoqKxMsM4T3SObJ5KJmsyX.sF1Qg0WdzMFtovCjV.I8S"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (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, 18 Jul 2013 02:11:28 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 208], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'F3bdcdsPD8GuP4BXqYed' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 167 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 208], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 167], ["auth_token", "F3bdcdsPD8GuP4BXqYed"]] 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", 167], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["user_id", 208]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RvoAepEJmjqb6hDU1sEb' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 208 [["account_id", 167], ["user_id", 208], ["created_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:28 UTC +00:00], ["id", 208], ["auth_token", "RvoAepEJmjqb6hDU1sEb"]]  (0.2ms) CREATE SCHEMA "test6" SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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-17 21:11: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 (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 167]] Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 2.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  (2.7ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN 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, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$96mEozwQ9oE.naHSNNcDyuvsRagSLKqXQHgPlBMzzT0WqGBTcyiG."], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 209], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UyjyEc43wvs4LLAU6tXZ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 168 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 209], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 168], ["auth_token", "UyjyEc43wvs4LLAU6tXZ"]] 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", 168], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 209]] Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'otZMqjstwWvkqUsxDmvS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (91.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 209 [["account_id", 168], ["user_id", 209], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 209], ["auth_token", "otZMqjstwWvkqUsxDmvS"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (8.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.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 ('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') 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, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$4.ouf48b0L3Tz0DkPFFTR.nDsSRCfsTC55odUKBrRMQciLE.G1KS2"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.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, 18 Jul 2013 02:11:29 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 210], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'muNwTpNqs7ZmaztyoTh5' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 169 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 210], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 169], ["auth_token", "muNwTpNqs7ZmaztyoTh5"]] 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", 169], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 210]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QPGzjg8kfwqsfxV2RUKq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 210 [["account_id", 169], ["user_id", 210], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 210], ["auth_token", "QPGzjg8kfwqsfxV2RUKq"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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-17 21:11:29 -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 [["account_id", 168]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$czamaoxQfSxUr.tHEKhhzegm9P3tWMlBOBCJUvDjHv5CIxhqDwnlG"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 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, 18 Jul 2013 02:11:29 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 211], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '91gRvumjJCcWydcEeAbG' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 170 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 211], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 170], ["auth_token", "91gRvumjJCcWydcEeAbG"]] 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", 170], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 211]] Cadenero::Member Load (7.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cmzagqoo1PLKyf3AxsCF' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 211 [["account_id", 170], ["user_id", 211], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 211], ["auth_token", "cmzagqoo1PLKyf3AxsCF"]]  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (19.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (5.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (8.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (16.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:11:29 -0500 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  (13.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$1kBQ1CVQcUx0H3PngzXsT.nBLd50e.HQdGyBiklEFTpst58CjbTCy"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.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, 18 Jul 2013 02:11:29 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 212], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LAD8MeDB9my1KBAETkCB' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (5.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 171 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 212], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 171], ["auth_token", "LAD8MeDB9my1KBAETkCB"]] 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", 171], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 212]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wrxnUPdPLpQwy2xbvym2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 212 [["account_id", 171], ["user_id", 212], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 212], ["auth_token", "wrxnUPdPLpQwy2xbvym2"]]  (0.2ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (12.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (11.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (7.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.3ms) 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, "updated_at" timestamp)  (1.0ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 212]] Started GET "/v1?auth_token[]=wrxnUPdPLpQwy2xbvym2" for 127.0.0.1 at 2013-07-17 21:11:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["wrxnUPdPLpQwy2xbvym2"], "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::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('wrxnUPdPLpQwy2xbvym2') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 171]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 212]] Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 212 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.3ms)  (3.6ms) ROLLBACK  (3.6ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$TmcwuM65pgkU8wBRAupcOOVYxKDmySmTWuUn5X9uui2K8znCZ7AgW"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 213], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zCKqapWMya7xgxzWhsLL' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 172 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 213], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 172], ["auth_token", "zCKqapWMya7xgxzWhsLL"]] 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", 172], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 213]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qpG1yZRmM6ngzLpfXzuK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 213 [["account_id", 172], ["user_id", 213], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 213], ["auth_token", "qpG1yZRmM6ngzLpfXzuK"]]  (2.0ms) CREATE SCHEMA "test11" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (11.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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/users" for 127.0.0.1 at 2013-07-17 21:11:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$3u/Dd3ntnvaNNF636H8JpOE6qWTKu4KpABC9AixYhwYf80yKpCVe."], ["updated_at", Thu, 18 Jul 2013 02:11: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", 172], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 214]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qdRLdSri8KmfbSmDeSME' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 214 [["account_id", 172], ["user_id", 214], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 214], ["auth_token", "qdRLdSri8KmfbSmDeSME"]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 214 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 214]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 214]] 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", 214]] Completed 201 Created in 24ms (Views: 9.3ms | 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/214" for 127.0.0.1 at 2013-07-17 21:11:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"214"} 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.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" = 214 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 172]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 214 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 214]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 214]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 214]] Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 213]] Started GET "/v1?auth_token[]=qpG1yZRmM6ngzLpfXzuK" for 127.0.0.1 at 2013-07-17 21:11:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["qpG1yZRmM6ngzLpfXzuK"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('qpG1yZRmM6ngzLpfXzuK') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 172]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 213]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 213 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.4ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 214]] Started GET "/v1?auth_token[]=qdRLdSri8KmfbSmDeSME" for 127.0.0.1 at 2013-07-17 21:11:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["qdRLdSri8KmfbSmDeSME"], "default"=>:json} Cadenero::V1::Account Load (6.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (2.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('qdRLdSri8KmfbSmDeSME') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 172]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 214]] Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 214 LIMIT 1 Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 10.2ms)  (4.9ms) ROLLBACK  (5.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$5TlJ3BlCn5dzD78QH1qtweGuL8nMy6UMEDQYuCWs4QZXYs8p67u1i"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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, 18 Jul 2013 02:11:29 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 215], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00]] Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'v3QdqyovDqVkuKsx1UqK' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 173 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 215], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 173], ["auth_token", "v3QdqyovDqVkuKsx1UqK"]] 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", 173], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["user_id", 215]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HZ3zLKGHBWz8Fgvv8bq8' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 215 [["account_id", 173], ["user_id", 215], ["created_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:29 UTC +00:00], ["id", 215], ["auth_token", "HZ3zLKGHBWz8Fgvv8bq8"]]  (2.0ms) CREATE SCHEMA "test12" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (12.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (8.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (6.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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') 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, 18 Jul 2013 02:11:30 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$Ve3gO4134yAEeIxlmJbt/.Va53CuOiYfGjg38kHC2ksflgW3DfESG"], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00]] Cadenero::V1::Account Exists (6.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 216], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CAZMFENcTb6xpG2ghFPQ' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 174 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 216], ["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["id", 174], ["auth_token", "CAZMFENcTb6xpG2ghFPQ"]] 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", 174], ["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["user_id", 216]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hXqCPbntRR8T1quBCExZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (3.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 216 [["account_id", 174], ["user_id", 216], ["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["id", 216], ["auth_token", "hXqCPbntRR8T1quBCExZ"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (7.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.9ms) 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, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 216]] Started GET "/v1?auth_token[]=hXqCPbntRR8T1quBCExZ" for 127.0.0.1 at 2013-07-17 21:11:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hXqCPbntRR8T1quBCExZ"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('hXqCPbntRR8T1quBCExZ') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 173]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (8.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (4.7ms) BEGIN 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, 18 Jul 2013 02:11:30 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$BSNcJXQv6s.WBN7IGuAUWudiB7n0LNwCWOfD97czfXUPqR9GtfDw6"], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00]] Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' 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, 18 Jul 2013 02:11:30 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 217], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TXV2whcsz7kBZYBemExW' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 175 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 217], ["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["id", 175], ["auth_token", "TXV2whcsz7kBZYBemExW"]] 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", 175], ["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["user_id", 217]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'facXvY1R9poyACeLjuKm' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (24.1ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 217 [["account_id", 175], ["user_id", 217], ["created_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:11:30 UTC +00:00], ["id", 217], ["auth_token", "facXvY1R9poyACeLjuKm"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (4.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (6.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:11: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) Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 217]] Started GET "/v1?auth_token[]=facXvY1R9poyACeLjuKm" for 127.0.0.1 at 2013-07-17 21:11:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["facXvY1R9poyACeLjuKm"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('facXvY1R9poyACeLjuKm') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 175]] Cadenero::User Load (9.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 217]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 217 LIMIT 1 Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 12.4ms) Started GET "/v1/users/217" for 127.0.0.1 at 2013-07-17 21:11:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"217"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/v1/users/217?auth_token[]=facXvY1R9poyACeLjuKm" for 127.0.0.1 at 2013-07-17 21:11:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["facXvY1R9poyACeLjuKm"], "default"=>:json, "id"=>"217"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (3.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('facXvY1R9poyACeLjuKm') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 175]] Cadenero::User Load (4.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 217]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 217 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 175]] Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 217 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 217]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 217]] 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", 217]] Completed 200 OK in 31ms (Views: 9.1ms | ActiveRecord: 12.0ms)  (5.5ms) ROLLBACK  (10.2ms) BEGIN  (0.2ms) COMMIT  (10.0ms) BEGIN SQL (12.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$o.icM.WGanPHAzVN7usBre0ETw6gQpBN6QBDDe/sdj8gtH69OCzNy"], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00]] Cadenero::V1::Account Exists (4.9ms) 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", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 218], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dGvPxfqDUK9GFXaZs776' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 176 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 218], ["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["id", 176], ["auth_token", "dGvPxfqDUK9GFXaZs776"]] SQL (17.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 176], ["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["user_id", 218]] Cadenero::Member Load (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vu5xGZMc8sqfAyayxzaR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (10.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 218 [["account_id", 176], ["user_id", 218], ["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["id", 218], ["auth_token", "vu5xGZMc8sqfAyayxzaR"]]  (3.7ms) CREATE SCHEMA "test1" SQL (6.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (7.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.3ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.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') SQL (7.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$Hz7KR/edtd7qUcTacTKhFulmuprhgpw.ra0JGcmBaQWo0HwSEdOxO"], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00]] Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (12.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, 18 Jul 2013 02:13:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 219], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pXyaTYMqzrhETaxpiZFx' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 177 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 219], ["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["id", 177], ["auth_token", "pXyaTYMqzrhETaxpiZFx"]] 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", 177], ["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["user_id", 219]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '57NQ11jyhmzTGZCxVAjx' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 219 [["account_id", 177], ["user_id", 219], ["created_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:35 UTC +00:00], ["id", 219], ["auth_token", "57NQ11jyhmzTGZCxVAjx"]]  (0.2ms) CREATE SCHEMA "test2" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.9ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) 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 ('20130715174857')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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 40ms (Views: 0.4ms | ActiveRecord: 0.0ms) Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 219]] Started GET "/v1?auth_token[]=57NQ11jyhmzTGZCxVAjx" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["57NQ11jyhmzTGZCxVAjx"], "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('57NQ11jyhmzTGZCxVAjx') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 176]] Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (9.6ms) ROLLBACK  (1.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$L6y4pbm3PhYie0qM5TNkLes5JwphkWih69ZUW4JyzkrCy44HOQHxC"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 220], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'f6W2tqrS6HLJHF4g7k9z' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 178 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 220], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 178], ["auth_token", "f6W2tqrS6HLJHF4g7k9z"]] 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", 178], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["user_id", 220]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e7zpWKHbsbyyeEyMDFkq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 220 [["account_id", 178], ["user_id", 220], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 220], ["auth_token", "e7zpWKHbsbyyeEyMDFkq"]]  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (30.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) 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')  (12.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-17 21:13: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/users" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (12.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$YaCQgwtntFYkX8oG.2nj0Oh/035S9.P7/pcglECg.rSYLyo1jfo2e"], ["updated_at", Thu, 18 Jul 2013 02:13: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", 178], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["user_id", 221]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's5nxsqeqHz3jcsxuxNgd' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 221 [["account_id", 178], ["user_id", 221], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 221], ["auth_token", "s5nxsqeqHz3jcsxuxNgd"]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 221]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 221]] 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", 221]] Completed 201 Created in 155ms (Views: 41.4ms | ActiveRecord: 17.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/221" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"221"} 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 (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 AND "public"."cadenero_users"."id" = 221 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 178]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 221]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 221]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 221]] Completed 200 OK in 20ms (Views: 6.7ms | ActiveRecord: 7.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 220]] Started GET "/v1?auth_token[]=e7zpWKHbsbyyeEyMDFkq" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["e7zpWKHbsbyyeEyMDFkq"], "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('e7zpWKHbsbyyeEyMDFkq') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 178]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 220]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 220 LIMIT 1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 3.6ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 221]] Started GET "/v1?auth_token[]=s5nxsqeqHz3jcsxuxNgd" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["s5nxsqeqHz3jcsxuxNgd"], "default"=>:json} Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('s5nxsqeqHz3jcsxuxNgd') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 178]] Cadenero::User Load (7.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 221]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 221 LIMIT 1 Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 12.6ms)  (6.6ms) ROLLBACK  (2.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$7hproHPhKqm08qmaeaqSE.yxs9aMO09fD4qKgAUBFOCHAeIlMTl4W"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (23.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, 18 Jul 2013 02:13:36 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 222], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Load (17.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ibyRssh3EMTpMhu5ob2a' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (9.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 179 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 222], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 179], ["auth_token", "ibyRssh3EMTpMhu5ob2a"]] 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", 179], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["user_id", 222]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FyRAVGAySiXtQBFj6eYy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 222 [["account_id", 179], ["user_id", 222], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 222], ["auth_token", "FyRAVGAySiXtQBFj6eYy"]]  (0.3ms) CREATE SCHEMA "test4" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (0.8ms) 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, "updated_at" timestamp)  (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.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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) Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 222]] Started GET "/v1?auth_token[]=FyRAVGAySiXtQBFj6eYy" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FyRAVGAySiXtQBFj6eYy"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('FyRAVGAySiXtQBFj6eYy') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 179]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 222]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 222 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.6ms)  (4.0ms) ROLLBACK  (0.7ms) BEGIN  (4.4ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$.t5LOZ/Br6gBiQsmOzV7uOfSoqkF2YXkpAoCG8/l4zLfkXpwIzBgq"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.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, 18 Jul 2013 02:13:36 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 223], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MFL4bMbncox5m5SMa3TV' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 180 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 223], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 180], ["auth_token", "MFL4bMbncox5m5SMa3TV"]] 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", 180], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["user_id", 223]] Cadenero::Member Load (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yR19jPX8d3zFs4kYswCZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (6.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 223 [["account_id", 180], ["user_id", 223], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 223], ["auth_token", "yR19jPX8d3zFs4kYswCZ"]]  (0.2ms) CREATE SCHEMA "test5" 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (6.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 223]] Started GET "/v1?auth_token[]=yR19jPX8d3zFs4kYswCZ" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["yR19jPX8d3zFs4kYswCZ"], "default"=>:json} Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('yR19jPX8d3zFs4kYswCZ') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 180]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 223]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 223 LIMIT 1 Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 4.5ms) Started GET "/v1/users/223" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"223"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/223?auth_token[]=yR19jPX8d3zFs4kYswCZ" for 127.0.0.1 at 2013-07-17 21:13:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["yR19jPX8d3zFs4kYswCZ"], "default"=>:json, "id"=>"223"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_members"."auth_token" IN ('yR19jPX8d3zFs4kYswCZ') ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 [["account_id", 180]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["id", 223]] 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.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" = 223 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 180]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 223 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 223]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 223]] Cadenero::V1::Account Load (5.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", 223]] Completed 200 OK in 25ms (Views: 7.3ms | ActiveRecord: 7.9ms)  (5.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$AXbegZPNe.SY3mB3jjLu4.0SXtjdW1uu82oOGDrbRGI5Q.N1sm0QK"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Exists (2.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", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 224], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CzssUUHqTfCL9amFgz1j' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 181 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 224], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 181], ["auth_token", "CzssUUHqTfCL9amFgz1j"]] 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", 181], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["user_id", 224]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sJDpQFYcDyqbuUdEx7XQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (2.0ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 224 [["account_id", 181], ["user_id", 224], ["created_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:36 UTC +00:00], ["id", 224], ["auth_token", "sJDpQFYcDyqbuUdEx7XQ"]]  (0.2ms) CREATE SCHEMA "test6" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (20.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (3.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.2ms) 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, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (15.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:37 -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 (5.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", 181]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 224 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 224]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 224]] 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", 224]] Completed 201 Created in 28ms (Views: 10.2ms | ActiveRecord: 8.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 224]] Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:37 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"224", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 224 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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)  (3.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$og3S2JciMarG.YPGZpjtRu8opm2P7DP.MbjG1N3m2rTZlcjZNEIIy"], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 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, 18 Jul 2013 02:13:37 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 225], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wqcagRqsFPNE2xwEpGdA' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 182 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 225], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 182], ["auth_token", "wqcagRqsFPNE2xwEpGdA"]] 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", 182], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["user_id", 225]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'c8Pqe9wKxXYnfFJVzAUb' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 225 [["account_id", 182], ["user_id", 225], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 225], ["auth_token", "c8Pqe9wKxXYnfFJVzAUb"]]  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (13.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (12.6ms) 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')  (2.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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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/users" for 127.0.0.1 at 2013-07-17 21:13:37 -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" = 'test7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$Uo3FL2HNJDu16qOWXY/PyuH0WZS26E0AByzg1cNeYJ0AphrQiQc5."], ["updated_at", Thu, 18 Jul 2013 02:13:37 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", 182], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["user_id", 226]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PyagEFHEpjxdhZxZ1jWB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (7.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 226 [["account_id", 182], ["user_id", 226], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 226], ["auth_token", "PyagEFHEpjxdhZxZ1jWB"]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 226 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 226]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 226]] 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", 226]] Completed 201 Created in 32ms (Views: 9.2ms | ActiveRecord: 11.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/226" for 127.0.0.1 at 2013-07-17 21:13:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"226"} 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 (6.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" = 226 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 182]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 226 LIMIT 1 Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 226]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 226]] 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", 226]] Completed 200 OK in 21ms (Views: 6.5ms | ActiveRecord: 10.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:37 -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" = 226 LIMIT 1 Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 226]] Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 226]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 226]] Completed 201 Created in 16ms (Views: 6.0ms | ActiveRecord: 6.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" for 127.0.0.1 at 2013-07-17 21:13:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 226 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 2.2ms)  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$Rc/ZwZ7JM4jVuYAJ5njBU./Zaznb3263lLUEG.hgW8e.nAch19Q4."], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00]] Cadenero::V1::Account Exists (8.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", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 227], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pn6827MDh69oX2HwneLn' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 183 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 227], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 183], ["auth_token", "pn6827MDh69oX2HwneLn"]] 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", 183], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["user_id", 227]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xyQeqdhpmkaqPYfF4FsE' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 227 [["account_id", 183], ["user_id", 227], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 227], ["auth_token", "xyQeqdhpmkaqPYfF4FsE"]]  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (11.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (12.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (8.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (7.7ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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-17 21:13: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.7ms) 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", 183]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 227 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 227]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 227]] 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", 227]] Completed 201 Created in 17ms (Views: 6.4ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 227]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13:37 -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" = 227 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (3.8ms) BEGIN SQL (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$Nj5rwSIXo3hj.62H2cejVu3ajr/17McPO7cyUtRwvQpf5QT/xf.xq"], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 228], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FZvWGz6HU7MY7nyv7fxy' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 184 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 228], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 184], ["auth_token", "FZvWGz6HU7MY7nyv7fxy"]] 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", 184], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["user_id", 228]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'w2fqKj2rTdH6VhfDgv4N' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 228 [["account_id", 184], ["user_id", 228], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 228], ["auth_token", "w2fqKj2rTdH6VhfDgv4N"]]  (0.2ms) CREATE SCHEMA "test9" SQL (4.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (19.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (8.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (6.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (33.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (9.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", 184]] Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 228 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 228]] Cadenero::V1::Account Load (11.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 228]] 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 [["user_id", 228]] Completed 201 Created in 83ms (Views: 11.3ms | ActiveRecord: 64.4ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 228]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user9@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:37 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"228", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 228 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13: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.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:13:37 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$.lbddF0YruK9BFsRRH.HBurDOOZlnjCvAQ9OsCN9F8uy3BlE6mLLK"], ["updated_at", Thu, 18 Jul 2013 02:13:37 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", 184], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["user_id", 229]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YLxNEuzS3dyXNCvFQKaM' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (5.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 229 [["account_id", 184], ["user_id", 229], ["created_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:37 UTC +00:00], ["id", 229], ["auth_token", "YLxNEuzS3dyXNCvFQKaM"]] Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 229 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 229]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 229]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 229]] Completed 201 Created in 30ms (Views: 7.9ms | ActiveRecord: 10.0ms) 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 Started GET "/v1/users/229" for 127.0.0.1 at 2013-07-17 21:13:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"229"} Cadenero::V1::Account Load (1.7ms) 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" = 229 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 184]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 229 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 229]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 229]] 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", 229]] Completed 200 OK in 14ms (Views: 5.8ms | ActiveRecord: 4.4ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:38 -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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 229 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 229]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 229]] 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", 229]] Completed 201 Created in 15ms (Views: 9.2ms | ActiveRecord: 4.2ms) 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  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$cKRduhycB82Ji2.fK3ASCeo8pOZznWY25BpGfIDNPz7LN5MJkcnzu"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 230], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'kap5ApssjjqWWJyP9dY3' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 185 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 230], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 185], ["auth_token", "kap5ApssjjqWWJyP9dY3"]] 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", 185], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["user_id", 230]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ny7xVP4CNMHVEUCF8xZd' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 230 [["account_id", 185], ["user_id", 230], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 230], ["auth_token", "Ny7xVP4CNMHVEUCF8xZd"]]  (0.3ms) CREATE SCHEMA "test10" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (20.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.0ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.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.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') SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$9FiVbQ92.BXuSr3MfpwtyO4sLByNH8jMvp1KTidVU3f2ReCEsRO4m"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 231], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zY6D3q7f8PNjp29YMLz3' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 186 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 231], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 186], ["auth_token", "zY6D3q7f8PNjp29YMLz3"]] 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", 186], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["user_id", 231]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FdTWyLVBP7jmukpxwzvP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 231 [["account_id", 186], ["user_id", 231], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 231], ["auth_token", "FdTWyLVBP7jmukpxwzvP"]] Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 185]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (13.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$8b2q7QShYEfJeFiiX2t3IuIlX6WBRi/41ixbEWUka4TeXxIPgQvK2"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (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, 18 Jul 2013 02:13:38 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 232], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'fczjH1xcRRKym7R9xvye' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 187 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 232], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 187], ["auth_token", "fczjH1xcRRKym7R9xvye"]] 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", 187], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["user_id", 232]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iPmSDFtywvBeZg3VFN5S' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 232 [["account_id", 187], ["user_id", 232], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 232], ["auth_token", "iPmSDFtywvBeZg3VFN5S"]]  (9.7ms) CREATE SCHEMA "test12" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (10.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (4.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (12.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) 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 ('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-17 21:13:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13: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 ('test12') LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 187]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.5ms) ROLLBACK  (8.8ms) BEGIN  (1.2ms) COMMIT  (4.1ms) BEGIN SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$tS52fU2KiYHWE7/EMh9p4u2mwjno68QMYsJqIfDc4y84njx5oY0ni"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 233], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'eVywyqGqNU9QoCkiNR5G' 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, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 188 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 233], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 188], ["auth_token", "eVywyqGqNU9QoCkiNR5G"]] 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", 188], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["user_id", 233]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UbFs221pRo3mkZq5xNC5' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (8.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 233 [["account_id", 188], ["user_id", 233], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 233], ["auth_token", "UbFs221pRo3mkZq5xNC5"]]  (0.2ms) CREATE SCHEMA "test13" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (7.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_token")  (1.1ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (6.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:13:38 -0500 Processing by Cadenero::V1::Account::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-17 21:13:38 -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 ('test13') 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", 188]] 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  (3.5ms) ROLLBACK  (2.1ms) BEGIN  (8.5ms) COMMIT  (1.6ms) BEGIN SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$04$sFqeiKBckKjo6yldJJ6QY..QCLKm5Wcy/3FV1a/hv8wgbDQlClf0S"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (5.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, 18 Jul 2013 02:13:38 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 234], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00]] Cadenero::V1::Account Load (16.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ySfT3iqZt7btxxr9Ee8B' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (7.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "auth_token" = $7 WHERE "public"."cadenero_accounts"."id" = 189 [["name", "Test Account #14"], ["subdomain", "test14"], ["owner_id", 234], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 189], ["auth_token", "ySfT3iqZt7btxxr9Ee8B"]] 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", 189], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["user_id", 234]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nqjp1w17AiU5MK1p8SzB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 234 [["account_id", 189], ["user_id", 234], ["created_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:13:38 UTC +00:00], ["id", 234], ["auth_token", "nqjp1w17AiU5MK1p8SzB"]]  (0.2ms) CREATE SCHEMA "test14" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (15.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (10.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" USING btree ("auth_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, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token")  (2.4ms) 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, "updated_at" timestamp)  (3.1ms) 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 ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:13:38 -0500 Cadenero::V1::Account Load (1.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  (3.2ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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, 18 Jul 2013 02:20:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$5CKCi6ouUgeIr7drw6NTs.oq7TeWKhUZc40HGU40dhg70JSMIBtlS"], ["updated_at", Thu, 18 Jul 2013 02:20:49 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" = 'test1' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 235], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:20:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Fnop6GxzGhsqgDW9wxRx' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 235, "created_at" = '2013-07-18 02:20:49.533858', "updated_at" = '2013-07-18 02:20:49.533858', "auth_token" = 'Fnop6GxzGhsqgDW9wxRx' WHERE "public"."cadenero_accounts"."id" = 190  (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", 190], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:49 UTC +00:00], ["user_id", 235]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1dVqAXnknjbRAqLsqSKf' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 190, "user_id" = 235, "created_at" = '2013-07-18 02:20:49.685346', "updated_at" = '2013-07-18 02:20:49.685346', "auth_token" = '1dVqAXnknjbRAqLsqSKf' WHERE "public"."cadenero_members"."id" = 235  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (12.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.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, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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 44ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:20:49 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (1.8ms) 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, 18 Jul 2013 02:20:50 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$zHlqP5iK4buBoRGIXixfYezHTEw78OfzUGYS5o2tsQoicZ4bW/0HO"], ["updated_at", Thu, 18 Jul 2013 02:20:50 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", 190], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["user_id", 236]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xEU3FM3CgMpyNx51aVes' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 190, "user_id" = 236, "created_at" = '2013-07-18 02:20:50.022565', "updated_at" = '2013-07-18 02:20:50.022565', "auth_token" = 'xEU3FM3CgMpyNx51aVes' WHERE "public"."cadenero_members"."id" = 236  (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" = 236 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 236 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 236 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" = 236 Completed 201 Created in 191ms (Views: 46.8ms | ActiveRecord: 11.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/236" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"236"} 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" = 190 AND "public"."cadenero_users"."id" = 236 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 236 LIMIT 1 Cadenero::Member Load (3.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 236 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 236 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 236 Completed 200 OK in 16ms (Views: 6.3ms | ActiveRecord: 5.3ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 235 Started GET "/v1?auth_token[]=1dVqAXnknjbRAqLsqSKf" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["1dVqAXnknjbRAqLsqSKf"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 190 AND "public"."cadenero_members"."auth_token" IN ('1dVqAXnknjbRAqLsqSKf') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 235 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 235 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 236 Started GET "/v1?auth_token[]=xEU3FM3CgMpyNx51aVes" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["xEU3FM3CgMpyNx51aVes"], "default"=>:json} Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 190 AND "public"."cadenero_members"."auth_token" IN ('xEU3FM3CgMpyNx51aVes') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 236 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 236 LIMIT 1 Completed 200 OK in 24ms (Views: 0.2ms | ActiveRecord: 7.3ms)  (9.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Zv/BkhFnYi4Wgh6514R2/.sJlShGpK1sZxnIc67sFMP1omgjGL5Ny"], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 237], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jKU1WbX27MRdpqzdCjg5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 237, "created_at" = '2013-07-18 02:20:50.302024', "updated_at" = '2013-07-18 02:20:50.302024', "auth_token" = 'jKU1WbX27MRdpqzdCjg5' WHERE "public"."cadenero_accounts"."id" = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", 191], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["user_id", 237]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hPoAEX8xGQqrpNbzQif8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 191, "user_id" = 237, "created_at" = '2013-07-18 02:20:50.308147', "updated_at" = '2013-07-18 02:20:50.308147', "auth_token" = 'hPoAEX8xGQqrpNbzQif8' WHERE "public"."cadenero_members"."id" = 237  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (15.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.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, "auth_token" character varying(255))  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) 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.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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) Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 237 Started GET "/v1?auth_token[]=hPoAEX8xGQqrpNbzQif8" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hPoAEX8xGQqrpNbzQif8"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 191 AND "public"."cadenero_members"."auth_token" IN ('hPoAEX8xGQqrpNbzQif8') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 237 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 237 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/v1/users/237" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"237"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/237?auth_token[]=hPoAEX8xGQqrpNbzQif8" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["hPoAEX8xGQqrpNbzQif8"], "default"=>:json, "id"=>"237"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 191 AND "public"."cadenero_members"."auth_token" IN ('hPoAEX8xGQqrpNbzQif8') LIMIT 1 Cadenero::User Load (5.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 237 LIMIT 1 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 (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" = 191 AND "public"."cadenero_users"."id" = 237 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 237 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 237 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 237 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 237 Completed 200 OK in 23ms (Views: 6.3ms | ActiveRecord: 8.4ms)  (6.1ms) ROLLBACK  (1.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$UjDsCCrTqPGAPnNk97uy2OpH84aD7.Avs4DRob6yHRfuuWecbN7Uq"], ["updated_at", Thu, 18 Jul 2013 02:20: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 238], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hg9s1kEAURBZHGxEgsQ3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 238, "created_at" = '2013-07-18 02:20:50.622193', "updated_at" = '2013-07-18 02:20:50.622193', "auth_token" = 'hg9s1kEAURBZHGxEgsQ3' WHERE "public"."cadenero_accounts"."id" = 192  (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", 192], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["user_id", 238]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cegjL34xrU9MKdRbLXGq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 192, "user_id" = 238, "created_at" = '2013-07-18 02:20:50.630045', "updated_at" = '2013-07-18 02:20:50.630045', "auth_token" = 'cegjL34xrU9MKdRbLXGq' WHERE "public"."cadenero_members"."id" = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (11.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.8ms) 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", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$vxZ97g5.b7xTXOaaZ6inQOUG51xHjc9pWx2wDSRu0bPmbOmKfhnKK"], ["updated_at", Thu, 18 Jul 2013 02:20: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 239], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dSMSwFmUhxJsaznsg5RT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 239, "created_at" = '2013-07-18 02:20:50.829325', "updated_at" = '2013-07-18 02:20:50.829325', "auth_token" = 'dSMSwFmUhxJsaznsg5RT' WHERE "public"."cadenero_accounts"."id" = 193  (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", 193], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:50 UTC +00:00], ["user_id", 239]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XqSbjvcRsN6vYvvpyzoP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 193, "user_id" = 239, "created_at" = '2013-07-18 02:20:50.834612', "updated_at" = '2013-07-18 02:20:50.834612', "auth_token" = 'XqSbjvcRsN6vYvvpyzoP' WHERE "public"."cadenero_members"."id" = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (14.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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.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)   (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 ('20130717234244')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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) Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 239 Started GET "/v1?auth_token[]=XqSbjvcRsN6vYvvpyzoP" for 127.0.0.1 at 2013-07-17 21:20:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["XqSbjvcRsN6vYvvpyzoP"], "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::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 192 AND "public"."cadenero_members"."auth_token" IN ('XqSbjvcRsN6vYvvpyzoP') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (8.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$fQWNvLc/cxuTGQ5J7L3E..l8Pj37rhFzWhehby8eaasEMyUNqJI9y"], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 240], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XVf9UxUwxhKxsomuRG1U' LIMIT 1  (5.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 240, "created_at" = '2013-07-18 02:20:51.168857', "updated_at" = '2013-07-18 02:20:51.168857', "auth_token" = 'XVf9UxUwxhKxsomuRG1U' WHERE "public"."cadenero_accounts"."id" = 194  (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", 194], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["user_id", 240]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e9pkxKkuB3NqkX8ayXaT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 194, "user_id" = 240, "created_at" = '2013-07-18 02:20:51.181112', "updated_at" = '2013-07-18 02:20:51.181112', "auth_token" = 'e9pkxKkuB3NqkX8ayXaT' WHERE "public"."cadenero_members"."id" = 240  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (7.5ms) 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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (8.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.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 ('20130717234244')  (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')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 240 Started GET "/v1?auth_token[]=e9pkxKkuB3NqkX8ayXaT" for 127.0.0.1 at 2013-07-17 21:20:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["e9pkxKkuB3NqkX8ayXaT"], "default"=>:json} Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 194 AND "public"."cadenero_members"."auth_token" IN ('e9pkxKkuB3NqkX8ayXaT') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 240 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 240 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.6ms)  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$cWfyKebgw.WL7hBwKciSZeZIfsftZQY3kinC1BqRWu2zImcVpkpqm"], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 241], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'YpRzy7yxspaqMm9ScsBh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 241, "created_at" = '2013-07-18 02:20:51.456408', "updated_at" = '2013-07-18 02:20:51.456408', "auth_token" = 'YpRzy7yxspaqMm9ScsBh' WHERE "public"."cadenero_accounts"."id" = 195  (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", 195], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["user_id", 241]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gUBCS3SaxHZrYrkzQUFr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 195, "user_id" = 241, "created_at" = '2013-07-18 02:20:51.462036', "updated_at" = '2013-07-18 02:20:51.462036', "auth_token" = 'gUBCS3SaxHZrYrkzQUFr' WHERE "public"."cadenero_members"."id" = 241  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (11.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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")  (3.4ms) 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.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.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 ('20130717234244')  (2.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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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/users" for 127.0.0.1 at 2013-07-17 21:20:51 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$wgP4u/sSyofjpqHBPZHQq.kBFJA6MvxLpWK.vNfNjufeING6.CJsC"], ["updated_at", Thu, 18 Jul 2013 02:20:51 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", 195], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["user_id", 242]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AsHCN4bNqtdzkjr9k2ND' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 195, "user_id" = 242, "created_at" = '2013-07-18 02:20:51.687736', "updated_at" = '2013-07-18 02:20:51.687736', "auth_token" = 'AsHCN4bNqtdzkjr9k2ND' WHERE "public"."cadenero_members"."id" = 242  (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" = 242 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 242 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 242 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 242 Completed 201 Created in 150ms (Views: 5.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/242" for 127.0.0.1 at 2013-07-17 21:20:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"242"} 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" = 195 AND "public"."cadenero_users"."id" = 242 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 242 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 242 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 242 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 242 Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 242 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 242 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 242 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 242 Completed 201 Created in 8ms (Views: 5.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 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20:51 -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" = 242 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$z7dpKkDzYwW2Hu0KoMECNec731y1QHajBdr0eG7LeDdgl3Se8QB3C"], ["updated_at", Thu, 18 Jul 2013 02:20:51 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" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 243], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vcxR9Fg47q8czBSpM7on' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 243, "created_at" = '2013-07-18 02:20:51.912960', "updated_at" = '2013-07-18 02:20:51.912960', "auth_token" = 'vcxR9Fg47q8czBSpM7on' WHERE "public"."cadenero_accounts"."id" = 196  (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", 196], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:51 UTC +00:00], ["user_id", 243]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zfYboUpfbxkrhHA6oxLZ' LIMIT 1  (4.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 196, "user_id" = 243, "created_at" = '2013-07-18 02:20:51.918913', "updated_at" = '2013-07-18 02:20:51.918913', "auth_token" = 'zfYboUpfbxkrhHA6oxLZ' WHERE "public"."cadenero_members"."id" = 243  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.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")  (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.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 ('20130717234244')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = 196 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 243 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 243 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 243 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 243 Completed 201 Created in 174ms (Views: 5.6ms | ActiveRecord: 5.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 243 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"243", "default"=>:json} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 243 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:20:52 -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 (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$DapT5JlIwonV0mDGWniyaupQY09o7mu8oMihwO9j5tjV.FM07wKvu"], ["updated_at", Thu, 18 Jul 2013 02:20:52 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", 196], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["user_id", 244]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'h97CXrpFrxGjQ3yRfzw6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 196, "user_id" = 244, "created_at" = '2013-07-18 02:20:52.338801', "updated_at" = '2013-07-18 02:20:52.338801', "auth_token" = 'h97CXrpFrxGjQ3yRfzw6' WHERE "public"."cadenero_members"."id" = 244  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 244 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 244 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 244 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 244 Completed 201 Created in 156ms (Views: 6.4ms | ActiveRecord: 7.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/244" for 127.0.0.1 at 2013-07-17 21:20:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"244"} 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" = 196 AND "public"."cadenero_users"."id" = 244 LIMIT 1 Cadenero::User Load (12.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 244 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 244 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 244 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 244 Completed 200 OK in 31ms (Views: 13.3ms | ActiveRecord: 14.1ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:52 -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" = 244 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 244 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 244 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" = 244 Completed 201 Created in 8ms (Views: 4.9ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$5nUIUJ1aDbpMzc4n191BBeIjRjLkCULjjLWIbppTAjO1iv1g01AyG"], ["updated_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 245], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'S83pWz8uwWeYsvYiYtu9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 245, "created_at" = '2013-07-18 02:20:52.623599', "updated_at" = '2013-07-18 02:20:52.623599', "auth_token" = 'S83pWz8uwWeYsvYiYtu9' WHERE "public"."cadenero_accounts"."id" = 197  (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", 197], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:52 UTC +00:00], ["user_id", 245]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e9Nz31h2aPyagqQjzJMc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 197, "user_id" = 245, "created_at" = '2013-07-18 02:20:52.629515', "updated_at" = '2013-07-18 02:20:52.629515', "auth_token" = 'e9Nz31h2aPyagqQjzJMc' WHERE "public"."cadenero_members"."id" = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (2.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:52 -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 ('test8') 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" = 197 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (8.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 245 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 245 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 245 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 245 Completed 201 Created in 135ms (Views: 6.0ms | 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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 245 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"245", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 245 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20: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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$/U.NQxezovoqhFm99AX1culkkhTbwIppyHJS6/cEggl6/1t2x34G."], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 246], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00]] Cadenero::V1::Account Load (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bzkZs7m2csZxGT5PPmvQ' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 246, "created_at" = '2013-07-18 02:20:53.039659', "updated_at" = '2013-07-18 02:20:53.039659', "auth_token" = 'bzkZs7m2csZxGT5PPmvQ' WHERE "public"."cadenero_accounts"."id" = 198  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.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", 198], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["user_id", 246]] Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8RkzEq7wz3X1sbzveVPb' LIMIT 1  (2.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 198, "user_id" = 246, "created_at" = '2013-07-18 02:20:53.050605', "updated_at" = '2013-07-18 02:20:53.050605', "auth_token" = '8RkzEq7wz3X1sbzveVPb' WHERE "public"."cadenero_members"."id" = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))   (7.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")  (0.7ms) 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)  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (10.1ms) 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" = 198 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" = 246 LIMIT 1 Cadenero::Member Load (31.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 246 Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 246 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 246 Completed 201 Created in 180ms (Views: 6.4ms | ActiveRecord: 48.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 246 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (4.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 246 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 4.9ms)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.8ms) 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, 18 Jul 2013 02:20:53 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$/tr10LZFFYA7nAaM7tI7M./PPigaBXxSgGEljhMBrWxoCFqUDNYDW"], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (6.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 247], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CEzP12Kb4dYk1zx7TKGP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 247, "created_at" = '2013-07-18 02:20:53.552535', "updated_at" = '2013-07-18 02:20:53.552535', "auth_token" = 'CEzP12Kb4dYk1zx7TKGP' WHERE "public"."cadenero_accounts"."id" = 199  (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", 199], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["user_id", 247]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hykKvrsMrj1aysUx9pRK' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 199, "user_id" = 247, "created_at" = '2013-07-18 02:20:53.564784', "updated_at" = '2013-07-18 02:20:53.564784', "auth_token" = 'hykKvrsMrj1aysUx9pRK' WHERE "public"."cadenero_members"."id" = 247  (8.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20: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 (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (7.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" = 199 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 22ms (Views: 0.3ms | ActiveRecord: 9.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.6ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$0HJUa2kuMWp9xMy8jiVeQ.ObYqgoiJuR98auf5dk8Ukz7bUupgm9W"], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 248], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XzTyuZQiwuKp7ULs5wtV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 248, "created_at" = '2013-07-18 02:20:53.848583', "updated_at" = '2013-07-18 02:20:53.848583', "auth_token" = 'XzTyuZQiwuKp7ULs5wtV' WHERE "public"."cadenero_accounts"."id" = 200  (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", 200], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:53 UTC +00:00], ["user_id", 248]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p8Ucq4EaNApRCP48hqpW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 200, "user_id" = 248, "created_at" = '2013-07-18 02:20:53.855661', "updated_at" = '2013-07-18 02:20:53.855661', "auth_token" = 'p8Ucq4EaNApRCP48hqpW' WHERE "public"."cadenero_members"."id" = 248  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (12.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.7ms) 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")  (5.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.7ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:53 -0500 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$kYaaRHvJBj1of1CueV6ydOu/qYoM6ErmXdopiGHfNxHoHFkfKZnp2"], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (8.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 249], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00]] Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zYbbSxFaE2L32nBqcpgW' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 249, "created_at" = '2013-07-18 02:20:54.092744', "updated_at" = '2013-07-18 02:20:54.092744', "auth_token" = 'zYbbSxFaE2L32nBqcpgW' WHERE "public"."cadenero_accounts"."id" = 201  (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", 201], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["user_id", 249]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SuDSzZNy3u5YzSymQppX' LIMIT 1  (3.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 201, "user_id" = 249, "created_at" = '2013-07-18 02:20:54.183416', "updated_at" = '2013-07-18 02:20:54.183416', "auth_token" = 'SuDSzZNy3u5YzSymQppX' WHERE "public"."cadenero_members"."id" = 249  (6.1ms) RELEASE SAVEPOINT active_record_1  (9.2ms) CREATE SCHEMA "test12"  (11.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (10.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.5ms) 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)  (5.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 ('20130717234244')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$OqryI4acaikfWXNbYCphMuzc0nPnkRrTWyE1VY8BU/Bzxgr9GAENK"], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00]]  (1.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" = 'test13' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 250], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'iApzFjU1k6py1AfCiSFG' LIMIT 1  (2.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 250, "created_at" = '2013-07-18 02:20:54.426850', "updated_at" = '2013-07-18 02:20:54.426850', "auth_token" = 'iApzFjU1k6py1AfCiSFG' WHERE "public"."cadenero_accounts"."id" = 202  (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", 202], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["user_id", 250]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BxMm3rgtGLX4SFzLZGWr' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 202, "user_id" = 250, "created_at" = '2013-07-18 02:20:54.436039', "updated_at" = '2013-07-18 02:20:54.436039', "auth_token" = 'BxMm3rgtGLX4SFzLZGWr' WHERE "public"."cadenero_members"."id" = 250  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 197ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20:54 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 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" = 201 AND "public"."cadenero_users"."email" = 'user13@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 6.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  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$1vgO7iA15zNNGMc0Lm9VyONm6.lP.Jsjbw9RG81f2gcerIJgDeGTu"], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 251], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rEyMLKc7Hqnnt1LPAdet' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 251, "created_at" = '2013-07-18 02:20:54.801628', "updated_at" = '2013-07-18 02:20:54.801628', "auth_token" = 'rEyMLKc7Hqnnt1LPAdet' WHERE "public"."cadenero_accounts"."id" = 203  (10.0ms) RELEASE SAVEPOINT active_record_1  (4.0ms) 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", 203], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:20:54 UTC +00:00], ["user_id", 251]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CWZCAfkSFJ1goVKubn8U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 203, "user_id" = 251, "created_at" = '2013-07-18 02:20:54.823862', "updated_at" = '2013-07-18 02:20:54.823862', "auth_token" = 'CWZCAfkSFJ1goVKubn8U' WHERE "public"."cadenero_members"."id" = 251  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))   (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:20:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:20: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 (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::User Load (8.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" = 203 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 14ms (Views: 0.3ms | ActiveRecord: 10.1ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (14.4ms) ROLLBACK Connecting to database specified by database.yml  (2.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 21:21: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 (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (71.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$kxMmc212DVGV/iLbfPmqdOM89m5SxbJZAj7lFjEkIGK7lVqtbu01a"], ["updated_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00], ["name", "Testy"], ["owner_id", 252], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RpU7ytyZJdQqxMPBCmoj' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 252, "created_at" = '2013-07-18 02:21:11.234966', "updated_at" = '2013-07-18 02:21:11.234966', "auth_token" = 'RpU7ytyZJdQqxMPBCmoj' WHERE "public"."cadenero_accounts"."id" = 204  (4.2ms) RELEASE SAVEPOINT active_record_1  (3.5ms) SAVEPOINT active_record_1 SQL (20.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", 204], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00], ["user_id", 252]] Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DwsDDBsXTgqFbhRsjVJF' LIMIT 1  (11.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 204, "user_id" = 252, "created_at" = '2013-07-18 02:21:11.329985', "updated_at" = '2013-07-18 02:21:11.329985', "auth_token" = 'DwsDDBsXTgqFbhRsjVJF' WHERE "public"."cadenero_members"."id" = 252  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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 ('20130717234244')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" != 204) LIMIT 1 Completed 201 Created in 755ms (Views: 3.2ms | ActiveRecord: 221.8ms) Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1YrpDwkegx7IttG3fUt8HOLza7lkvsPN4zFOBiixfMBxG3.gD00Dy"], ["updated_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00], ["name", "Testy"], ["owner_id", 253], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 02:21:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jst8Cqxs27P9AXyr6XRM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 253, "created_at" = '2013-07-18 02:21:11.704197', "updated_at" = '2013-07-18 02:21:11.704197', "auth_token" = 'jst8Cqxs27P9AXyr6XRM' WHERE "public"."cadenero_accounts"."id" = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 21:21: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.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  (6.8ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 138ms (Views: 0.3ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$LRlRTmLeaf636dNRIMvET.H2gbfM.uLz9BTdBEtylykFd4TV/5jhe"], ["updated_at", Thu, 18 Jul 2013 02:21: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" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 254], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '4Tx2Y331UpprvmWZNqc5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 254, "created_at" = '2013-07-18 02:21:12.032348', "updated_at" = '2013-07-18 02:21:12.032348', "auth_token" = '4Tx2Y331UpprvmWZNqc5' WHERE "public"."cadenero_accounts"."id" = 206  (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", 206], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["user_id", 254]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PdSRJvqX87eMKtMfdLFT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 206, "user_id" = 254, "created_at" = '2013-07-18 02:21:12.037782', "updated_at" = '2013-07-18 02:21:12.037782', "auth_token" = 'PdSRJvqX87eMKtMfdLFT' WHERE "public"."cadenero_members"."id" = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (15.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.3ms) 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, "auth_token" character varying(255))   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (9.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)   (3.2ms) 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"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:21: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 (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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$d2ntVtNtRymrJudAyBjv2ePeyiFVYiioBp5W4uoH3mXmLMr2eBhVy"], ["updated_at", Thu, 18 Jul 2013 02:21:12 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", 206], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["user_id", 255]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iByVCMFNHQtedUez2Htn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 206, "user_id" = 255, "created_at" = '2013-07-18 02:21:12.265472', "updated_at" = '2013-07-18 02:21:12.265472', "auth_token" = 'iByVCMFNHQtedUez2Htn' WHERE "public"."cadenero_members"."id" = 254  (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" = 255 LIMIT 1 Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 255 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 255 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" = 255 Completed 201 Created in 159ms (Views: 39.5ms | ActiveRecord: 9.7ms) 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/255" for 127.0.0.1 at 2013-07-17 21:21:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"255"} 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 (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 206 AND "public"."cadenero_users"."id" = 255 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 255 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 255 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 255 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" = 255 Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 2.5ms)  (9.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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, 18 Jul 2013 02:21:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$nWoEf2kIM2obJeG53jI/hukB10wf8cxl5del1utRAMvFgQQBMxEtC"], ["updated_at", Thu, 18 Jul 2013 02:21:12 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" = 'test2' LIMIT 1 SQL (5.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 256], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'YrJ72LkPok9t7qe6sKxe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 256, "created_at" = '2013-07-18 02:21:12.547306', "updated_at" = '2013-07-18 02:21:12.547306', "auth_token" = 'YrJ72LkPok9t7qe6sKxe' WHERE "public"."cadenero_accounts"."id" = 207  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 207], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["user_id", 256]] Cadenero::Member Load (4.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PVZKHnxkPgkU1MFqqayT' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 207, "user_id" = 256, "created_at" = '2013-07-18 02:21:12.557618', "updated_at" = '2013-07-18 02:21:12.557618', "auth_token" = 'PVZKHnxkPgkU1MFqqayT' WHERE "public"."cadenero_members"."id" = 255  (0.8ms) 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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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)   (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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:21: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) 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", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yi02mKSF2aRQx913kFNbGO4WOfZUZ4qo70yD.15ZtM8nM33k31B8G"], ["updated_at", Thu, 18 Jul 2013 02:21: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", 207], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["user_id", 257]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2zPXFNxpgMvrysNpXviU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 207, "user_id" = 257, "created_at" = '2013-07-18 02:21:12.801870', "updated_at" = '2013-07-18 02:21:12.801870', "auth_token" = '2zPXFNxpgMvrysNpXviU' WHERE "public"."cadenero_members"."id" = 256  (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" = 257 LIMIT 1 Cadenero::Member Load (7.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 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" = 257 Completed 201 Created in 191ms (Views: 13.5ms | ActiveRecord: 18.9ms) Cadenero::V1::Account Load (19.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/257" for 127.0.0.1 at 2013-07-17 21:21:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"257"} 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" = 207 AND "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 257 Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 257], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00]] Cadenero::V1::Account Load (20.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7Z791QB9esEwzC8P1mMw' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 257, "created_at" = '2013-07-18 02:21:12.891136', "updated_at" = '2013-07-18 02:21:12.891136', "auth_token" = '7Z791QB9esEwzC8P1mMw' WHERE "public"."cadenero_accounts"."id" = 208  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 208], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:12 UTC +00:00], ["user_id", 257]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NQk4eefYgS6KyjK5BULL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 208, "user_id" = 257, "created_at" = '2013-07-18 02:21:12.921837', "updated_at" = '2013-07-18 02:21:12.921837', "auth_token" = 'NQk4eefYgS6KyjK5BULL' WHERE "public"."cadenero_members"."id" = 257  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (16.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (12.2ms) 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, "auth_token" character varying(255))   (1.4ms) 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")  (2.7ms) 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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:21: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" = 'test3' LIMIT 1  (2.7ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/IKKOC0UQrxeQ5AnpGLtaudqKqlP9lRTmK80XMf8NKdC3BhMTQTeW"], ["updated_at", Thu, 18 Jul 2013 02:21: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", 208], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["user_id", 258]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tVops4vGjd2YMqvQRsjn' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 208, "user_id" = 258, "created_at" = '2013-07-18 02:21:13.174671', "updated_at" = '2013-07-18 02:21:13.174671', "auth_token" = 'tVops4vGjd2YMqvQRsjn' WHERE "public"."cadenero_members"."id" = 258  (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" = 258 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 258 Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 258 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" = 258 Completed 201 Created in 134ms (Views: 6.0ms | ActiveRecord: 18.8ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/258" for 127.0.0.1 at 2013-07-17 21:21:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"258"} Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 208 AND "public"."cadenero_users"."id" = 258 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 258 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 258 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 258 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 258 Completed 200 OK in 17ms (Views: 5.9ms | ActiveRecord: 7.5ms) Started GET "/v1/users/257" for 127.0.0.1 at 2013-07-17 21:21:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"257"} Cadenero::V1::Account Load (1.6ms) 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" = 207 AND "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 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" = 257 Completed 200 OK in 70ms (Views: 60.3ms | ActiveRecord: 6.2ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 21:21:13 -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" = 'test2' 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" = 207 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 257 LIMIT 1 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 257 Cadenero::V1::Account Load (8.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 257 Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 256 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 256 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 256 Completed 200 OK in 32ms (Views: 14.1ms | ActiveRecord: 15.8ms)  (13.3ms) ROLLBACK  (6.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8o7Ddl6SfHtbX7Gkl7nI7uH9XD0ZbhoktR3X7X7ImDeCljFM/o97O"], ["updated_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["name", "Test Account"], ["owner_id", 259], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pVXgjbwfRVx4J8DsA4d5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 259, "created_at" = '2013-07-18 02:21:13.705869', "updated_at" = '2013-07-18 02:21:13.705869', "auth_token" = 'pVXgjbwfRVx4J8DsA4d5' WHERE "public"."cadenero_accounts"."id" = 209  (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", 209], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:13 UTC +00:00], ["user_id", 259]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ld6iDwYFnzsK1Y7nfNsH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 209, "user_id" = 259, "created_at" = '2013-07-18 02:21:13.717507', "updated_at" = '2013-07-18 02:21:13.717507', "auth_token" = 'Ld6iDwYFnzsK1Y7nfNsH' WHERE "public"."cadenero_members"."id" = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (11.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.7ms) 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)   (0.7ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 209 LIMIT 1  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (40.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (2.1ms) ROLLBACK  (3.6ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (4.1ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:17 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$PRX7t4Rw6n.5r8EkabXn1u1CRH.pHBA8JJb7dVA9jv28DjirHgxMW"], ["updated_at", Thu, 18 Jul 2013 02:21:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:17 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 260], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:21:17 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RP2yGfWtiw5uHk859pwx' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 260, "created_at" = '2013-07-18 02:21:17.855806', "updated_at" = '2013-07-18 02:21:17.855806', "auth_token" = 'RP2yGfWtiw5uHk859pwx' WHERE "public"."cadenero_accounts"."id" = 210  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 210], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:17 UTC +00:00], ["user_id", 260]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7xGEsfTXfsYsHu3rm2ks' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 210, "user_id" = 260, "created_at" = '2013-07-18 02:21:17.862133', "updated_at" = '2013-07-18 02:21:17.862133', "auth_token" = '7xGEsfTXfsYsHu3rm2ks' WHERE "public"."cadenero_members"."id" = 260  (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, 18 Jul 2013 02:21:17 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$SI/YmkCFTipqD.H1rSDlUu4WTLGCZeM12m7q3TthFC3zh2ZoI5rWa"], ["updated_at", Thu, 18 Jul 2013 02:21: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", Thu, 18 Jul 2013 02:21:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$re1njjLteQycgwsnOBHvCOrn0W6n8Ta8f3fw.ZpHNgRBWakT8AJxW"], ["updated_at", Thu, 18 Jul 2013 02:21: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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:18 UTC +00:00], ["name", "Root"], ["owner_id", 262], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 02:21:18 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WSszohiE1wuoNKseBrCn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 262, "created_at" = '2013-07-18 02:21:18.068318', "updated_at" = '2013-07-18 02:21:18.068318', "auth_token" = 'WSszohiE1wuoNKseBrCn' WHERE "public"."cadenero_accounts"."id" = 211  (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", 211], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:18 UTC +00:00], ["user_id", 262]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6mwy3kXq3EXu1nFRByqz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 211, "user_id" = 262, "created_at" = '2013-07-18 02:21:18.073687', "updated_at" = '2013-07-18 02:21:18.073687', "auth_token" = '6mwy3kXq3EXu1nFRByqz' WHERE "public"."cadenero_members"."id" = 261  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857) Migrating to RenameAuthenticationTokenToV1Account (20130717234244)  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "cadenero_accounts" RENAME COLUMN "authentication_token" TO "auth_token" PG::Error: ERROR: column "authentication_token" does not exist : ALTER TABLE "cadenero_accounts" RENAME COLUMN "authentication_token" TO "auth_token"  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "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.3ms | ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) COMMIT  (0.1ms) BEGIN  (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", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:23 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" = 'wMX2gbcby8jMhA8wPA5q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 02:21:23.111919', "updated_at" = '2013-07-18 02:21:23.111919', "auth_token" = 'wMX2gbcby8jMhA8wPA5q' WHERE "public"."cadenero_members"."id" = 262  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$kJ4Z8f2Tu0sDSGSD4f7DJ.ESpbuL3J9qcxfyH/ZShy0u5uTt5N0XG"], ["updated_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 263], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yxb1aiyxDV9yJTzJCsXg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 263, "created_at" = '2013-07-18 02:21:23.230184', "updated_at" = '2013-07-18 02:21:23.230184', "auth_token" = 'yxb1aiyxDV9yJTzJCsXg' WHERE "public"."cadenero_accounts"."id" = 212  (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", 212], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["user_id", 263]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cR4jeFzWCgqz2zppqzxe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 212, "user_id" = 263, "created_at" = '2013-07-18 02:21:23.235970', "updated_at" = '2013-07-18 02:21:23.235970', "auth_token" = 'cR4jeFzWCgqz2zppqzxe' WHERE "public"."cadenero_members"."id" = 263  (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), "auth_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_auth_token" ON "cadenero_accounts" ("auth_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, "auth_token" character varying(255))   (2.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")  (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)   (2.4ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 212 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" = 263 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 263 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 263 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 263 Completed 201 Created in 117ms (Views: 5.7ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 263 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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" = 263 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$7xh.jPMOdpEtsUcgdtvMUu9hXzRQO.GbB9FxEG5z/89Rka7RQMyDq"], ["updated_at", Thu, 18 Jul 2013 02:21: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" = 'test6' LIMIT 1 SQL (19.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 264], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PypkG9Uy3qGS1notMKHW' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 264, "created_at" = '2013-07-18 02:21:23.794454', "updated_at" = '2013-07-18 02:21:23.794454', "auth_token" = 'PypkG9Uy3qGS1notMKHW' WHERE "public"."cadenero_accounts"."id" = 213  (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", 213], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:23 UTC +00:00], ["user_id", 264]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hJzEpQsJDRiPTjKpLTHo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 213, "user_id" = 264, "created_at" = '2013-07-18 02:21:23.823112', "updated_at" = '2013-07-18 02:21:23.823112', "auth_token" = 'hJzEpQsJDRiPTjKpLTHo' WHERE "public"."cadenero_members"."id" = 264  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (70.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.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.0ms) 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)  (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 ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) 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" = 213 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (10.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 264 LIMIT 1 Cadenero::Member Load (10.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 264 Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 264 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 264 Completed 201 Created in 145ms (Views: 6.1ms | ActiveRecord: 26.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 264 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"264", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 264 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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)  (11.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (21.4ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$fvA2l1Q54IE3bV40EBuBAeIEUlfgbMTj.HRHWb6bRH17uYX8YSF8C"], ["updated_at", Thu, 18 Jul 2013 02:21:24 UTC +00:00]]  (10.3ms) RELEASE SAVEPOINT active_record_1  (10.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 (10.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 265], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:21:24 UTC +00:00]] Cadenero::V1::Account Load (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CAHts7UGQvqDNkebiYsy' LIMIT 1  (3.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 265, "created_at" = '2013-07-18 02:21:24.420384', "updated_at" = '2013-07-18 02:21:24.420384', "auth_token" = 'CAHts7UGQvqDNkebiYsy' WHERE "public"."cadenero_accounts"."id" = 214  (2.5ms) RELEASE SAVEPOINT active_record_1  (11.2ms) SAVEPOINT active_record_1 SQL (10.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", 214], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:24 UTC +00:00], ["user_id", 265]] Cadenero::Member Load (10.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kX8tBXQTndGyNdx1qDoa' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 214, "user_id" = 265, "created_at" = '2013-07-18 02:21:24.462040', "updated_at" = '2013-07-18 02:21:24.462040', "auth_token" = 'kX8tBXQTndGyNdx1qDoa' WHERE "public"."cadenero_members"."id" = 265  (3.7ms) RELEASE SAVEPOINT active_record_1  (7.6ms) CREATE SCHEMA "test7"  (12.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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)   (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21: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 (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (8.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" = 214 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (5.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 265 LIMIT 1 Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 265 Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 265 Cadenero::V1::Account Load (7.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" = 265 Completed 201 Created in 177ms (Views: 6.1ms | ActiveRecord: 32.9ms) Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 265 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"265", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 265 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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/users" for 127.0.0.1 at 2013-07-17 21:21:24 -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 (10.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Q.nsrFqF8ZQ2Tno1/NC9AeOdyKevAa8iHK0M.Snvmm7rwPpGl.BTi"], ["updated_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00]] 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", 214], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["user_id", 266]] Cadenero::Member Load (4.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'waWDCQjBL9vW8hz14Hke' LIMIT 1  (8.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 214, "user_id" = 266, "created_at" = '2013-07-18 02:21:25.035289', "updated_at" = '2013-07-18 02:21:25.035289', "auth_token" = 'waWDCQjBL9vW8hz14Hke' WHERE "public"."cadenero_members"."id" = 266  (5.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 266 LIMIT 1 Cadenero::Member Load (9.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 266 Cadenero::V1::Account Load (11.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 266 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" = 266 Completed 201 Created in 258ms (Views: 6.7ms | ActiveRecord: 64.4ms) Cadenero::V1::Account Load (8.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/266" for 127.0.0.1 at 2013-07-17 21:21:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"266"} Cadenero::V1::Account Load (11.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (10.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" = 214 AND "public"."cadenero_users"."id" = 266 LIMIT 1 Cadenero::User Load (6.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 266 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 266 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 266 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 266 Completed 200 OK in 39ms (Views: 6.3ms | ActiveRecord: 29.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21:25 -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" = 266 LIMIT 1 Cadenero::Member Load (5.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 266 Cadenero::V1::Account Load (4.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 266 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" = 266 Completed 201 Created in 22ms (Views: 5.2ms | ActiveRecord: 13.9ms) Cadenero::V1::Account Load (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (17.0ms) 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, 18 Jul 2013 02:21:25 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$7hytPDbLHOTW4qafppC2ueodHIDC1KSOoli.viroOYYkzYr8MRuxO"], ["updated_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00]]  (8.9ms) RELEASE SAVEPOINT active_record_1  (7.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (10.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 267], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6vPUtjsszb4yv6zsx6kt' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 267, "created_at" = '2013-07-18 02:21:25.412862', "updated_at" = '2013-07-18 02:21:25.412862', "auth_token" = '6vPUtjsszb4yv6zsx6kt' WHERE "public"."cadenero_accounts"."id" = 215  (9.5ms) RELEASE SAVEPOINT active_record_1  (3.0ms) 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", 215], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["user_id", 267]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NgaJKmszqUZdJsqLjEDz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 215, "user_id" = 267, "created_at" = '2013-07-18 02:21:25.444530', "updated_at" = '2013-07-18 02:21:25.444530', "auth_token" = 'NgaJKmszqUZdJsqLjEDz' WHERE "public"."cadenero_members"."id" = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (11.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (10.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, "auth_token" character varying(255))  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.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")  (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)  (13.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (26.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.6ms) SELECT version FROM "schema_migrations"  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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/users" for 127.0.0.1 at 2013-07-17 21:21:25 -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" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (24.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$o0NHHjG1PudMO7a5YxBPK.nr1OGuToeIWJYl.YORso/YsMr1VvEUy"], ["updated_at", Thu, 18 Jul 2013 02:21:25 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", 215], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:25 UTC +00:00], ["user_id", 268]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yqquhKtRq1Ppxrqu8FPR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 215, "user_id" = 268, "created_at" = '2013-07-18 02:21:25.757175', "updated_at" = '2013-07-18 02:21:25.757175', "auth_token" = 'yqquhKtRq1Ppxrqu8FPR' WHERE "public"."cadenero_members"."id" = 268  (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" = 268 LIMIT 1 Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 268 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 268 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 268 Completed 201 Created in 165ms (Views: 6.0ms | ActiveRecord: 29.7ms) Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/268" for 127.0.0.1 at 2013-07-17 21:21:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"268"} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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" = 215 AND "public"."cadenero_users"."id" = 268 LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 268 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 268 Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 268 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 268 Completed 200 OK in 22ms (Views: 7.5ms | ActiveRecord: 8.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-17 21:21:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 268 LIMIT 1 Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 268 Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 268 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 268 Completed 201 Created in 78ms (Views: 67.1ms | ActiveRecord: 9.2ms) 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" for 127.0.0.1 at 2013-07-17 21:21:25 -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" = 268 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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, 18 Jul 2013 02:21:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mTzbkWeM/6djWyidkDQUAODCysp0nZrdswSkwAD8zO4Q8Y1vTn.aa"], ["updated_at", Thu, 18 Jul 2013 02:21:26 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 (10.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 269], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bLWkVgeNE8LiiERtUFCx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 269, "created_at" = '2013-07-18 02:21:26.050475', "updated_at" = '2013-07-18 02:21:26.050475', "auth_token" = 'bLWkVgeNE8LiiERtUFCx' WHERE "public"."cadenero_accounts"."id" = 216  (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", 216], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["user_id", 269]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fiZpxKc6Yw1JLzgSyxMy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 216, "user_id" = 269, "created_at" = '2013-07-18 02:21:26.068324', "updated_at" = '2013-07-18 02:21:26.068324', "auth_token" = 'fiZpxKc6Yw1JLzgSyxMy' WHERE "public"."cadenero_members"."id" = 269  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (12.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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-17 21:21: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 ('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" = 216 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.5ms | 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  (5.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) COMMIT  (2.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$pyKqjEk1ABbmK/qZn.5ts.SkOtoYgARhBQHRZorVp3iMpfRxIvIyC"], ["updated_at", Thu, 18 Jul 2013 02:21:26 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" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 270], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Dfda9rdvD812wudrm1Fp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 270, "created_at" = '2013-07-18 02:21:26.350511', "updated_at" = '2013-07-18 02:21:26.350511', "auth_token" = 'Dfda9rdvD812wudrm1Fp' WHERE "public"."cadenero_accounts"."id" = 217  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", 217], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["user_id", 270]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xsQoGsFH3YB2j4rRMqNT' LIMIT 1  (4.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 217, "user_id" = 270, "created_at" = '2013-07-18 02:21:26.357173', "updated_at" = '2013-07-18 02:21:26.357173', "auth_token" = 'xsQoGsFH3YB2j4rRMqNT' WHERE "public"."cadenero_members"."id" = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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)   (4.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$sqg5GD3782n375u/2Nf1velh/VsCqFtuJK0KAEwapxftM3iEQ1feO"], ["updated_at", Thu, 18 Jul 2013 02:21: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 (6.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 271], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5gyXzCLi2fYxmHPXxGH8' LIMIT 1  (5.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 271, "created_at" = '2013-07-18 02:21:26.574896', "updated_at" = '2013-07-18 02:21:26.574896', "auth_token" = '5gyXzCLi2fYxmHPXxGH8' WHERE "public"."cadenero_accounts"."id" = 218  (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", 218], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["user_id", 271]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nsypkdFkP2e7cZXXFrws' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 218, "user_id" = 271, "created_at" = '2013-07-18 02:21:26.592422', "updated_at" = '2013-07-18 02:21:26.592422', "auth_token" = 'nsypkdFkP2e7cZXXFrws' WHERE "public"."cadenero_members"."id" = 271  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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-17 21:21:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@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 ('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" = 217 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (6.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$EMNOeBFukJ9Qh1QBNRVfYOfbw4biBheuiXjHmb2WOS.XvCE3.KDm2"], ["updated_at", Thu, 18 Jul 2013 02:21: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" = 'test12' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 272], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Xpj76rnziuHqyytm4ENR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 272, "created_at" = '2013-07-18 02:21:26.806374', "updated_at" = '2013-07-18 02:21:26.806374', "auth_token" = 'Xpj76rnziuHqyytm4ENR' WHERE "public"."cadenero_accounts"."id" = 219  (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", 219], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:26 UTC +00:00], ["user_id", 272]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ypgXjn6LdmXTpReTSpyk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 219, "user_id" = 272, "created_at" = '2013-07-18 02:21:26.813460', "updated_at" = '2013-07-18 02:21:26.813460', "auth_token" = 'ypgXjn6LdmXTpReTSpyk' WHERE "public"."cadenero_members"."id" = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) CREATE SCHEMA "test12"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))  (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.2ms) 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")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (9.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21:26 -0500 Cadenero::V1::Account Load (6.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$A25m3weq/O4z312iACWP5.izH29hx4Rbo3aIV7V/h89b/FjfWwzB."], ["updated_at", Thu, 18 Jul 2013 02:21: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" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 273], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'geYqs8KMzVmeYC4PDA7v' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 273, "created_at" = '2013-07-18 02:21:27.117124', "updated_at" = '2013-07-18 02:21:27.117124', "auth_token" = 'geYqs8KMzVmeYC4PDA7v' WHERE "public"."cadenero_accounts"."id" = 220  (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", 220], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["user_id", 273]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'swqvENMCbwsUvu7Rpiti' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 220, "user_id" = 273, "created_at" = '2013-07-18 02:21:27.122812', "updated_at" = '2013-07-18 02:21:27.122812', "auth_token" = 'swqvENMCbwsUvu7Rpiti' WHERE "public"."cadenero_members"."id" = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (8.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (7.6ms) 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, "auth_token" character varying(255))  (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.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)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:21:27 -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 ('test13') 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" = 220 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | ActiveRecord: 6.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  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) COMMIT  (0.4ms) BEGIN  (6.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$iZTMkujrVUDMkN6tpEtpoeEieuY3FpQqL7NPah.KyOdVG8bYzq/pG"], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 274], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rHuYb2SJxSzQ6Cru1MxZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 274, "created_at" = '2013-07-18 02:21:27.374118', "updated_at" = '2013-07-18 02:21:27.374118', "auth_token" = 'rHuYb2SJxSzQ6Cru1MxZ' WHERE "public"."cadenero_accounts"."id" = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 221], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["user_id", 274]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bLgztixqzoDK8wFyakQE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 221, "user_id" = 274, "created_at" = '2013-07-18 02:21:27.381091', "updated_at" = '2013-07-18 02:21:27.381091', "auth_token" = 'bLgztixqzoDK8wFyakQE' WHERE "public"."cadenero_members"."id" = 274  (5.1ms) RELEASE SAVEPOINT active_record_1  (3.9ms) CREATE SCHEMA "test14"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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.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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 274 Started GET "/v1?auth_token[]=bLgztixqzoDK8wFyakQE" for 127.0.0.1 at 2013-07-17 21:21:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["bLgztixqzoDK8wFyakQE"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 221 AND "public"."cadenero_members"."auth_token" IN ('bLgztixqzoDK8wFyakQE') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 274 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 274 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$bMbzRKNi2IZHAT3dxDxsgu2.wVpqtyCdEylVlIN4WjenftJAtkLZO"], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 275], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zqrkGSExqXS9CqBY69Wn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 275, "created_at" = '2013-07-18 02:21:27.629794', "updated_at" = '2013-07-18 02:21:27.629794', "auth_token" = 'zqrkGSExqXS9CqBY69Wn' WHERE "public"."cadenero_accounts"."id" = 222  (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", 222], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["user_id", 275]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9sqY3tQuboaRuxuCZAQB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 222, "user_id" = 275, "created_at" = '2013-07-18 02:21:27.635377', "updated_at" = '2013-07-18 02:21:27.635377', "auth_token" = '9sqY3tQuboaRuxuCZAQB' WHERE "public"."cadenero_members"."id" = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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))  (4.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.8ms) 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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (8.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$MYvVGt7KkbXBypuV9mhlGuKagf.2n6kop1iC4.J6Cr0U76maT.0P2"], ["updated_at", Thu, 18 Jul 2013 02:21:27 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" = 'test16' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 276], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yBdXE1qZgVh4yjhPWTLP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 276, "created_at" = '2013-07-18 02:21:27.880813', "updated_at" = '2013-07-18 02:21:27.880813', "auth_token" = 'yBdXE1qZgVh4yjhPWTLP' WHERE "public"."cadenero_accounts"."id" = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 223], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:27 UTC +00:00], ["user_id", 276]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '49pnFjPK5gBAeseqgtAU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 223, "user_id" = 276, "created_at" = '2013-07-18 02:21:27.901697', "updated_at" = '2013-07-18 02:21:27.901697', "auth_token" = '49pnFjPK5gBAeseqgtAU' WHERE "public"."cadenero_members"."id" = 276  (0.1ms) RELEASE SAVEPOINT active_record_1  (17.9ms) CREATE SCHEMA "test16"  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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, "auth_token" character varying(255))   (3.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")  (7.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.3ms) 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 ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 276 Started GET "/v1?auth_token[]=49pnFjPK5gBAeseqgtAU" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["49pnFjPK5gBAeseqgtAU"], "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (4.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 222 AND "public"."cadenero_members"."auth_token" IN ('49pnFjPK5gBAeseqgtAU') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 5.0ms)  (10.7ms) ROLLBACK  (5.0ms) BEGIN  (0.1ms) COMMIT  (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", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$AQMjBxjjXErngucpyGbYtO2OExaN8A2u6430x2vpaIYkVZCFeGiGu"], ["updated_at", Thu, 18 Jul 2013 02:21: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" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 277], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pbKesZkTUPq5noiRpKVS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 277, "created_at" = '2013-07-18 02:21:28.174062', "updated_at" = '2013-07-18 02:21:28.174062', "auth_token" = 'pbKesZkTUPq5noiRpKVS' WHERE "public"."cadenero_accounts"."id" = 224  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 224], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["user_id", 277]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hWdjseKx2p77Fuk9vcZr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 224, "user_id" = 277, "created_at" = '2013-07-18 02:21:28.183618', "updated_at" = '2013-07-18 02:21:28.183618', "auth_token" = 'hWdjseKx2p77Fuk9vcZr' WHERE "public"."cadenero_members"."id" = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (11.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 277 Started GET "/v1?auth_token[]=hWdjseKx2p77Fuk9vcZr" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["hWdjseKx2p77Fuk9vcZr"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 224 AND "public"."cadenero_members"."auth_token" IN ('hWdjseKx2p77Fuk9vcZr') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 277 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 277 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1/users/277" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"277"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/277?auth_token[]=hWdjseKx2p77Fuk9vcZr" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["hWdjseKx2p77Fuk9vcZr"], "default"=>:json, "id"=>"277"} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 224 AND "public"."cadenero_members"."auth_token" IN ('hWdjseKx2p77Fuk9vcZr') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 277 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.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" = 224 AND "public"."cadenero_users"."id" = 277 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 277 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 277 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 277 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 277 Completed 200 OK in 22ms (Views: 9.3ms | ActiveRecord: 4.2ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$TbwLHWAOpoWCWSFkK37NI.RHbpycP7pQcQZMS/K.3IbO6Gta9jOY2"], ["updated_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 278], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bCCwRcf3s6ByrsA28zF4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 278, "created_at" = '2013-07-18 02:21:28.473190', "updated_at" = '2013-07-18 02:21:28.473190', "auth_token" = 'bCCwRcf3s6ByrsA28zF4' WHERE "public"."cadenero_accounts"."id" = 225  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", 225], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["user_id", 278]] Cadenero::Member Load (9.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3qvtWuzV2q32qYNJNNEy' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 225, "user_id" = 278, "created_at" = '2013-07-18 02:21:28.479552', "updated_at" = '2013-07-18 02:21:28.479552', "auth_token" = '3qvtWuzV2q32qYNJNNEy' WHERE "public"."cadenero_members"."id" = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test18"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (8.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")  (13.4ms) 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)  (2.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:21:28 -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" = 'test18' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Dk0F5WDQxRJqhToavkPqRu2GwmJz4AFRaSZXJigf0vQn5bRNQ7pz6"], ["updated_at", Thu, 18 Jul 2013 02:21:28 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", 225], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:21:28 UTC +00:00], ["user_id", 279]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qg8q12z7ZFKiZx5x5sX3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 225, "user_id" = 279, "created_at" = '2013-07-18 02:21:28.731671', "updated_at" = '2013-07-18 02:21:28.731671', "auth_token" = 'qg8q12z7ZFKiZx5x5sX3' WHERE "public"."cadenero_members"."id" = 279  (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" = 279 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 279 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 279 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 279 Completed 201 Created in 132ms (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/279" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"279"} Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 Cadenero::User Load (3.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" = 225 AND "public"."cadenero_users"."id" = 279 LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 279 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 279 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 279 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 279 Completed 200 OK in 56ms (Views: 6.7ms | ActiveRecord: 11.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 278 Started GET "/v1?auth_token[]=3qvtWuzV2q32qYNJNNEy" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["3qvtWuzV2q32qYNJNNEy"], "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test18') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 225 AND "public"."cadenero_members"."auth_token" IN ('3qvtWuzV2q32qYNJNNEy') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 278 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 278 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 279 Started GET "/v1?auth_token[]=qg8q12z7ZFKiZx5x5sX3" for 127.0.0.1 at 2013-07-17 21:21:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["qg8q12z7ZFKiZx5x5sX3"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test18') LIMIT 1 Cadenero::Member Load (12.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 225 AND "public"."cadenero_members"."auth_token" IN ('qg8q12z7ZFKiZx5x5sX3') LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 279 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 279 LIMIT 1 Completed 200 OK in 22ms (Views: 0.2ms | ActiveRecord: 15.1ms)  (6.3ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (2.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (2.4ms) ROLLBACK  (3.6ms) BEGIN  (9.1ms) COMMIT  (3.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.1ms) ROLLBACK  (0.1ms) BEGIN  (2.3ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (6.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (3.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 137ms (Views: 122.0ms | ActiveRecord: 14.7ms)  (0.4ms) ROLLBACK  (9.4ms) BEGIN  (0.3ms) COMMIT  (1.6ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (10.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (7.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 27ms (Views: 6.1ms | ActiveRecord: 20.2ms)  (10.0ms) ROLLBACK  (7.0ms) BEGIN  (10.0ms) COMMIT  (10.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  (3.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN 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.1ms) BEGIN  (2.8ms) COMMIT  (0.1ms) BEGIN  (11.8ms) 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 (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:22:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$qRbF87DSFeH..w6hzFbxBuJosYduOyw.N8Lgfn7o3ULlEtA0vwalG"], ["updated_at", Thu, 18 Jul 2013 02:22:58 UTC +00:00]] SQL (13.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:58 UTC +00:00], ["name", "Test Account"], ["owner_id", 280], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 02:22:58 UTC +00:00]] Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pL7uv9uRRZNbh1AQaoss' LIMIT 1  (10.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 280, "created_at" = '2013-07-18 02:22:58.455102', "updated_at" = '2013-07-18 02:22:58.455102', "auth_token" = 'pL7uv9uRRZNbh1AQaoss' WHERE "public"."cadenero_accounts"."id" = 226  (9.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 226], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:22:58 UTC +00:00], ["user_id", 280]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'w59aesDtrL8oxq1oCQ9x' LIMIT 1  (5.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 226, "user_id" = 280, "created_at" = '2013-07-18 02:22:58.530738', "updated_at" = '2013-07-18 02:22:58.530738', "auth_token" = 'w59aesDtrL8oxq1oCQ9x' WHERE "public"."cadenero_members"."id" = 280  (10.1ms) RELEASE SAVEPOINT active_record_1  (7.1ms) CREATE SCHEMA "test"  (7.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (6.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))   (0.8ms) 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.2ms) 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.1ms) 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 ('20130717234244')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') 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" = 226 LIMIT 1  (11.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (14.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ADmS185FCI5./pua3TvyNu4ACUH6LqgA7vtF/FWdfrZ6Hyb9EH8Cq"], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00]]  (37.4ms) RELEASE SAVEPOINT active_record_1  (3.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 281], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sYmJGEQJKoqPLJg7yRW6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 281, "created_at" = '2013-07-18 02:22:59.122139', "updated_at" = '2013-07-18 02:22:59.122139', "auth_token" = 'sYmJGEQJKoqPLJg7yRW6' WHERE "public"."cadenero_accounts"."id" = 227  (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", 227], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["user_id", 281]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3qsTByRHYpwx15yeEnzi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 227, "user_id" = 281, "created_at" = '2013-07-18 02:22:59.128137', "updated_at" = '2013-07-18 02:22:59.128137', "auth_token" = '3qsTByRHYpwx15yeEnzi' WHERE "public"."cadenero_members"."id" = 281  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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")  (6.6ms) 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")  (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.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 ('20130717234244')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:22: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 (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) 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", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$TgWRl2m13tXYVodVSsFb5eJdc3OerTJRUHMoTD1aZ1bQoLWecimI."], ["updated_at", Thu, 18 Jul 2013 02:22: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", 227], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["user_id", 282]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pvZsd1gjoFWDTm9kFfBr' LIMIT 1  (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 227, "user_id" = 282, "created_at" = '2013-07-18 02:22:59.371288', "updated_at" = '2013-07-18 02:22:59.371288', "auth_token" = 'pvZsd1gjoFWDTm9kFfBr' WHERE "public"."cadenero_members"."id" = 282  (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" = 282 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 282 Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 282 Cadenero::V1::Account Load (14.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" = 282 Completed 201 Created in 193ms (Views: 7.3ms | ActiveRecord: 29.9ms) Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/282" for 127.0.0.1 at 2013-07-17 21:22:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"282"} 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" = 227 AND "public"."cadenero_users"."id" = 282 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 282 LIMIT 1 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 282 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 282 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" = 282 Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 2.4ms)  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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, 18 Jul 2013 02:22:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$OA8ZLXuAvErtxS38y50lVOUaHT3mozvwKmbenlyqfyI4aQXIzr26a"], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 283], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'HX3fPyKpiCsTRavxQFPQ' LIMIT 1  (4.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 283, "created_at" = '2013-07-18 02:22:59.619571', "updated_at" = '2013-07-18 02:22:59.619571', "auth_token" = 'HX3fPyKpiCsTRavxQFPQ' WHERE "public"."cadenero_accounts"."id" = 228  (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", 228], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["user_id", 283]] Cadenero::Member Load (4.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6zjCWsxoV1zhe3yoppQ6' LIMIT 1  (5.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 228, "user_id" = 283, "created_at" = '2013-07-18 02:22:59.629505', "updated_at" = '2013-07-18 02:22:59.629505', "auth_token" = '6zjCWsxoV1zhe3yoppQ6' WHERE "public"."cadenero_members"."id" = 283  (5.5ms) RELEASE SAVEPOINT active_record_1  (4.8ms) CREATE SCHEMA "test2"  (3.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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)  (3.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 ('20130717234244')  (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')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:22: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 (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vLbk3cfRRs8fnXsSatnosOt7lu6p1QK41MpjvCvRRjo1Q7PKv1nhu"], ["updated_at", Thu, 18 Jul 2013 02:22: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", 228], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["user_id", 284]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tM4PnR8hAUUFQqcdtFu3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 228, "user_id" = 284, "created_at" = '2013-07-18 02:22:59.838230', "updated_at" = '2013-07-18 02:22:59.838230', "auth_token" = 'tM4PnR8hAUUFQqcdtFu3' WHERE "public"."cadenero_members"."id" = 284  (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" = 284 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 284 Cadenero::V1::Account Load (6.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 284 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" = 284 Completed 201 Created in 131ms (Views: 6.0ms | ActiveRecord: 15.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/284" for 127.0.0.1 at 2013-07-17 21:22:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"284"} Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 228 AND "public"."cadenero_users"."id" = 284 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 284 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 284 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 284 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 284 Completed 200 OK in 15ms (Views: 6.0ms | ActiveRecord: 6.0ms) Cadenero::User Load (10.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (8.0ms) 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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 284], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00]] Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DxquhmXz957Dbyis6qsq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 284, "created_at" = '2013-07-18 02:22:59.901991', "updated_at" = '2013-07-18 02:22:59.901991', "auth_token" = 'DxquhmXz957Dbyis6qsq' WHERE "public"."cadenero_accounts"."id" = 229  (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", 229], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:22:59 UTC +00:00], ["user_id", 284]] Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8dsjBqeqyrM3nPLcjp9P' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 229, "user_id" = 284, "created_at" = '2013-07-18 02:22:59.913731', "updated_at" = '2013-07-18 02:22:59.913731', "auth_token" = '8dsjBqeqyrM3nPLcjp9P' WHERE "public"."cadenero_members"."id" = 285  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.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, "auth_token" character varying(255))   (12.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) 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.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 ('20130717234244')  (6.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:23: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 (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$w5fSeRva9Zcxco0iWwNiduFIWFdJJeYhJ1Sr3Op5JQ6jmNXzGm9oa"], ["updated_at", Thu, 18 Jul 2013 02:23:00 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", 229], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:00 UTC +00:00], ["user_id", 285]] Cadenero::Member Load (8.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8L2vKVqeNXUBgxKqH4Qh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 229, "user_id" = 285, "created_at" = '2013-07-18 02:23:00.129053', "updated_at" = '2013-07-18 02:23:00.129053', "auth_token" = '8L2vKVqeNXUBgxKqH4Qh' WHERE "public"."cadenero_members"."id" = 286  (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" = 285 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 285 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 285 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 285 Completed 201 Created in 139ms (Views: 5.8ms | ActiveRecord: 12.9ms) Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/285" for 127.0.0.1 at 2013-07-17 21:23:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"285"} 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" = 229 AND "public"."cadenero_users"."id" = 285 LIMIT 1 Cadenero::User Load (3.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 285 LIMIT 1 Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 285 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 285 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 285 Completed 200 OK in 21ms (Views: 8.8ms | ActiveRecord: 8.8ms) Started GET "/v1/users/284" for 127.0.0.1 at 2013-07-17 21:23:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"284"} 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" = 228 AND "public"."cadenero_users"."id" = 284 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 284 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 284 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 284 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 284 Completed 200 OK in 16ms (Views: 6.5ms | ActiveRecord: 1.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 21:23: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" = 228 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 284 LIMIT 1 Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 284 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 284 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 284 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 283 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 283 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" = 283 Completed 200 OK in 19ms (Views: 11.9ms | ActiveRecord: 5.8ms)  (12.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$x88CUtbcdV.y9s52BxBblevSSt5UJX8Sa57jFqpKwbM0HsiPW9dBa"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 286], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jjVpGMY7pGFKw8Xjax8p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 286, "created_at" = '2013-07-18 02:23:04.022462', "updated_at" = '2013-07-18 02:23:04.022462', "auth_token" = 'jjVpGMY7pGFKw8Xjax8p' WHERE "public"."cadenero_accounts"."id" = 230  (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", 230], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["user_id", 286]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pTFrUfGAEpKkxz8kpAd9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 230, "user_id" = 286, "created_at" = '2013-07-18 02:23:04.029428', "updated_at" = '2013-07-18 02:23:04.029428', "auth_token" = 'pTFrUfGAEpKkxz8kpAd9' WHERE "public"."cadenero_members"."id" = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Wj.WlUGHxzuOcSUe8DGVdu.9sitUen6fqt1fZvSeiSPnZnBwECEza"], ["updated_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$W0fsUmvUiSrFM0qOuEa1leLOmDZ3fASEyQ.e1P2BoRawztKmax3Hi"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["name", "Root"], ["owner_id", 288], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZbnUCNgspnVqph8hyqEm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 288, "created_at" = '2013-07-18 02:23:04.233037', "updated_at" = '2013-07-18 02:23:04.233037', "auth_token" = 'ZbnUCNgspnVqph8hyqEm' WHERE "public"."cadenero_accounts"."id" = 231  (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", 231], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:04 UTC +00:00], ["user_id", 288]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pcBdopHTqQcpXNA9GrYC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 231, "user_id" = 288, "created_at" = '2013-07-18 02:23:04.239021', "updated_at" = '2013-07-18 02:23:04.239021', "auth_token" = 'pcBdopHTqQcpXNA9GrYC' WHERE "public"."cadenero_members"."id" = 288  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130717234244')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.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", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'o1WG9zts6iYBVsjif9XJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 02:23:09.039496', "updated_at" = '2013-07-18 02:23:09.039496', "auth_token" = 'o1WG9zts6iYBVsjif9XJ' WHERE "public"."cadenero_members"."id" = 289  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 21:23: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 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$biums0/5xLkixrmSXWGUXex/VHjnCDRKYzVWctKDGsoUu3tfLL1aK"], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["name", "Testy"], ["owner_id", 289], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Ss6gtzKsxKy4ygk9CRvY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 289, "created_at" = '2013-07-18 02:23:09.161741', "updated_at" = '2013-07-18 02:23:09.161741', "auth_token" = 'Ss6gtzKsxKy4ygk9CRvY' WHERE "public"."cadenero_accounts"."id" = 232  (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", 232], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["user_id", 289]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ykaqqV2qUkp6cXF4qz5F' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 232, "user_id" = 289, "created_at" = '2013-07-18 02:23:09.167602', "updated_at" = '2013-07-18 02:23:09.167602', "auth_token" = 'ykaqqV2qUkp6cXF4qz5F' WHERE "public"."cadenero_members"."id" = 290  (0.1ms) 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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.8ms) 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" != 232) LIMIT 1 Completed 201 Created in 165ms (Views: 1.8ms | ActiveRecord: 33.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$d8U0vgy8NhHFGJE179RLv.avTTDpVKmb.6Au1hZvvpJBdY38GhJOu"], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["name", "Testy"], ["owner_id", 290], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cZZNM6pQbQxAuN8scQrp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 290, "created_at" = '2013-07-18 02:23:09.334829', "updated_at" = '2013-07-18 02:23:09.334829', "auth_token" = 'cZZNM6pQbQxAuN8scQrp' WHERE "public"."cadenero_accounts"."id" = 233  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 21:23: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.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 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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$pImPWBc9qZL.Wa5L.6PvreA02v3S6Y73s6x1cWl8yQsAOKgqWr262"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 291], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '25hjH1pYwugqcQqVYyLW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 291, "created_at" = '2013-07-18 02:23:09.555092', "updated_at" = '2013-07-18 02:23:09.555092', "auth_token" = '25hjH1pYwugqcQqVYyLW' WHERE "public"."cadenero_accounts"."id" = 234  (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", 234], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["user_id", 291]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y4R26xZ1sHxq1nxN4pvJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 234, "user_id" = 291, "created_at" = '2013-07-18 02:23:09.560629', "updated_at" = '2013-07-18 02:23:09.560629', "auth_token" = 'y4R26xZ1sHxq1nxN4pvJ' WHERE "public"."cadenero_members"."id" = 291  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23: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 ('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" = 234 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" = 291 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 291 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 291 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 291 Completed 201 Created in 109ms (Views: 5.7ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 291 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23:09 -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" = 291 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$TzsR.ldptVH1nx7Wdfa97ePSO/cC0pgeyUhJ5g2Ynp/OYoNL3ICOW"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 292], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xfs8QKw9W1sw1p9WhzuV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 292, "created_at" = '2013-07-18 02:23:09.911093', "updated_at" = '2013-07-18 02:23:09.911093', "auth_token" = 'xfs8QKw9W1sw1p9WhzuV' WHERE "public"."cadenero_accounts"."id" = 235  (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", 235], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:09 UTC +00:00], ["user_id", 292]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DBYKzxskKdg5UX6JCNPV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 235, "user_id" = 292, "created_at" = '2013-07-18 02:23:09.916632', "updated_at" = '2013-07-18 02:23:09.916632', "auth_token" = 'DBYKzxskKdg5UX6JCNPV' WHERE "public"."cadenero_members"."id" = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (9.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (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, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:23:09 -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.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$0QMKunTkt/w8ugtMonz8iuZyYtiKofi5xqI.U2PDZAzi6K8h5TC9C"], ["updated_at", Thu, 18 Jul 2013 02:23: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", 235], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["user_id", 293]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z2qFrRxBspKiVMLGRF2Y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 235, "user_id" = 293, "created_at" = '2013-07-18 02:23:10.088390', "updated_at" = '2013-07-18 02:23:10.088390', "auth_token" = 'Z2qFrRxBspKiVMLGRF2Y' WHERE "public"."cadenero_members"."id" = 293  (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" = 293 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 293 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 293 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 293 Completed 201 Created in 117ms (Views: 5.8ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/293" for 127.0.0.1 at 2013-07-17 21:23:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"293"} 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" = 235 AND "public"."cadenero_users"."id" = 293 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 293 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 293 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 293 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" = 293 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23: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" = 293 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 293 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 293 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 293 Completed 201 Created in 8ms (Views: 4.9ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23:10 -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" = 293 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$.9QlsVblleVRliUWpiVNW.lLHgLtC7RJ6b4et.nJepS3/CNgQq.76"], ["updated_at", Thu, 18 Jul 2013 02:23: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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 294], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'AzyW3zi9HmSmSZfsob81' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 294, "created_at" = '2013-07-18 02:23:10.432005', "updated_at" = '2013-07-18 02:23:10.432005', "auth_token" = 'AzyW3zi9HmSmSZfsob81' WHERE "public"."cadenero_accounts"."id" = 236  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.3ms) 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", 236], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["user_id", 294]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WzHemzXyL3yoiqoB9axy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 236, "user_id" = 294, "created_at" = '2013-07-18 02:23:10.441925', "updated_at" = '2013-07-18 02:23:10.441925', "auth_token" = 'WzHemzXyL3yoiqoB9axy' WHERE "public"."cadenero_members"."id" = 294  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (11.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.6ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (16.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.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, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.7ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23:10 -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 ('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" = 236 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 294 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 294 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 294 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" = 294 Completed 201 Created in 139ms (Views: 5.7ms | 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 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 294 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23:10 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"294", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 294 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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.2ms | ActiveRecord: 0.0ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.6ms) SAVEPOINT active_record_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", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$cGOO/.GFa.YxpoXnIPbC3ObB9iJrU0YemIoz53c3aDAqUE8vk7c6G"], ["updated_at", Thu, 18 Jul 2013 02:23:10 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" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 295], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zasLC1Prg4SmpBoBD4PY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 295, "created_at" = '2013-07-18 02:23:10.887870', "updated_at" = '2013-07-18 02:23:10.887870', "auth_token" = 'zasLC1Prg4SmpBoBD4PY' WHERE "public"."cadenero_accounts"."id" = 237  (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", 237], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:10 UTC +00:00], ["user_id", 295]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gztJFT1igyi3RhWhNscx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 237, "user_id" = 295, "created_at" = '2013-07-18 02:23:10.893859', "updated_at" = '2013-07-18 02:23:10.893859', "auth_token" = 'gztJFT1igyi3RhWhNscx' WHERE "public"."cadenero_members"."id" = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (18.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.0ms) 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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23: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.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" = 237 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (10.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 295 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 295 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 295 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" = 295 Completed 201 Created in 176ms (Views: 5.6ms | ActiveRecord: 22.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 295 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"295", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 295 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 21:23: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (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", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$SYXv72qOhcsevv6yVcTW9uVkJZce6aLCtXhNYhNoc7Ha5DBl9up6W"], ["updated_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00]] SQL (6.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", 237], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["user_id", 296]] Cadenero::Member Load (24.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3VopPxpzHUt5NkYxKAZt' LIMIT 1  (3.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 237, "user_id" = 296, "created_at" = '2013-07-18 02:23:11.335010', "updated_at" = '2013-07-18 02:23:11.335010', "auth_token" = '3VopPxpzHUt5NkYxKAZt' WHERE "public"."cadenero_members"."id" = 296  (4.7ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 296 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 296 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 296 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" = 296 Completed 201 Created in 224ms (Views: 6.2ms | ActiveRecord: 43.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/296" for 127.0.0.1 at 2013-07-17 21:23:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"296"} 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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 237 AND "public"."cadenero_users"."id" = 296 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 296 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 296 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 296 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" = 296 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23: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" = 296 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 296 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 296 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" = 296 Completed 201 Created in 7ms (Views: 5.2ms | 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.6ms) ROLLBACK  (1.4ms) BEGIN  (3.0ms) COMMIT  (4.9ms) BEGIN  (5.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", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$hwVq5VokQ2QdPvBfit4C0.MgWnjoM6dGFX6Mygk6g792GBe3qLX2W"], ["updated_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (15.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (3.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 297], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cDoxq5pc2HAAdrmpigkQ' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 297, "created_at" = '2013-07-18 02:23:11.639234', "updated_at" = '2013-07-18 02:23:11.639234', "auth_token" = 'cDoxq5pc2HAAdrmpigkQ' WHERE "public"."cadenero_accounts"."id" = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.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", 238], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:11 UTC +00:00], ["user_id", 297]] Cadenero::Member Load (7.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aG3MddzXTMLb9noxnwJ2' LIMIT 1  (10.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 238, "user_id" = 297, "created_at" = '2013-07-18 02:23:11.654627', "updated_at" = '2013-07-18 02:23:11.654627', "auth_token" = 'aG3MddzXTMLb9noxnwJ2' WHERE "public"."cadenero_members"."id" = 297  (12.9ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test9"  (11.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (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, "updated_at" timestamp, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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-17 21:23: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 (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (9.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 238 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 24ms (Views: 0.4ms | ActiveRecord: 19.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  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$xVYii1KZ.SsfbK.DR9f0W.cvWE7Nf.6fgFg31nH09YQkzJmPh5kNm"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 298], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zad1b22DZXBnxnYTGKUW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 298, "created_at" = '2013-07-18 02:23:12.040094', "updated_at" = '2013-07-18 02:23:12.040094', "auth_token" = 'zad1b22DZXBnxnYTGKUW' WHERE "public"."cadenero_accounts"."id" = 239  (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", 239], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["user_id", 298]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gzMdeqE4D9ixMqVsNjrc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 239, "user_id" = 298, "created_at" = '2013-07-18 02:23:12.045562', "updated_at" = '2013-07-18 02:23:12.045562', "auth_token" = 'gzMdeqE4D9ixMqVsNjrc' WHERE "public"."cadenero_members"."id" = 298  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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, "updated_at" timestamp)  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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-17 21:23: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 (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') 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" = 239 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | ActiveRecord: 7.1ms) Cadenero::V1::Account Load (13.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (9.0ms) ROLLBACK  (1.7ms) BEGIN  (0.1ms) COMMIT  (0.1ms) 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", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$iO9chR4DkoAWWQm/AsCYi.Q0SkAfAeJ.jH6F8eNIVGGT2LK.dnXIa"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 299], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ejDDuagyBC7DHahZzGHe' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 299, "created_at" = '2013-07-18 02:23:12.285374', "updated_at" = '2013-07-18 02:23:12.285374', "auth_token" = 'ejDDuagyBC7DHahZzGHe' WHERE "public"."cadenero_accounts"."id" = 240  (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", 240], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["user_id", 299]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Fcpq7tYpkADjgWRVMV3a' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 240, "user_id" = 299, "created_at" = '2013-07-18 02:23:12.293814', "updated_at" = '2013-07-18 02:23:12.293814', "auth_token" = 'Fcpq7tYpkADjgWRVMV3a' WHERE "public"."cadenero_members"."id" = 299  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.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")  (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, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$9zSy0EgQLo52KaZnmcEofuFWOEspHt/Ul.g7JoxQcm1dTwwg834UO"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test12' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 300], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'J3woy6E1bw7o4pPGMZqj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 300, "created_at" = '2013-07-18 02:23:12.507841', "updated_at" = '2013-07-18 02:23:12.507841', "auth_token" = 'J3woy6E1bw7o4pPGMZqj' WHERE "public"."cadenero_accounts"."id" = 241  (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", 241], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["user_id", 300]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Lqht4xTG2eAp3GQYzuYK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 241, "user_id" = 300, "created_at" = '2013-07-18 02:23:12.514009', "updated_at" = '2013-07-18 02:23:12.514009', "auth_token" = 'Lqht4xTG2eAp3GQYzuYK' WHERE "public"."cadenero_members"."id" = 300  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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-17 21:23:12 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 240 AND "public"."cadenero_users"."email" = 'user12@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (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" = 'user@example.com' LIMIT 1  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$i5UVGxpwr5.ZS2sdmj2rjuXIJ3k69.nNtDCiC6wVHWBbmHssKTfsW"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 301], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KaSVQ4aPxpsas2KXzymM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 301, "created_at" = '2013-07-18 02:23:12.709927', "updated_at" = '2013-07-18 02:23:12.709927', "auth_token" = 'KaSVQ4aPxpsas2KXzymM' WHERE "public"."cadenero_accounts"."id" = 242  (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", 242], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["user_id", 301]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bcCythVLU3p6EZywzXz4' LIMIT 1  (12.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 242, "user_id" = 301, "created_at" = '2013-07-18 02:23:12.715878', "updated_at" = '2013-07-18 02:23:12.715878', "auth_token" = 'bcCythVLU3p6EZywzXz4' WHERE "public"."cadenero_members"."id" = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 21:23: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  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$mNb5a5Tah6B0nonrzzNFDOUl18ipnUpApyInAzqZidq3qrE7/RWrG"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 302], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'chKDb1CtFqq1ohWB98PR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 302, "created_at" = '2013-07-18 02:23:12.975325', "updated_at" = '2013-07-18 02:23:12.975325', "auth_token" = 'chKDb1CtFqq1ohWB98PR' WHERE "public"."cadenero_accounts"."id" = 243  (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", 243], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:12 UTC +00:00], ["user_id", 302]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j2QQ7NnCWnaEBxdm7QWT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 243, "user_id" = 302, "created_at" = '2013-07-18 02:23:12.981195', "updated_at" = '2013-07-18 02:23:12.981195', "auth_token" = 'j2QQ7NnCWnaEBxdm7QWT' WHERE "public"."cadenero_members"."id" = 302  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (9.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (13.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (13.1ms) 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")  (12.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (16.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 302 Started GET "/v1?auth_token[]=j2QQ7NnCWnaEBxdm7QWT" for 127.0.0.1 at 2013-07-17 21:23:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["j2QQ7NnCWnaEBxdm7QWT"], "default"=>:json} Cadenero::V1::Account Load (10.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 243 AND "public"."cadenero_members"."auth_token" IN ('j2QQ7NnCWnaEBxdm7QWT') LIMIT 1 Cadenero::User Load (9.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 302 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 302 LIMIT 1 Completed 200 OK in 29ms (Views: 0.2ms | ActiveRecord: 20.7ms)  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.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", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$zRs1kK0Z4Kx46crXK9pi3eQ80qbsftmyxLIQIMhl2k/UXT6.SVoli"], ["updated_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (6.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 303], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00]] Cadenero::V1::Account Load (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WcJJEshphuyrxxVMzoCs' LIMIT 1  (2.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 303, "created_at" = '2013-07-18 02:23:13.443778', "updated_at" = '2013-07-18 02:23:13.443778', "auth_token" = 'WcJJEshphuyrxxVMzoCs' WHERE "public"."cadenero_accounts"."id" = 244  (9.7ms) RELEASE SAVEPOINT active_record_1  (2.8ms) SAVEPOINT active_record_1 SQL (9.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", 244], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["user_id", 303]] Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W1tfkSGsH3W39yCBPQc7' LIMIT 1  (6.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 244, "user_id" = 303, "created_at" = '2013-07-18 02:23:13.470865', "updated_at" = '2013-07-18 02:23:13.470865', "auth_token" = 'W1tfkSGsH3W39yCBPQc7' WHERE "public"."cadenero_members"."id" = 303  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) CREATE SCHEMA "test15"  (3.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (7.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.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, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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/users" for 127.0.0.1 at 2013-07-17 21:23: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$MOADhK3BN9AS9TOs.8y/O.DQvz6cMMpuUOxvaJjpt3vYiL/JVHh9m"], ["updated_at", Thu, 18 Jul 2013 02:23:13 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", 244], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["user_id", 304]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iBv1wkimYuWJLHqq7zsb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 244, "user_id" = 304, "created_at" = '2013-07-18 02:23:13.679021', "updated_at" = '2013-07-18 02:23:13.679021', "auth_token" = 'iBv1wkimYuWJLHqq7zsb' WHERE "public"."cadenero_members"."id" = 304  (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" = 304 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 304 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" = 304 Completed 201 Created in 123ms (Views: 5.7ms | 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/304" for 127.0.0.1 at 2013-07-17 21:23:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"304"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 244 AND "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 304 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 304 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" = 304 Completed 200 OK in 14ms (Views: 6.2ms | ActiveRecord: 4.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 303 Started GET "/v1?auth_token[]=W1tfkSGsH3W39yCBPQc7" for 127.0.0.1 at 2013-07-17 21:23:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["W1tfkSGsH3W39yCBPQc7"], "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (3.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 244 AND "public"."cadenero_members"."auth_token" IN ('W1tfkSGsH3W39yCBPQc7') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 303 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 303 LIMIT 1 Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 4.6ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 304 Started GET "/v1?auth_token[]=iBv1wkimYuWJLHqq7zsb" for 127.0.0.1 at 2013-07-17 21:23:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["iBv1wkimYuWJLHqq7zsb"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 244 AND "public"."cadenero_members"."auth_token" IN ('iBv1wkimYuWJLHqq7zsb') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 304 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 304 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (6.8ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$YMP6iHyXuyinT0bCrzW2..cjaCzRi05iWNPXFBwyPSWOvAGjBtJgW"], ["updated_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00]]  (3.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (15.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (2.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 305], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 02:23:13 UTC +00:00]] Cadenero::V1::Account Load (8.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mmsq9fZxoy4JY3u55tRA' LIMIT 1  (7.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 305, "created_at" = '2013-07-18 02:23:13.969414', "updated_at" = '2013-07-18 02:23:13.969414', "auth_token" = 'mmsq9fZxoy4JY3u55tRA' WHERE "public"."cadenero_accounts"."id" = 245  (7.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 245], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["user_id", 305]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bYxcxaE3uyM8Vx7gdeHJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 245, "user_id" = 305, "created_at" = '2013-07-18 02:23:14.004547', "updated_at" = '2013-07-18 02:23:14.004547', "auth_token" = 'bYxcxaE3uyM8Vx7gdeHJ' WHERE "public"."cadenero_members"."id" = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (12.2ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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, "updated_at" timestamp)   (0.9ms) 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"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.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, 18 Jul 2013 02:23:14 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$.XF1JeLRtZ7mNhN0M7NlK.bYflfjMGC5OEuPuFbl.NCQmClu5G3lu"], ["updated_at", Thu, 18 Jul 2013 02:23: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" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 306], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sfNDTBQxxpbe4oqx9drZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 306, "created_at" = '2013-07-18 02:23:14.202535', "updated_at" = '2013-07-18 02:23:14.202535', "auth_token" = 'sfNDTBQxxpbe4oqx9drZ' WHERE "public"."cadenero_accounts"."id" = 246  (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", 246], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["user_id", 306]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QKms7u4QU65zWMmFtvM4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 246, "user_id" = 306, "created_at" = '2013-07-18 02:23:14.207859', "updated_at" = '2013-07-18 02:23:14.207859', "auth_token" = 'QKms7u4QU65zWMmFtvM4' WHERE "public"."cadenero_members"."id" = 306  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.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")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (3.2ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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) Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 306 Started GET "/v1?auth_token[]=QKms7u4QU65zWMmFtvM4" for 127.0.0.1 at 2013-07-17 21:23:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["QKms7u4QU65zWMmFtvM4"], "default"=>:json} Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 245 AND "public"."cadenero_members"."auth_token" IN ('QKms7u4QU65zWMmFtvM4') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 5.0ms)  (9.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_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", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$QuAwXxmkQx.Ia4J.GBXCrOC76kJ0QgcJATsLa3kZq8I08oBtEL9.q"], ["updated_at", Thu, 18 Jul 2013 02:23:14 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" = 'test18' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 307], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'JjgPzYQecRSXc7rxsqje' LIMIT 1  (4.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 307, "created_at" = '2013-07-18 02:23:14.485721', "updated_at" = '2013-07-18 02:23:14.485721', "auth_token" = 'JjgPzYQecRSXc7rxsqje' WHERE "public"."cadenero_accounts"."id" = 247  (4.7ms) 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", 247], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 02:23:14 UTC +00:00], ["user_id", 307]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pDPowcc66zpZpUTHpikY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 247, "user_id" = 307, "created_at" = '2013-07-18 02:23:14.503155', "updated_at" = '2013-07-18 02:23:14.503155', "auth_token" = 'pDPowcc66zpZpUTHpikY' WHERE "public"."cadenero_members"."id" = 307  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test18"  (14.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (6.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (15.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 21:23: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) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 307 Started GET "/v1?auth_token[]=pDPowcc66zpZpUTHpikY" for 127.0.0.1 at 2013-07-17 21:23:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["pDPowcc66zpZpUTHpikY"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test18') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 247 AND "public"."cadenero_members"."auth_token" IN ('pDPowcc66zpZpUTHpikY') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 307 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 307 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1/users/307" for 127.0.0.1 at 2013-07-17 21:23:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"307"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/307?auth_token[]=pDPowcc66zpZpUTHpikY" for 127.0.0.1 at 2013-07-17 21:23:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["pDPowcc66zpZpUTHpikY"], "default"=>:json, "id"=>"307"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test18') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 247 AND "public"."cadenero_members"."auth_token" IN ('pDPowcc66zpZpUTHpikY') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 307 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 247 AND "public"."cadenero_users"."id" = 307 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 307 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 307 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 307 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 307 Completed 200 OK in 17ms (Views: 6.2ms | ActiveRecord: 2.7ms)  (7.6ms) ROLLBACK Connecting to database specified by database.yml  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (2.2ms) SAVEPOINT active_record_1 SQL (19.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$aUcx/D6QKEGUDT0hNLOycO.r2WP9urNk9Nw5tv7LlsNz3fDopNqgC"], ["updated_at", Thu, 18 Jul 2013 03:07:06 UTC +00:00]]  (9.0ms) RELEASE SAVEPOINT active_record_1  (8.0ms) 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 (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 308], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 03:07:06 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UidUP4rC4pJFd3NKys7Q' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 308, "created_at" = '2013-07-18 03:07:06.397558', "updated_at" = '2013-07-18 03:07:06.397558', "auth_token" = 'UidUP4rC4pJFd3NKys7Q' WHERE "public"."cadenero_accounts"."id" = 248  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.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", 248], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:06 UTC +00:00], ["user_id", 308]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CqqbzvbpeaxZSpAgkwTd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 248, "user_id" = 308, "created_at" = '2013-07-18 03:07:06.552370', "updated_at" = '2013-07-18 03:07:06.552370', "auth_token" = 'CqqbzvbpeaxZSpAgkwTd' WHERE "public"."cadenero_members"."id" = 308  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.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")  (3.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, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (9.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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 14ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (9.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 248 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (8.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 308 LIMIT 1 Cadenero::Member Load (5.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 308 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 308 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" = 308 Completed 201 Created in 189ms (Views: 34.3ms | ActiveRecord: 29.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 308 Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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" = 308 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (8.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", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$CUnsEhs0hwUnWRfh5IbiSu1fI7CyhRJKJCnq8Un2T7B6KrgIgAvtu"], ["updated_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (13.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" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 309], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'v44i4xM4Po2EVQsyPMoX' LIMIT 1  (5.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 309, "created_at" = '2013-07-18 03:07:07.173675', "updated_at" = '2013-07-18 03:07:07.173675', "auth_token" = 'v44i4xM4Po2EVQsyPMoX' WHERE "public"."cadenero_accounts"."id" = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 249], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["user_id", 309]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q98WQVGs3s3MwCm4LxRz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 249, "user_id" = 309, "created_at" = '2013-07-18 03:07:07.191130', "updated_at" = '2013-07-18 03:07:07.191130', "auth_token" = 'q98WQVGs3s3MwCm4LxRz' WHERE "public"."cadenero_members"."id" = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (11.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (10.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 249 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 309 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 309 Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 309 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" = 309 Completed 201 Created in 114ms (Views: 6.1ms | ActiveRecord: 8.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 Cadenero::Member Load (4.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 309 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:07 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"309", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 309 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$7zYKu/KGtTUJLCGam3gK2e7GFtdNqarQXeZ/d0jLz9qyFJOeMZ2U6"], ["updated_at", Thu, 18 Jul 2013 03:07: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", 249], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["user_id", 310]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'neys9s9VzwxwiTdsx1pz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 249, "user_id" = 310, "created_at" = '2013-07-18 03:07:07.573476', "updated_at" = '2013-07-18 03:07:07.573476', "auth_token" = 'neys9s9VzwxwiTdsx1pz' WHERE "public"."cadenero_members"."id" = 310  (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" = 310 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 310 Cadenero::V1::Account Load (9.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 310 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" = 310 Completed 201 Created in 159ms (Views: 6.2ms | ActiveRecord: 15.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/310" for 127.0.0.1 at 2013-07-17 22:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"310"} 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 (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" = 249 AND "public"."cadenero_users"."id" = 310 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 310 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 310 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 310 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" = 310 Completed 200 OK in 14ms (Views: 6.0ms | ActiveRecord: 4.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-17 22:07:07 -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" = 310 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 310 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 310 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 310 Completed 201 Created in 7ms (Views: 4.8ms | 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  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) 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", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$D6KJ3yCrYOdF7QQ6uPjk9OHM7M1nRojp8.h6Z/cwouFY8bJ9TQ8Ia"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 311], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rf9RsGxQxbrzG4C9fZRr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 311, "created_at" = '2013-07-18 03:07:07.809516', "updated_at" = '2013-07-18 03:07:07.809516', "auth_token" = 'rf9RsGxQxbrzG4C9fZRr' WHERE "public"."cadenero_accounts"."id" = 250  (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", 250], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:07 UTC +00:00], ["user_id", 311]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CUz4pUcqp33jToJDpthJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 250, "user_id" = 311, "created_at" = '2013-07-18 03:07:07.815422', "updated_at" = '2013-07-18 03:07:07.815422', "auth_token" = 'CUz4pUcqp33jToJDpthJ' WHERE "public"."cadenero_members"."id" = 311  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (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 ('20130715174857')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:07:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$uJbFhvJfqmofLKzLdpLlqu2o3gVewOn1orPSfy9TD8xLL6PaE1jse"], ["updated_at", Thu, 18 Jul 2013 03:07: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", 250], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["user_id", 312]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yxjNNfVeBPxdhtJyVwvT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 250, "user_id" = 312, "created_at" = '2013-07-18 03:07:08.020269', "updated_at" = '2013-07-18 03:07:08.020269', "auth_token" = 'yxjNNfVeBPxdhtJyVwvT' WHERE "public"."cadenero_members"."id" = 312  (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" = 312 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 312 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 312 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 312 Completed 201 Created in 128ms (Views: 5.8ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/312" for 127.0.0.1 at 2013-07-17 22:07:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"312"} 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" = 250 AND "public"."cadenero_users"."id" = 312 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 312 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 312 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 312 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" = 312 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:08 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 312 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 312 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 312 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" = 312 Completed 201 Created in 10ms (Views: 8.1ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07:08 -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" = 312 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (10.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$L38MNiHYFyzvZz8O1NxKweVdrDadjxqxYRWjVTT89KenuZJyoygBi"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 313], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WgtqMyyY6zDCjru9JJgg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 313, "created_at" = '2013-07-18 03:07:08.251924', "updated_at" = '2013-07-18 03:07:08.251924', "auth_token" = 'WgtqMyyY6zDCjru9JJgg' WHERE "public"."cadenero_accounts"."id" = 251  (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", 251], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["user_id", 313]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2pbmkmrwW2s3s7Pmq9Bn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 251, "user_id" = 313, "created_at" = '2013-07-18 03:07:08.257686', "updated_at" = '2013-07-18 03:07:08.257686', "auth_token" = '2pbmkmrwW2s3s7Pmq9Bn' WHERE "public"."cadenero_members"."id" = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) 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.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:08 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 251 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" = 313 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 313 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 313 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 313 Completed 201 Created in 220ms (Views: 5.4ms | ActiveRecord: 4.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 313 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:08 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"313", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 313 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.3ms) ROLLBACK  (3.8ms) BEGIN  (2.5ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$jGvPbV6CExwXVhEJvMy/JuP0r4ZVAOT4O9/3wbTLxlAJxxxsSBpVm"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 314], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hgAmE2gv7Yfnu5eR5FGC' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 314, "created_at" = '2013-07-18 03:07:08.747522', "updated_at" = '2013-07-18 03:07:08.747522', "auth_token" = 'hgAmE2gv7Yfnu5eR5FGC' WHERE "public"."cadenero_accounts"."id" = 252  (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", 252], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:08 UTC +00:00], ["user_id", 314]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xM1vpxpZUeFoAEySorPF' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 252, "user_id" = 314, "created_at" = '2013-07-18 03:07:08.753799', "updated_at" = '2013-07-18 03:07:08.753799', "auth_token" = 'xM1vpxpZUeFoAEySorPF' WHERE "public"."cadenero_members"."id" = 314  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (12.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (6.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.0ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-17 22:07:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07: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 (10.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" = 252 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 11.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.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$m80qa/etek4DT3FyxwwF7.5yu5Ls0lzCgSF2SyVvCG7jY0RCUSpNu"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 315], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9YxW2ghoFaKVUUaeVQ2g' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 315, "created_at" = '2013-07-18 03:07:09.006071', "updated_at" = '2013-07-18 03:07:09.006071', "auth_token" = '9YxW2ghoFaKVUUaeVQ2g' WHERE "public"."cadenero_accounts"."id" = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.8ms) 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", 253], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["user_id", 315]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MXecYF61o3oURzbjfTGc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 253, "user_id" = 315, "created_at" = '2013-07-18 03:07:09.014606', "updated_at" = '2013-07-18 03:07:09.014606', "auth_token" = 'MXecYF61o3oURzbjfTGc' WHERE "public"."cadenero_members"."id" = 315  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (13.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (9.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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")  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (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 ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:09 -0500 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.5ms) ROLLBACK  (1.0ms) BEGIN  (0.1ms) COMMIT  (2.8ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$QUpnPQjcGH786ypm64mLxueRqEz8c1VGkvIHnXcB3fpxkMLVNFlqC"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.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 (5.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 316], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uVXMrpYpxxq1YwyNCADU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 316, "created_at" = '2013-07-18 03:07:09.277562', "updated_at" = '2013-07-18 03:07:09.277562', "auth_token" = 'uVXMrpYpxxq1YwyNCADU' WHERE "public"."cadenero_accounts"."id" = 254  (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", 254], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["user_id", 316]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EEC51uBxZ7y6xT64jskE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 254, "user_id" = 316, "created_at" = '2013-07-18 03:07:09.287988', "updated_at" = '2013-07-18 03:07:09.287988', "auth_token" = 'EEC51uBxZ7y6xT64jskE' WHERE "public"."cadenero_members"."id" = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (9.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.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")  (2.3ms) 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, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 254 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | 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  (9.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$4pSCCvGEVRHu92s4QWi9Cu.uE/KPp1JlvhxW.9GAlCah4qY4PmJpS"], ["updated_at", Thu, 18 Jul 2013 03:07: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.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 317], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7sLACA4uUqEpCyg76zwz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 317, "created_at" = '2013-07-18 03:07:09.554375', "updated_at" = '2013-07-18 03:07:09.554375', "auth_token" = '7sLACA4uUqEpCyg76zwz' WHERE "public"."cadenero_accounts"."id" = 255  (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", 255], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["user_id", 317]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kKBSkTdnPtrBQsaypLuG' LIMIT 1  (2.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 255, "user_id" = 317, "created_at" = '2013-07-18 03:07:09.559898', "updated_at" = '2013-07-18 03:07:09.559898', "auth_token" = 'kKBSkTdnPtrBQsaypLuG' WHERE "public"."cadenero_members"."id" = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) 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, "updated_at" timestamp)  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$rr2p/J5StrWxEF43nTbndeXApNvoQljyzrG7ZIUpH5QSncr1MHOBS"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 318], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'JjQoGSvFU5xysuRexpig' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 318, "created_at" = '2013-07-18 03:07:09.780516', "updated_at" = '2013-07-18 03:07:09.780516', "auth_token" = 'JjQoGSvFU5xysuRexpig' WHERE "public"."cadenero_accounts"."id" = 256  (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", 256], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["user_id", 318]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PhxVv5WpEvzwqrGM6fSp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 256, "user_id" = 318, "created_at" = '2013-07-18 03:07:09.785575', "updated_at" = '2013-07-18 03:07:09.785575', "auth_token" = 'PhxVv5WpEvzwqrGM6fSp' WHERE "public"."cadenero_members"."id" = 318  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:07:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 255 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$3Vf57UPT2OZCnktjDuBB9ehOVwQgMk/3bT9C21F8m0FoMFOiGFmv6"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]]  (3.9ms) 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" = 'test10' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 319], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00]] Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Lp6VB2yMzo3L4duVYjNr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 319, "created_at" = '2013-07-18 03:07:09.976023', "updated_at" = '2013-07-18 03:07:09.976023', "auth_token" = 'Lp6VB2yMzo3L4duVYjNr' WHERE "public"."cadenero_accounts"."id" = 257  (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", 257], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:09 UTC +00:00], ["user_id", 319]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HZRJxvL7Gr9nG5XB3FFs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 257, "user_id" = 319, "created_at" = '2013-07-18 03:07:09.984241', "updated_at" = '2013-07-18 03:07:09.984241', "auth_token" = 'HZRJxvL7Gr9nG5XB3FFs' WHERE "public"."cadenero_members"."id" = 319  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (16.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (11.5ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (4.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 319 Started GET "/v1?auth_token[]=HZRJxvL7Gr9nG5XB3FFs" for 127.0.0.1 at 2013-07-17 22:07:10 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["HZRJxvL7Gr9nG5XB3FFs"], "default"=>:json} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 257 AND "public"."cadenero_members"."auth_token" IN ('HZRJxvL7Gr9nG5XB3FFs') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 319 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 319 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 2.1ms)  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (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, 18 Jul 2013 03:07:10 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$EXMMNYVYh1B5e1y0EzTZLeoTE0Iz6H5riFQ24X.7ndR9pqUk60sZW"], ["updated_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 320], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Z8SEXxXJyzWpqJNrVnyP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 320, "created_at" = '2013-07-18 03:07:10.275448', "updated_at" = '2013-07-18 03:07:10.275448', "auth_token" = 'Z8SEXxXJyzWpqJNrVnyP' WHERE "public"."cadenero_accounts"."id" = 258  (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", 258], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["user_id", 320]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kpSVAvQ6DDK6fPuqpovs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 258, "user_id" = 320, "created_at" = '2013-07-18 03:07:10.280737', "updated_at" = '2013-07-18 03:07:10.280737', "auth_token" = 'kpSVAvQ6DDK6fPuqpovs' WHERE "public"."cadenero_members"."id" = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.5ms) CREATE SCHEMA "test11"  (7.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (4.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 320 Started GET "/v1?auth_token[]=kpSVAvQ6DDK6fPuqpovs" for 127.0.0.1 at 2013-07-17 22:07:10 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["kpSVAvQ6DDK6fPuqpovs"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 258 AND "public"."cadenero_members"."auth_token" IN ('kpSVAvQ6DDK6fPuqpovs') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 320 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 320 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 2.6ms) Started GET "/v1/users/320" for 127.0.0.1 at 2013-07-17 22:07:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"320"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/320?auth_token[]=kpSVAvQ6DDK6fPuqpovs" for 127.0.0.1 at 2013-07-17 22:07:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["kpSVAvQ6DDK6fPuqpovs"], "default"=>:json, "id"=>"320"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 258 AND "public"."cadenero_members"."auth_token" IN ('kpSVAvQ6DDK6fPuqpovs') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 320 LIMIT 1 Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 258 AND "public"."cadenero_users"."id" = 320 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 320 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 320 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 320 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 320 Completed 200 OK in 55ms (Views: 43.1ms | ActiveRecord: 5.0ms)  (10.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$KaZcBgVEZxMKbGOEtkgsLO1DL2kcIV7VFJBZG.PuI9WGNHo9kezxq"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 321], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'JE1ZwpkTZmiwazCqa9SL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 321, "created_at" = '2013-07-18 03:07:10.686716', "updated_at" = '2013-07-18 03:07:10.686716', "auth_token" = 'JE1ZwpkTZmiwazCqa9SL' WHERE "public"."cadenero_accounts"."id" = 259  (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", 259], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["user_id", 321]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PrJxcjQvWG3Gq5FZcnHb' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 259, "user_id" = 321, "created_at" = '2013-07-18 03:07:10.692689', "updated_at" = '2013-07-18 03:07:10.692689', "auth_token" = 'PrJxcjQvWG3Gq5FZcnHb' WHERE "public"."cadenero_members"."id" = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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, "updated_at" timestamp)  (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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-17 22:07: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_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, 18 Jul 2013 03:07:10 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$JTWZ5ibMnJuGpjb1tah9QeG/QGnrJVcon//ngJ33YkTRuxz24dUwu"], ["updated_at", Thu, 18 Jul 2013 03:07: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", 259], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:10 UTC +00:00], ["user_id", 322]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'i85XFB6p9tEEiVtG6gpA' LIMIT 1  (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 259, "user_id" = 322, "created_at" = '2013-07-18 03:07:10.937882', "updated_at" = '2013-07-18 03:07:10.937882', "auth_token" = 'i85XFB6p9tEEiVtG6gpA' WHERE "public"."cadenero_members"."id" = 322  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 322 LIMIT 1 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 322 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 322 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" = 322 Completed 201 Created in 196ms (Views: 9.5ms | ActiveRecord: 14.4ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/322" for 127.0.0.1 at 2013-07-17 22:07:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"322"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 259 AND "public"."cadenero_users"."id" = 322 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 322 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 322 Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 322 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 322 Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 3.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 321 Started GET "/v1?auth_token[]=PrJxcjQvWG3Gq5FZcnHb" for 127.0.0.1 at 2013-07-17 22:07:10 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["PrJxcjQvWG3Gq5FZcnHb"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 259 AND "public"."cadenero_members"."auth_token" IN ('PrJxcjQvWG3Gq5FZcnHb') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 321 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 321 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 322 Started GET "/v1?auth_token[]=i85XFB6p9tEEiVtG6gpA" for 127.0.0.1 at 2013-07-17 22:07:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["i85XFB6p9tEEiVtG6gpA"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 259 AND "public"."cadenero_members"."auth_token" IN ('i85XFB6p9tEEiVtG6gpA') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 322 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 322 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.7ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$AWVG5ZKBH3PG.1LCtTvKoO.LutI.8XySq6latDfe.tv0D6SVi9Lum"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 323], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UfJsha4Xz12s2zzsArb1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 323, "created_at" = '2013-07-18 03:07:11.199121', "updated_at" = '2013-07-18 03:07:11.199121', "auth_token" = 'UfJsha4Xz12s2zzsArb1' WHERE "public"."cadenero_accounts"."id" = 260  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 260], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["user_id", 323]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'shhp5xELm2Wv75JFod4m' LIMIT 1  (10.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 260, "user_id" = 323, "created_at" = '2013-07-18 03:07:11.209630', "updated_at" = '2013-07-18 03:07:11.209630', "auth_token" = 'shhp5xELm2Wv75JFod4m' WHERE "public"."cadenero_members"."id" = 323  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (8.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (11.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (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, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (10.4ms) SELECT version FROM "schema_migrations"  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.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, 18 Jul 2013 03:07:11 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$5FRbLNOMc3/2FY91EbitW.zVGUgXHNk5P1j5KrcDpe1XUoaIXDoqC"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 324], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mJeticpvhDcrYy9eHibw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 324, "created_at" = '2013-07-18 03:07:11.425992', "updated_at" = '2013-07-18 03:07:11.425992', "auth_token" = 'mJeticpvhDcrYy9eHibw' WHERE "public"."cadenero_accounts"."id" = 261  (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", 261], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:11 UTC +00:00], ["user_id", 324]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FuLDmD8rqPry39xpU9sd' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 261, "user_id" = 324, "created_at" = '2013-07-18 03:07:11.431694', "updated_at" = '2013-07-18 03:07:11.431694', "auth_token" = 'FuLDmD8rqPry39xpU9sd' WHERE "public"."cadenero_members"."id" = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (22.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) 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, "updated_at" timestamp, "auth_token" character varying(255))   (5.7ms) 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.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:07: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) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 324 Started GET "/v1?auth_token[]=FuLDmD8rqPry39xpU9sd" for 127.0.0.1 at 2013-07-17 22:07:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FuLDmD8rqPry39xpU9sd"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 260 AND "public"."cadenero_members"."auth_token" IN ('FuLDmD8rqPry39xpU9sd') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (8.9ms) ROLLBACK  (5.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (9.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" 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 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "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: 6.7ms | ActiveRecord: 10.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (9.5ms) 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.5ms | ActiveRecord: 14.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vnJYDQ7qPnjcxxLW6zVT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 03:07:12.554469', "updated_at" = '2013-07-18 03:07:12.554469', "auth_token" = 'vnJYDQ7qPnjcxxLW6zVT' WHERE "public"."cadenero_members"."id" = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.8ms) BEGIN Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$nh.NG0Nwrzkt2.UJjmvHg.zuU1PH5ES0LPRE.clj6zY31IytknwEe"], ["updated_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00], ["name", "Test Account"], ["owner_id", 325], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SJwqdVkm2zGEPavRtDRz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 325, "created_at" = '2013-07-18 03:07:12.923973', "updated_at" = '2013-07-18 03:07:12.923973', "auth_token" = 'SJwqdVkm2zGEPavRtDRz' WHERE "public"."cadenero_accounts"."id" = 262  (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", 262], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:12 UTC +00:00], ["user_id", 325]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Lk9WsssDXbCAaiCRygzH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 262, "user_id" = 325, "created_at" = '2013-07-18 03:07:12.929475', "updated_at" = '2013-07-18 03:07:12.929475', "auth_token" = 'Lk9WsssDXbCAaiCRygzH' WHERE "public"."cadenero_members"."id" = 326  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (12.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (7.5ms) 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, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.2ms) 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")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.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') 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" = 262 LIMIT 1  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (6.6ms) BEGIN  (5.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (4.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:16 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$9w2S0BaKReIBgoyTqtKU2.ARMUoESYfFAVrTESh1UFVDztIBtjlfm"], ["updated_at", Thu, 18 Jul 2013 03:07: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" = 'test15' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:16 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 326], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 03:07:16 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'drxtxLPQZpmEvWpwcgZq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 326, "created_at" = '2013-07-18 03:07:16.914890', "updated_at" = '2013-07-18 03:07:16.914890', "auth_token" = 'drxtxLPQZpmEvWpwcgZq' WHERE "public"."cadenero_accounts"."id" = 263  (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", 263], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:16 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:16 UTC +00:00], ["user_id", 326]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'egsJNDScnqMynwrpNFei' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 263, "user_id" = 326, "created_at" = '2013-07-18 03:07:16.921765', "updated_at" = '2013-07-18 03:07:16.921765', "auth_token" = 'egsJNDScnqMynwrpNFei' WHERE "public"."cadenero_members"."id" = 327  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$/ipsV6tGY0Ef3zWojH5dpuX5GPGMk5FOriyg2VgGnf280XCmghY7i"], ["updated_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ilOU39F7pQY4iCjPNo1FbOSTt2WYBv9ADgcksNKmOUZc0Bwh0wNrq"], ["updated_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00], ["name", "Root"], ["owner_id", 328], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ebCrrMiwSnLs6X3BcX9g' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 328, "created_at" = '2013-07-18 03:07:17.122222', "updated_at" = '2013-07-18 03:07:17.122222', "auth_token" = 'ebCrrMiwSnLs6X3BcX9g' WHERE "public"."cadenero_accounts"."id" = 264  (0.2ms) 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", 264], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:17 UTC +00:00], ["user_id", 328]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tYJytUgiJbA5T7sF1Njd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 264, "user_id" = 328, "created_at" = '2013-07-18 03:07:17.127896', "updated_at" = '2013-07-18 03:07:17.127896', "auth_token" = 'tYJytUgiJbA5T7sF1Njd' WHERE "public"."cadenero_members"."id" = 328  (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), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (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"   (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 22:07: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.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$JM7fEkcCxvNHUkFx88N/q.QQYflxyJtx0DLcVycrEnZ9K.Lun70g6"], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["name", "Testy"], ["owner_id", 329], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MVpNMaXWgxscgjZ3gKM3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 329, "created_at" = '2013-07-18 03:07:22.379389', "updated_at" = '2013-07-18 03:07:22.379389', "auth_token" = 'MVpNMaXWgxscgjZ3gKM3' WHERE "public"."cadenero_accounts"."id" = 265  (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", 265], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["user_id", 329]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2VpSWcoVzDudyUPThnzL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 265, "user_id" = 329, "created_at" = '2013-07-18 03:07:22.385194', "updated_at" = '2013-07-18 03:07:22.385194', "auth_token" = '2VpSWcoVzDudyUPThnzL' WHERE "public"."cadenero_members"."id" = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 265) LIMIT 1 Completed 201 Created in 164ms (Views: 2.0ms | ActiveRecord: 35.7ms) 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.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$UTG.vpqYXMRe2Ze1l3pot.pXTE6m7lrD748Pbkct3uk/fVCnFmlE2"], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["name", "Testy"], ["owner_id", 330], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cUrxxWP6FsdktcAGZcC9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 330, "created_at" = '2013-07-18 03:07:22.546687', "updated_at" = '2013-07-18 03:07:22.546687', "auth_token" = 'cUrxxWP6FsdktcAGZcC9' WHERE "public"."cadenero_accounts"."id" = 266  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 22:07: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.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 106ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$w9ku3bxv7AYieHTRgy3nRugNT7ia4EjrrV0VY5qCn/XNzpTD7bt1."], ["updated_at", Thu, 18 Jul 2013 03:07:22 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" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 331], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tkTeMwZEzNfp8hSQ7tSc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 331, "created_at" = '2013-07-18 03:07:22.779680', "updated_at" = '2013-07-18 03:07:22.779680', "auth_token" = 'tkTeMwZEzNfp8hSQ7tSc' WHERE "public"."cadenero_accounts"."id" = 267  (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", 267], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["user_id", 331]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QGeQyxiWcANdpp3Cx5YU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 267, "user_id" = 331, "created_at" = '2013-07-18 03:07:22.785018', "updated_at" = '2013-07-18 03:07:22.785018', "auth_token" = 'QGeQyxiWcANdpp3Cx5YU' WHERE "public"."cadenero_members"."id" = 330  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (4.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.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-17 22:07: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" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tSIfC0gNtctFh3/Zqg2QeeA6cxM3NGYOHZeO.TGa3IJU///sXd7B2"], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 267], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:22 UTC +00:00], ["user_id", 332]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sv7sd36cWoXEjfZ39QiU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 267, "user_id" = 332, "created_at" = '2013-07-18 03:07:22.943335', "updated_at" = '2013-07-18 03:07:22.943335', "auth_token" = 'sv7sd36cWoXEjfZ39QiU' WHERE "public"."cadenero_members"."id" = 331  (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" = 332 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 332 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 332 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 332 Completed 201 Created in 114ms (Views: 5.9ms | 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/332" for 127.0.0.1 at 2013-07-17 22:07:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"332"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.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" = 267 AND "public"."cadenero_users"."id" = 332 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 332 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 332 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 332 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 332 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.0ms)  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (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", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$ZSoGM/OAepW9cSlsqQqiVe19ryO2HFNhZ7MKAmK/QEyPacllhTGxi"], ["updated_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 333], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jk2THqSzh1kGqZW7TMq6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 333, "created_at" = '2013-07-18 03:07:23.083701', "updated_at" = '2013-07-18 03:07:23.083701', "auth_token" = 'jk2THqSzh1kGqZW7TMq6' WHERE "public"."cadenero_accounts"."id" = 268  (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", 268], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["user_id", 333]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gygsp1MxvnNmjD456z7y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 268, "user_id" = 333, "created_at" = '2013-07-18 03:07:23.089059', "updated_at" = '2013-07-18 03:07:23.089059', "auth_token" = 'Gygsp1MxvnNmjD456z7y' WHERE "public"."cadenero_members"."id" = 332  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (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-17 22: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 (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3vbUX/9HZ8d1YfH3BQeiOOfhoxOGIrZrWtJeWPMAdSAK2Cdu1GSFu"], ["updated_at", Thu, 18 Jul 2013 03:07:23 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", 268], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["user_id", 334]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'U2CDsPeQTAnyxqqMz82f' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 268, "user_id" = 334, "created_at" = '2013-07-18 03:07:23.240053', "updated_at" = '2013-07-18 03:07:23.240053', "auth_token" = 'U2CDsPeQTAnyxqqMz82f' WHERE "public"."cadenero_members"."id" = 333  (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" = 334 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 334 Completed 201 Created in 118ms (Views: 5.6ms | 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/334" for 127.0.0.1 at 2013-07-17 22:07:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"334"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 268 AND "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 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" = 334 Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 334], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BiUxR6pdfqKPFyLR4MCb' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 334, "created_at" = '2013-07-18 03:07:23.274710', "updated_at" = '2013-07-18 03:07:23.274710', "auth_token" = 'BiUxR6pdfqKPFyLR4MCb' WHERE "public"."cadenero_accounts"."id" = 269  (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", 269], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["user_id", 334]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6oSjKqADye9yE9nRYjss' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 269, "user_id" = 334, "created_at" = '2013-07-18 03:07:23.282005', "updated_at" = '2013-07-18 03:07:23.282005', "auth_token" = '6oSjKqADye9yE9nRYjss' WHERE "public"."cadenero_members"."id" = 334  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test18"  (3.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (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, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22: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 (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (250.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:07:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$23Jhav9lVLeO0Wwa9Ef7cel5h6v.8me0gXEL2RGIcwSI20QwuWMT2"], ["updated_at", Thu, 18 Jul 2013 03:07:23 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", 269], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:07:24 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:07:24 UTC +00:00], ["user_id", 335]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7poJQVdH2bhGnjhz6Jof' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 269, "user_id" = 335, "created_at" = '2013-07-18 03:07:24.034646', "updated_at" = '2013-07-18 03:07:24.034646', "auth_token" = '7poJQVdH2bhGnjhz6Jof' WHERE "public"."cadenero_members"."id" = 335  (0.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 335 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 335 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 335 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 335 Completed 201 Created in 579ms (Views: 13.4ms | ActiveRecord: 261.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/335" for 127.0.0.1 at 2013-07-17 22:07:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"335"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 269 AND "public"."cadenero_users"."id" = 335 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 335 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 335 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 335 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" = 335 Completed 200 OK in 130ms (Views: 115.9ms | ActiveRecord: 10.7ms) Started GET "/v1/users/334" for 127.0.0.1 at 2013-07-17 22:07:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"334"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' 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" = 268 AND "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 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" = 334 Completed 200 OK in 16ms (Views: 6.9ms | ActiveRecord: 5.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 22:07: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" = 'test17' LIMIT 1 Cadenero::User Load (9.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" = 268 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 334 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 334 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 334 Cadenero::V1::Account Load (12.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" = 334 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 333 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 333 Cadenero::V1::Account Load (14.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 333 Completed 200 OK in 204ms (Views: 160.2ms | ActiveRecord: 41.9ms)  (37.7ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (13.2ms) BEGIN  (13.6ms) COMMIT  (0.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (13.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3C8ri3EOseUeqosIsUDY/eVEQiNVF758M.g2V2NgJvyn4ffK95OiC"], ["updated_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00]] SQL (2.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00], ["name", "Testy"], ["owner_id", 336], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00]] Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8CULbGjXxNub1WRqQSUA' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 336, "created_at" = '2013-07-18 03:55:41.753235', "updated_at" = '2013-07-18 03:55:41.753235', "auth_token" = '8CULbGjXxNub1WRqQSUA' WHERE "public"."cadenero_accounts"."id" = 270  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 22:55:41 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (2.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (7.9ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 193ms (Views: 0.4ms | ActiveRecord: 11.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 22:55:42 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (4.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$IyAcOaSRuGrGlQkBtINW1eQSX5Ye1JgQ763DELLzcG9FQdm5XD6Nu"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["name", "Testy"], ["owner_id", 337], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xkyjLbisxpUp7aonGRWq' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 337, "created_at" = '2013-07-18 03:55:42.244588', "updated_at" = '2013-07-18 03:55:42.244588', "auth_token" = 'xkyjLbisxpUp7aonGRWq' WHERE "public"."cadenero_accounts"."id" = 271  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 271], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["user_id", 337]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3sBppfv7cMg4fE4PiLjJ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 271, "user_id" = 337, "created_at" = '2013-07-18 03:55:42.383613', "updated_at" = '2013-07-18 03:55:42.383613', "auth_token" = '3sBppfv7cMg4fE4PiLjJ' WHERE "public"."cadenero_members"."id" = 336  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test"  (9.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (7.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 271) LIMIT 1 Completed 201 Created in 500ms (Views: 1.9ms | ActiveRecord: 125.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$iYTmneWvfEaULlv1nGceI.qSSHQErtrFUxvPzIXiXM.BmdJo292Hi"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["name", "Test Account"], ["owner_id", 338], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oxJYupp4kbEtz3swWEH7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 338, "created_at" = '2013-07-18 03:55:42.724150', "updated_at" = '2013-07-18 03:55:42.724150', "auth_token" = 'oxJYupp4kbEtz3swWEH7' WHERE "public"."cadenero_accounts"."id" = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 272], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["user_id", 338]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zy6nzdESJV9haqpqcqJk' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 272, "user_id" = 338, "created_at" = '2013-07-18 03:55:42.736098', "updated_at" = '2013-07-18 03:55:42.736098', "auth_token" = 'zy6nzdESJV9haqpqcqJk' WHERE "public"."cadenero_members"."id" = 337  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (7.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (9.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (10.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (9.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 272 LIMIT 1  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (6.6ms) BEGIN  (2.8ms) COMMIT  (7.2ms) BEGIN Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (7.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (6.8ms) ROLLBACK  (19.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$m1w0bcOm2Z3ciJfq08oqFexvyv4Npniy1PM7UVnBumyAELo7FM7iO"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 339], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '59RZyEjFfxpkGKa18zyE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 339, "created_at" = '2013-07-18 03:55:43.574480', "updated_at" = '2013-07-18 03:55:43.574480', "auth_token" = '59RZyEjFfxpkGKa18zyE' WHERE "public"."cadenero_accounts"."id" = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 273], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["user_id", 339]] Cadenero::Member Load (2.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WnpRBpFLHUdZa1yZ4tNi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 273, "user_id" = 339, "created_at" = '2013-07-18 03:55:43.581876', "updated_at" = '2013-07-18 03:55:43.581876', "auth_token" = 'WnpRBpFLHUdZa1yZ4tNi' WHERE "public"."cadenero_members"."id" = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (5.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:43 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$qOCUnmBLeLpmP.E5OnhjLOBda0cZap5mW6NbA8e4N1KOBXfX6lWCa"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 273], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["user_id", 340]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VsDqvF9pcAMr5p485KpL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 273, "user_id" = 340, "created_at" = '2013-07-18 03:55:43.752936', "updated_at" = '2013-07-18 03:55:43.752936', "auth_token" = 'VsDqvF9pcAMr5p485KpL' WHERE "public"."cadenero_members"."id" = 339  (10.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 Completed 201 Created in 165ms (Views: 34.0ms | ActiveRecord: 14.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/340" for 127.0.0.1 at 2013-07-17 22:55:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"340"} Cadenero::V1::Account Load (12.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 273 AND "public"."cadenero_users"."id" = 340 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 Completed 200 OK in 25ms (Views: 5.9ms | ActiveRecord: 14.1ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (10.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 340], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VpeQxxqVLNbhgXu8yN9s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 340, "created_at" = '2013-07-18 03:55:43.930978', "updated_at" = '2013-07-18 03:55:43.930978', "auth_token" = 'VpeQxxqVLNbhgXu8yN9s' WHERE "public"."cadenero_accounts"."id" = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 274], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["user_id", 340]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NqGzezcwzedsrgCt2rJE' LIMIT 1  (3.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 274, "user_id" = 340, "created_at" = '2013-07-18 03:55:43.949683', "updated_at" = '2013-07-18 03:55:43.949683', "auth_token" = 'NqGzezcwzedsrgCt2rJE' WHERE "public"."cadenero_members"."id" = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (17.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (10.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (9.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.8ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$UEwJEgYKMxmX/8/mYPKxcOhrkf9CvMLSVpEKxliE/yiZAmzdHXMLG"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 274], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 341]] Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eDJ7JCyb1zLtm8sFAJJz' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 274, "user_id" = 341, "created_at" = '2013-07-18 03:55:44.222615', "updated_at" = '2013-07-18 03:55:44.222615', "auth_token" = 'eDJ7JCyb1zLtm8sFAJJz' WHERE "public"."cadenero_members"."id" = 341  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 341 LIMIT 1 Cadenero::Member Load (9.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 341 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 341 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 341 Completed 201 Created in 206ms (Views: 6.5ms | ActiveRecord: 18.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/341" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"341"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 274 AND "public"."cadenero_users"."id" = 341 LIMIT 1 Cadenero::User Load (5.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 341 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 341 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 341 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 341 Completed 200 OK in 17ms (Views: 6.6ms | ActiveRecord: 7.0ms) Started GET "/v1/users/340" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"340"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 273 AND "public"."cadenero_users"."id" = 340 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 273 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 339 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 339 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 339 Completed 200 OK in 22ms (Views: 12.2ms | ActiveRecord: 8.0ms)  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$No3UKGzDXkhdhBYpBM/WEOjp4WbTm7zlDgwKV7cZMofdAjzSNfQiu"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 342], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'anBZdA9YpVPowm6DTjme' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 342, "created_at" = '2013-07-18 03:55:44.520810', "updated_at" = '2013-07-18 03:55:44.520810', "auth_token" = 'anBZdA9YpVPowm6DTjme' WHERE "public"."cadenero_accounts"."id" = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 275], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 342]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xsme71qp9LUsVRKsXss5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 275, "user_id" = 342, "created_at" = '2013-07-18 03:55:44.527409', "updated_at" = '2013-07-18 03:55:44.527409', "auth_token" = 'Xsme71qp9LUsVRKsXss5' WHERE "public"."cadenero_members"."id" = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vJTYnQX6GVmvu/UZ/nocVuJodoSMLDj/lKRXSOxYQmP4J1jPhW2Jq"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 275], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 343]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kUzkKyLP3N3yqXYyQiMz' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 275, "user_id" = 343, "created_at" = '2013-07-18 03:55:44.733261', "updated_at" = '2013-07-18 03:55:44.733261', "auth_token" = 'kUzkKyLP3N3yqXYyQiMz' WHERE "public"."cadenero_members"."id" = 343  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (11.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 Completed 201 Created in 154ms (Views: 6.1ms | ActiveRecord: 20.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/343" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"343"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 275 AND "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms)  (7.1ms) ROLLBACK  (3.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'V56w9Dyz4Ls6eCu5vyTi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 03:55:44.938240', "updated_at" = '2013-07-18 03:55:44.938240', "auth_token" = 'V56w9Dyz4Ls6eCu5vyTi' WHERE "public"."cadenero_members"."id" = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (4.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$e1pkYz6CdH6oIus1ViPQC.PKQ6xfi4BkxM0ax9Kc1KPGwcD4/u95a"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 344], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] Cadenero::V1::Account Load (6.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZywdGjsVDZnGr5WuWj8L' LIMIT 1  (3.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 344, "created_at" = '2013-07-18 03:55:45.120920', "updated_at" = '2013-07-18 03:55:45.120920', "auth_token" = 'ZywdGjsVDZnGr5WuWj8L' WHERE "public"."cadenero_accounts"."id" = 276  (3.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 276], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["user_id", 344]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SFDcXzRPFXvahezyWQCz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 276, "user_id" = 344, "created_at" = '2013-07-18 03:55:45.140750', "updated_at" = '2013-07-18 03:55:45.140750', "auth_token" = 'SFDcXzRPFXvahezyWQCz' WHERE "public"."cadenero_members"."id" = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (8.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (9.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (8.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 344 Started GET "/v1?auth_token[]=SFDcXzRPFXvahezyWQCz" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["SFDcXzRPFXvahezyWQCz"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 276 AND "public"."cadenero_members"."auth_token" IN ('SFDcXzRPFXvahezyWQCz') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/v1/users/344" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"344"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/344?auth_token[]=SFDcXzRPFXvahezyWQCz" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["SFDcXzRPFXvahezyWQCz"], "default"=>:json, "id"=>"344"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 276 AND "public"."cadenero_members"."auth_token" IN ('SFDcXzRPFXvahezyWQCz') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 276 AND "public"."cadenero_users"."id" = 344 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 344 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 344 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 344 Completed 200 OK in 31ms (Views: 13.2ms | ActiveRecord: 7.4ms)  (7.2ms) ROLLBACK  (4.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pTTlffpbZQbLYtSmiauuHuErfQNYOkfvk440cdT.nguZS8u82fxB2"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 345], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7eZdffzM16gKeTXiGdqU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 345, "created_at" = '2013-07-18 03:55:45.503817', "updated_at" = '2013-07-18 03:55:45.503817', "auth_token" = '7eZdffzM16gKeTXiGdqU' WHERE "public"."cadenero_accounts"."id" = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 277], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["user_id", 345]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JUn48f4vLTH4zwsJSSxA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 277, "user_id" = 345, "created_at" = '2013-07-18 03:55:45.509113', "updated_at" = '2013-07-18 03:55:45.509113', "auth_token" = 'JUn48f4vLTH4zwsJSSxA' WHERE "public"."cadenero_members"."id" = 346  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (17.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (15.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (14.4ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$G28iDAvvXDEe7Tm09m8yi.5EjUm7uNfSoypDGwphUjmVDq5KzZ9de"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]]  (7.7ms) RELEASE SAVEPOINT active_record_1  (3.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (4.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 346], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EdinxqqWAwNW4ZawPKrN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 346, "created_at" = '2013-07-18 03:55:45.760767', "updated_at" = '2013-07-18 03:55:45.760767', "auth_token" = 'EdinxqqWAwNW4ZawPKrN' WHERE "public"."cadenero_accounts"."id" = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 278], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["user_id", 346]] Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iSe79E43fs765k1deV2G' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 278, "user_id" = 346, "created_at" = '2013-07-18 03:55:45.769972', "updated_at" = '2013-07-18 03:55:45.769972', "auth_token" = 'iSe79E43fs765k1deV2G' WHERE "public"."cadenero_members"."id" = 347  (4.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (15.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 346 Started GET "/v1?auth_token[]=iSe79E43fs765k1deV2G" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["iSe79E43fs765k1deV2G"], "default"=>:json} Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 277 AND "public"."cadenero_members"."auth_token" IN ('iSe79E43fs765k1deV2G') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 4.9ms)  (10.8ms) ROLLBACK  (1.0ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (4.5ms) SAVEPOINT active_record_1 SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$kQhFonGfPmXE6syRklggE.HapfQslnxQ7MTLwWfkfHiRe7am.uoNq"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 347], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '3xamw1yq9KxkYxgDERbe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 347, "created_at" = '2013-07-18 03:55:46.050540', "updated_at" = '2013-07-18 03:55:46.050540', "auth_token" = '3xamw1yq9KxkYxgDERbe' WHERE "public"."cadenero_accounts"."id" = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 279], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 347]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'K8hMqrkSGQrVrrsaAUNm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 279, "user_id" = 347, "created_at" = '2013-07-18 03:55:46.057252', "updated_at" = '2013-07-18 03:55:46.057252', "auth_token" = 'K8hMqrkSGQrVrrsaAUNm' WHERE "public"."cadenero_members"."id" = 348  (3.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 347 Started GET "/v1?auth_token[]=K8hMqrkSGQrVrrsaAUNm" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["K8hMqrkSGQrVrrsaAUNm"], "default"=>:json} Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 279 AND "public"."cadenero_members"."auth_token" IN ('K8hMqrkSGQrVrrsaAUNm') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 347 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 347 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 3.3ms)  (7.9ms) ROLLBACK  (8.5ms) BEGIN  (1.4ms) COMMIT  (1.4ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kbCAOifTj/Xdm5hlaOI.h.Lv4z9iAUgWZB3.UyCzB7e8MGyr7B1Ku"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 348], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'deq91M4DWeWo54cgcg4B' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 348, "created_at" = '2013-07-18 03:55:46.339622', "updated_at" = '2013-07-18 03:55:46.339622', "auth_token" = 'deq91M4DWeWo54cgcg4B' WHERE "public"."cadenero_accounts"."id" = 280  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 280], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 348]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VqYRyvY4E9zynvx2pizN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 280, "user_id" = 348, "created_at" = '2013-07-18 03:55:46.344988', "updated_at" = '2013-07-18 03:55:46.344988', "auth_token" = 'VqYRyvY4E9zynvx2pizN' WHERE "public"."cadenero_members"."id" = 349  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (7.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Hj3bdtRgWPjKOeLjFNRraeCFIE0kIh2PioBezsTTod4MeHugj0Obi"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 280], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 349]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZYyWppzPxcHsRUV8sd9s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 280, "user_id" = 349, "created_at" = '2013-07-18 03:55:46.601267', "updated_at" = '2013-07-18 03:55:46.601267', "auth_token" = 'ZYyWppzPxcHsRUV8sd9s' WHERE "public"."cadenero_members"."id" = 350  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 349 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 349 Completed 201 Created in 165ms (Views: 8.5ms | ActiveRecord: 14.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/349" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"349"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 280 AND "public"."cadenero_users"."id" = 349 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 349 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 349 Completed 200 OK in 17ms (Views: 10.1ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 348 Started GET "/v1?auth_token[]=VqYRyvY4E9zynvx2pizN" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["VqYRyvY4E9zynvx2pizN"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 280 AND "public"."cadenero_members"."auth_token" IN ('VqYRyvY4E9zynvx2pizN') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 348 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 348 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.1ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 Started GET "/v1?auth_token[]=ZYyWppzPxcHsRUV8sd9s" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ZYyWppzPxcHsRUV8sd9s"], "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 280 AND "public"."cadenero_members"."auth_token" IN ('ZYyWppzPxcHsRUV8sd9s') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms)  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$DpHLtWxqUvFo1gqnyewPwOLnN30ByMjbUwyQsUxrhT2iw/CKAyOIK"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 350], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's48sCUpDz5sToqqqCXAU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 350, "created_at" = '2013-07-18 03:55:46.783871', "updated_at" = '2013-07-18 03:55:46.783871', "auth_token" = 's48sCUpDz5sToqqqCXAU' WHERE "public"."cadenero_accounts"."id" = 281  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 281], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 350]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vyeVzUdgRGktyzHsf1kb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 281, "user_id" = 350, "created_at" = '2013-07-18 03:55:46.846557', "updated_at" = '2013-07-18 03:55:46.846557', "auth_token" = 'vyeVzUdgRGktyzHsf1kb' WHERE "public"."cadenero_members"."id" = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 281 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 350 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 350 Completed 201 Created in 113ms (Views: 5.9ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"350", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Az/cySbY/Uxi/V1OiKxFduIeB8xk6NdaKtnI7tlKzGCbUesNqKkBu"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 281], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 351]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6VAy8zqYvg1hUxAGxsJv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 281, "user_id" = 351, "created_at" = '2013-07-18 03:55:47.131666', "updated_at" = '2013-07-18 03:55:47.131666', "auth_token" = '6VAy8zqYvg1hUxAGxsJv' WHERE "public"."cadenero_members"."id" = 352  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 Completed 201 Created in 114ms (Views: 6.0ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/351" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"351"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 281 AND "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 Completed 200 OK in 16ms (Views: 7.5ms | ActiveRecord: 3.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 Completed 201 Created in 11ms (Views: 7.5ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (10.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$b8Nw1sxuZFBnbNVwQClxT.REhyAooqeyCGfvxbtvk50zh/MCXNwbG"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 352], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2seHJzRM8yqY95qs2z9H' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 352, "created_at" = '2013-07-18 03:55:47.319830', "updated_at" = '2013-07-18 03:55:47.319830', "auth_token" = '2seHJzRM8yqY95qs2z9H' WHERE "public"."cadenero_accounts"."id" = 282  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 282], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 352]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MeG1nrjpjk7PC5WLwMHz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 282, "user_id" = 352, "created_at" = '2013-07-18 03:55:47.325352', "updated_at" = '2013-07-18 03:55:47.325352', "auth_token" = 'MeG1nrjpjk7PC5WLwMHz' WHERE "public"."cadenero_members"."id" = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 282 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 352 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 352 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 352 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 352 Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 352 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"352", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 352 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$nJiez.VmwoI7A5U26NMS4.4zKSpgrxM.vmiEfShzpVw/1aBMjzFqu"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 353], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tG5kLKeihWVUyuys8si8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 353, "created_at" = '2013-07-18 03:55:47.606908', "updated_at" = '2013-07-18 03:55:47.606908', "auth_token" = 'tG5kLKeihWVUyuys8si8' WHERE "public"."cadenero_accounts"."id" = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 283], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 353]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vxhpe5gTpZVup7ZQZ2PP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 283, "user_id" = 353, "created_at" = '2013-07-18 03:55:47.612271', "updated_at" = '2013-07-18 03:55:47.612271', "auth_token" = 'vxhpe5gTpZVup7ZQZ2PP' WHERE "public"."cadenero_members"."id" = 354  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 283 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 353 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 353 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 353 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 353 Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 353 Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 353 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$sZySmiNuCBKeXJwYPLzbDuO/lISU3mZy3AQ3IsbWzbOmZxkT6BybC"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 354], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'niNDUk99drnQx1ajGMq1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 354, "created_at" = '2013-07-18 03:55:47.892980', "updated_at" = '2013-07-18 03:55:47.892980', "auth_token" = 'niNDUk99drnQx1ajGMq1' WHERE "public"."cadenero_accounts"."id" = 284  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 284], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 354]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ox4Zq37VuPLMg9zy7wN7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 284, "user_id" = 354, "created_at" = '2013-07-18 03:55:47.898483', "updated_at" = '2013-07-18 03:55:47.898483', "auth_token" = 'ox4Zq37VuPLMg9zy7wN7' WHERE "public"."cadenero_members"."id" = 355  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Fcq5ebW46aiT2N80PIuO3ukdKeMPe79uSOSBICHMreErIA84GIcH6"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 284], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 355]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z5rnVigaif7RszuWpGzu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 284, "user_id" = 355, "created_at" = '2013-07-18 03:55:48.049122', "updated_at" = '2013-07-18 03:55:48.049122', "auth_token" = 'z5rnVigaif7RszuWpGzu' WHERE "public"."cadenero_members"."id" = 356  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 355 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 355 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 355 Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/355" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"355"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 284 AND "public"."cadenero_users"."id" = 355 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 355 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 355 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 355 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 355 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 355 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 355 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$zQeqo8yIqAaIz.tFkIcXGextvbzT1kVVaZ/AFJjR8WurZLLQir5bq"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 356], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Y1QmnKUrHgqvaQFVqT9w' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 356, "created_at" = '2013-07-18 03:55:48.205091', "updated_at" = '2013-07-18 03:55:48.205091', "auth_token" = 'Y1QmnKUrHgqvaQFVqT9w' WHERE "public"."cadenero_accounts"."id" = 285  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 285], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 356]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ojkx3Q3reD5yH5WWg6Jq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 285, "user_id" = 356, "created_at" = '2013-07-18 03:55:48.210726', "updated_at" = '2013-07-18 03:55:48.210726', "auth_token" = 'ojkx3Q3reD5yH5WWg6Jq' WHERE "public"."cadenero_members"."id" = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$AHSkytt/AYcPT.kF5P20U.8Z5AzH1gaj/bMmy4d0S3pebTY7PanSO"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 357], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EKsxULhyeNcBKqCPyis5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 357, "created_at" = '2013-07-18 03:55:48.370805', "updated_at" = '2013-07-18 03:55:48.370805', "auth_token" = 'EKsxULhyeNcBKqCPyis5' WHERE "public"."cadenero_accounts"."id" = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 286], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 357]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FzQ3GZxWB6Qa7tMdnJWD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 286, "user_id" = 357, "created_at" = '2013-07-18 03:55:48.376422', "updated_at" = '2013-07-18 03:55:48.376422', "auth_token" = 'FzQ3GZxWB6Qa7tMdnJWD' WHERE "public"."cadenero_members"."id" = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$49jdwCtnMFl8c64CK1GjGeWYTHmVlGOs5DOvAwT7o10eRCSe6cvxi"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 358], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FCHuHy8CRBugSpEPN2Bq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 358, "created_at" = '2013-07-18 03:55:48.556271', "updated_at" = '2013-07-18 03:55:48.556271', "auth_token" = 'FCHuHy8CRBugSpEPN2Bq' WHERE "public"."cadenero_accounts"."id" = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 287], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 358]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rftE4JWLdU9kUbhcyzvg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 287, "user_id" = 358, "created_at" = '2013-07-18 03:55:48.561697', "updated_at" = '2013-07-18 03:55:48.561697', "auth_token" = 'rftE4JWLdU9kUbhcyzvg' WHERE "public"."cadenero_members"."id" = 359  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user14@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 286 AND "public"."cadenero_users"."email" = 'user14@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$UNo5p.TC4sQY1s8nDP0Z4.33scoGZgwV7nEFqi.CGY162IUJVF/sq"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 359], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'W4yuyYpwaBDRMFmUfD4M' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 359, "created_at" = '2013-07-18 03:55:48.689551', "updated_at" = '2013-07-18 03:55:48.689551', "auth_token" = 'W4yuyYpwaBDRMFmUfD4M' WHERE "public"."cadenero_accounts"."id" = 288  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 288], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 359]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8JFNSJVK8UVz7PDaGp1p' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 288, "user_id" = 359, "created_at" = '2013-07-18 03:55:48.695233', "updated_at" = '2013-07-18 03:55:48.695233', "auth_token" = '8JFNSJVK8UVz7PDaGp1p' WHERE "public"."cadenero_members"."id" = 360  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 288 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$V486BZXyjZNiLFR2mnJfN.jsq0fw5nB58MCJLzhoF2TrUoEA7YgtS"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 360], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BycH9ja3VGiQbKd6yPCZ' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 360, "created_at" = '2013-07-18 03:55:48.864880', "updated_at" = '2013-07-18 03:55:48.864880', "auth_token" = 'BycH9ja3VGiQbKd6yPCZ' WHERE "public"."cadenero_accounts"."id" = 289  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 289], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 360]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f1syqDj7znCZp9Jmfz67' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 289, "user_id" = 360, "created_at" = '2013-07-18 03:55:48.925999', "updated_at" = '2013-07-18 03:55:48.925999', "auth_token" = 'f1syqDj7znCZp9Jmfz67' WHERE "public"."cadenero_members"."id" = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test17"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 289 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (1.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$tvdxR.9eIZ8jbZ.YXBEZpuCfRvlfy6xWtf7P0GDI93Rz/y6IugT5i"], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 361], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'y18oJBqeHasxnqEHmohu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 361, "created_at" = '2013-07-18 03:55:57.851076', "updated_at" = '2013-07-18 03:55:57.851076', "auth_token" = 'y18oJBqeHasxnqEHmohu' WHERE "public"."cadenero_accounts"."id" = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 290], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["user_id", 361]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KJJyzyBQ99yHNNUmmsYX' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 290, "user_id" = 361, "created_at" = '2013-07-18 03:55:57.857759', "updated_at" = '2013-07-18 03:55:57.857759', "auth_token" = 'KJJyzyBQ99yHNNUmmsYX' WHERE "public"."cadenero_members"."id" = 362  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$jHol7M/0QpyUhIVLUESw/Ol1GIR8P1nIE0JIjKY4ZmqwNhvTxYMNq"], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mIKTJUEYmBOAYD/Vx2sybOcnt9EpfeV0EZDFWsBsOYgzIXDV5SAc."], ["updated_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["name", "Root"], ["owner_id", 363], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XMwnML12zh2GcKZvpfsy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 363, "created_at" = '2013-07-18 03:55:58.070763', "updated_at" = '2013-07-18 03:55:58.070763', "auth_token" = 'XMwnML12zh2GcKZvpfsy' WHERE "public"."cadenero_accounts"."id" = 291  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 291], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["user_id", 363]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'acjMdQd9ueirCfzqzhyH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 291, "user_id" = 363, "created_at" = '2013-07-18 03:55:58.076205', "updated_at" = '2013-07-18 03:55:58.076205', "auth_token" = 'acjMdQd9ueirCfzqzhyH' WHERE "public"."cadenero_members"."id" = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ex/WDjkJfwat47u5aD116Ow2rHZ5iMPZkefpfpuuzISK9AWO.rvTO"], ["updated_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["name", "Test Account"], ["owner_id", 364], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WA9Ly5UWoiRAjXongkrk' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 364, "created_at" = '2013-07-18 04:11:53.398510', "updated_at" = '2013-07-18 04:11:53.398510', "auth_token" = 'WA9Ly5UWoiRAjXongkrk' WHERE "public"."cadenero_accounts"."id" = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 292], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["user_id", 364]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CNWU9etyMB6zDyJoepAK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 292, "user_id" = 364, "created_at" = '2013-07-18 04:11:53.485108', "updated_at" = '2013-07-18 04:11:53.485108', "auth_token" = 'CNWU9etyMB6zDyJoepAK' WHERE "public"."cadenero_members"."id" = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (8.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 292 LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$TeAApnhO4GEIGVlhdgjgX.7wAlo/4BjasGPo8Nb1/7g5ITjjVrIGa"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 365], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GDLmuzwVB5m5o1CdM73c' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 365, "created_at" = '2013-07-18 04:11:54.022257', "updated_at" = '2013-07-18 04:11:54.022257', "auth_token" = 'GDLmuzwVB5m5o1CdM73c' WHERE "public"."cadenero_accounts"."id" = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 293], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 365]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EsxxqLZWsHRRbiFPqbdH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 293, "user_id" = 365, "created_at" = '2013-07-18 04:11:54.028548', "updated_at" = '2013-07-18 04:11:54.028548', "auth_token" = 'EsxxqLZWsHRRbiFPqbdH' WHERE "public"."cadenero_members"."id" = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fqYzLqdqM/V2jYKFpeQJAub8oG/OJ69B2ooPn3BruKnyxB1.08XGy"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 293], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 366]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7pBfnapSep8xCv55FnPF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 293, "user_id" = 366, "created_at" = '2013-07-18 04:11:54.236011', "updated_at" = '2013-07-18 04:11:54.236011', "auth_token" = '7pBfnapSep8xCv55FnPF' WHERE "public"."cadenero_members"."id" = 366  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 366 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 366 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 366 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 366 Completed 201 Created in 142ms (Views: 29.5ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/366" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"366"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 293 AND "public"."cadenero_users"."id" = 366 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 366 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 366 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 366 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 366 Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 1.8ms)  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8E/SIdZ75FKlGyx1PN4DNOk3dhP/MX4WHDMik1w3cps9HnihlrW1O"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 367], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hLSCChUqXpJpoY2YjETN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 367, "created_at" = '2013-07-18 04:11:54.406220', "updated_at" = '2013-07-18 04:11:54.406220', "auth_token" = 'hLSCChUqXpJpoY2YjETN' WHERE "public"."cadenero_accounts"."id" = 294  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 294], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 367]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzKgKmYr6sos3Xt1GLDY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 294, "user_id" = 367, "created_at" = '2013-07-18 04:11:54.411741', "updated_at" = '2013-07-18 04:11:54.411741', "auth_token" = 'qzKgKmYr6sos3Xt1GLDY' WHERE "public"."cadenero_members"."id" = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IuJOPS5aRrjOPkVi94cg1.7v/ugZGWi1ZFanZCr7dBXEEFUu5l/Uu"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 294], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 368]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xJ5AbrDmK8vBcZRm3ZLp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 294, "user_id" = 368, "created_at" = '2013-07-18 04:11:54.562067', "updated_at" = '2013-07-18 04:11:54.562067', "auth_token" = 'xJ5AbrDmK8vBcZRm3ZLp' WHERE "public"."cadenero_members"."id" = 368  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/368" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"368"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 AND "public"."cadenero_users"."id" = 368 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 368], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wpRoun1q8ZCmzhSpVVco' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 368, "created_at" = '2013-07-18 04:11:54.592687', "updated_at" = '2013-07-18 04:11:54.592687', "auth_token" = 'wpRoun1q8ZCmzhSpVVco' WHERE "public"."cadenero_accounts"."id" = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 295], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 368]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'c28h4apZHsp1uXKx2YHm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 295, "user_id" = 368, "created_at" = '2013-07-18 04:11:54.598417', "updated_at" = '2013-07-18 04:11:54.598417', "auth_token" = 'c28h4apZHsp1uXKx2YHm' WHERE "public"."cadenero_members"."id" = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$49zo2CVFwrk1mDid6vnDo.4zs62xFPQ3Nsqt5MCGs7cov1UvDp6/O"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 295], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 369]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8hbRxq6FiNm4681wgCqr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 295, "user_id" = 369, "created_at" = '2013-07-18 04:11:54.751031', "updated_at" = '2013-07-18 04:11:54.751031', "auth_token" = '8hbRxq6FiNm4681wgCqr' WHERE "public"."cadenero_members"."id" = 370  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 369 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 369 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 369 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 369 Completed 201 Created in 112ms (Views: 5.6ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/369" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"369"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 295 AND "public"."cadenero_users"."id" = 369 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 369 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 369 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 369 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 369 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.9ms) Started GET "/v1/users/368" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"368"} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 AND "public"."cadenero_users"."id" = 368 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 3.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 367 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 367 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 367 Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 3.1ms)  (8.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XMXv4EbVJsacUxiMQLsV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:11:54.931946', "updated_at" = '2013-07-18 04:11:54.931946', "auth_token" = 'XMXv4EbVJsacUxiMQLsV' WHERE "public"."cadenero_members"."id" = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$cFwqfySmUksfqHAWZr82yu3raPgblUWn84Hv3J28WDS1P/iCbtgRK"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Testy"], ["owner_id", 370], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nMyekhqks5bogvVZUdBB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 370, "created_at" = '2013-07-18 04:11:55.045556', "updated_at" = '2013-07-18 04:11:55.045556', "auth_token" = 'nMyekhqks5bogvVZUdBB' WHERE "public"."cadenero_accounts"."id" = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 296], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["user_id", 370]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QzzYAtnsTJGb7UngQQzX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 296, "user_id" = 370, "created_at" = '2013-07-18 04:11:55.052277', "updated_at" = '2013-07-18 04:11:55.052277', "auth_token" = 'QzzYAtnsTJGb7UngQQzX' WHERE "public"."cadenero_members"."id" = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 296) LIMIT 1 Completed 201 Created in 162ms (Views: 1.7ms | ActiveRecord: 37.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$devHGRHSl9R/8yOdDiqGRu7AKoH/NXI/YxpaTeWZbA3ukM/Vcpp6e"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Testy"], ["owner_id", 371], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6uLuTPBHz7j8CdR3mAaU' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 371, "created_at" = '2013-07-18 04:11:55.214729', "updated_at" = '2013-07-18 04:11:55.214729', "auth_token" = '6uLuTPBHz7j8CdR3mAaU' WHERE "public"."cadenero_accounts"."id" = 297  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 102ms (Views: 0.3ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$2PoOGObLs/bFfhIJc5TdsuLyV/Uw0bhAQydHGrQ8By1xtgST0JrDe"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 372], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'z3FxzsAfiw8GBP8YyCvq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 372, "created_at" = '2013-07-18 04:11:55.521451', "updated_at" = '2013-07-18 04:11:55.521451', "auth_token" = 'z3FxzsAfiw8GBP8YyCvq' WHERE "public"."cadenero_accounts"."id" = 298  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 298], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["user_id", 372]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vqafbwpa8Vwarky4w5nU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 298, "user_id" = 372, "created_at" = '2013-07-18 04:11:55.527345', "updated_at" = '2013-07-18 04:11:55.527345', "auth_token" = 'Vqafbwpa8Vwarky4w5nU' WHERE "public"."cadenero_members"."id" = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 298 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 372 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 372 Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"372", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$5QdWNLakTvtZW1517iCGwunbZIwkQRtL55sUJYolHF1Nmn69N5ZsK"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 373], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'br9TxFG5zf3vg5SZJbAb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 373, "created_at" = '2013-07-18 04:11:55.817229', "updated_at" = '2013-07-18 04:11:55.817229', "auth_token" = 'br9TxFG5zf3vg5SZJbAb' WHERE "public"."cadenero_accounts"."id" = 299  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 299], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["user_id", 373]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ikfW1yqB6ykX32tuJVSJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 299, "user_id" = 373, "created_at" = '2013-07-18 04:11:55.822741', "updated_at" = '2013-07-18 04:11:55.822741', "auth_token" = 'ikfW1yqB6ykX32tuJVSJ' WHERE "public"."cadenero_members"."id" = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 299 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 373 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 373 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 373 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 373 Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 373 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"373", "default"=>:json} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 373 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.6ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$1VuGSdw6apd8iWA3qFcOU.tGFCJhgW6aOrXUJIyuTsxYXOtMmrWJC"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 299], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 374]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Zmx5vfEHKyXjdywepgtR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 299, "user_id" = 374, "created_at" = '2013-07-18 04:11:56.094974', "updated_at" = '2013-07-18 04:11:56.094974', "auth_token" = 'Zmx5vfEHKyXjdywepgtR' WHERE "public"."cadenero_members"."id" = 375  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 374 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 374 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 374 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 374 Completed 201 Created in 113ms (Views: 5.3ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/374" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"374"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 299 AND "public"."cadenero_users"."id" = 374 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 374 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 374 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 374 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 374 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 374 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 374 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 374 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 374 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$NHKA6Be2Gwc37iCULvhhsuO0dT/zUu45BndzJxOPPGWtTIeagXS0e"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 375], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qjqq7mykzEjsyp3psbgT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 375, "created_at" = '2013-07-18 04:11:56.245514', "updated_at" = '2013-07-18 04:11:56.245514', "auth_token" = 'qjqq7mykzEjsyp3psbgT' WHERE "public"."cadenero_accounts"."id" = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 300], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 375]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zZafePdg1qC9QHdX9Ssz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 300, "user_id" = 375, "created_at" = '2013-07-18 04:11:56.250961', "updated_at" = '2013-07-18 04:11:56.250961', "auth_token" = 'zZafePdg1qC9QHdX9Ssz' WHERE "public"."cadenero_members"."id" = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$pWdbcfynXQNm.Qo13phYtu68dUV35h4V7.b5FTioepwDrZpUFpJu6"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 300], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 376]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9dTCMZTg1jMy5qnh1Tcv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 300, "user_id" = 376, "created_at" = '2013-07-18 04:11:56.402366', "updated_at" = '2013-07-18 04:11:56.402366', "auth_token" = '9dTCMZTg1jMy5qnh1Tcv' WHERE "public"."cadenero_members"."id" = 377  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 376 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 376 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 376 Completed 201 Created in 111ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/376" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"376"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 300 AND "public"."cadenero_users"."id" = 376 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 376 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 376 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 376 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 376 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 376 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 376 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$9pQyFs53uMyVYEipEeeNE.XXKv9mPFpGxglei0Sp.wtaHFDVuaCe."], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 377], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '37i14JsyQoyi4TB1PRBG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 377, "created_at" = '2013-07-18 04:11:56.556791', "updated_at" = '2013-07-18 04:11:56.556791', "auth_token" = '37i14JsyQoyi4TB1PRBG' WHERE "public"."cadenero_accounts"."id" = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 301], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 377]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YWeokhqc4NSHZdDJNxvD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 301, "user_id" = 377, "created_at" = '2013-07-18 04:11:56.562288', "updated_at" = '2013-07-18 04:11:56.562288', "auth_token" = 'YWeokhqc4NSHZdDJNxvD' WHERE "public"."cadenero_members"."id" = 378  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 301 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 377 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 377 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 377 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 377 Completed 201 Created in 141ms (Views: 6.1ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 377 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 377 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$MptLhuTFPi/AFKAkwLvm8ecsX6aTa9p74/jTw9I5FsmIR5iZiGh4."], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 378], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's1UPZV62JZkRFiHTbi2a' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 378, "created_at" = '2013-07-18 04:11:56.875635', "updated_at" = '2013-07-18 04:11:56.875635', "auth_token" = 's1UPZV62JZkRFiHTbi2a' WHERE "public"."cadenero_accounts"."id" = 302  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 302], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 378]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TqkJBxRhqGzkpvjcZ8do' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 302, "user_id" = 378, "created_at" = '2013-07-18 04:11:56.881342', "updated_at" = '2013-07-18 04:11:56.881342', "auth_token" = 'TqkJBxRhqGzkpvjcZ8do' WHERE "public"."cadenero_members"."id" = 379  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$gYrqHF084sEf8urrNjQAZOs3/i4Zai65x7sRjja4Dz4I8cFZyyzem"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 379], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UZgfaLhwN8WkmsSQcWsA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 379, "created_at" = '2013-07-18 04:11:57.026133', "updated_at" = '2013-07-18 04:11:57.026133', "auth_token" = 'UZgfaLhwN8WkmsSQcWsA' WHERE "public"."cadenero_accounts"."id" = 303  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 303], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 379]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5p7Eg2mEBkKnwz5LHc5d' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 303, "user_id" = 379, "created_at" = '2013-07-18 04:11:57.031758', "updated_at" = '2013-07-18 04:11:57.031758', "auth_token" = '5p7Eg2mEBkKnwz5LHc5d' WHERE "public"."cadenero_members"."id" = 380  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 302 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$q.jDbnR8.1OhhtXQkMB1hek9m1Ow3/xa85tcnJOy0RLcYUQzeOTm6"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 380], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LtWntrB7cc8uTNguiAPE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 380, "created_at" = '2013-07-18 04:11:57.161742', "updated_at" = '2013-07-18 04:11:57.161742', "auth_token" = 'LtWntrB7cc8uTNguiAPE' WHERE "public"."cadenero_accounts"."id" = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 304], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 380]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ECyNnQv1xi4RLr3URwFD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 304, "user_id" = 380, "created_at" = '2013-07-18 04:11:57.168085', "updated_at" = '2013-07-18 04:11:57.168085', "auth_token" = 'ECyNnQv1xi4RLr3URwFD' WHERE "public"."cadenero_members"."id" = 381  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$DOGIOP69g9x1A51G6t/Sae3tvdmmKM5Nj9F81lQmITKq/TtDV45Qa"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 381], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bqnH1m32dxGyHA7HdJGp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 381, "created_at" = '2013-07-18 04:11:57.379804', "updated_at" = '2013-07-18 04:11:57.379804', "auth_token" = 'bqnH1m32dxGyHA7HdJGp' WHERE "public"."cadenero_accounts"."id" = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 305], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 381]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gPepPWsa5HxcVUBrWTrD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 305, "user_id" = 381, "created_at" = '2013-07-18 04:11:57.386927', "updated_at" = '2013-07-18 04:11:57.386927', "auth_token" = 'gPepPWsa5HxcVUBrWTrD' WHERE "public"."cadenero_members"."id" = 382  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 305 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$S02idtXVe7kaDS9wgB3yzuVCP1xt5F1dclIRH/AONQ0LhWLYSzc52"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 382], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'W1gcE4kHR6HPNyNNZq4e' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 382, "created_at" = '2013-07-18 04:11:57.561606', "updated_at" = '2013-07-18 04:11:57.561606', "auth_token" = 'W1gcE4kHR6HPNyNNZq4e' WHERE "public"."cadenero_accounts"."id" = 306  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 306], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 382]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZSUDFoDtLhNDEqK8q4Vf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 306, "user_id" = 382, "created_at" = '2013-07-18 04:11:57.567008', "updated_at" = '2013-07-18 04:11:57.567008', "auth_token" = 'ZSUDFoDtLhNDEqK8q4Vf' WHERE "public"."cadenero_members"."id" = 383  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 306 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$kwbzME0DLNiZ8CHtCz8SIe6m6N3gV8JE4v.h6nmXD0WX59/l54HAq"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 383], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TyrM1VAdXTuEzdwZ4CD2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 383, "created_at" = '2013-07-18 04:11:57.749492', "updated_at" = '2013-07-18 04:11:57.749492', "auth_token" = 'TyrM1VAdXTuEzdwZ4CD2' WHERE "public"."cadenero_accounts"."id" = 307  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 307], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 383]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '51qRxQtYWdshWmtmmRsq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 307, "user_id" = 383, "created_at" = '2013-07-18 04:11:57.754875', "updated_at" = '2013-07-18 04:11:57.754875', "auth_token" = '51qRxQtYWdshWmtmmRsq' WHERE "public"."cadenero_members"."id" = 384  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$fFOvBoMltilJicECk7N6.eDJIFeru/QLK7sCHBa3Kg4ULwgdCvD6y"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 384], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2TATXPDaBLrb7t16chzr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 384, "created_at" = '2013-07-18 04:11:57.900733', "updated_at" = '2013-07-18 04:11:57.900733', "auth_token" = '2TATXPDaBLrb7t16chzr' WHERE "public"."cadenero_accounts"."id" = 308  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 308], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 384]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Lx5Zd3PgH8AUpeq6yxgK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 308, "user_id" = 384, "created_at" = '2013-07-18 04:11:57.905934', "updated_at" = '2013-07-18 04:11:57.905934', "auth_token" = 'Lx5Zd3PgH8AUpeq6yxgK' WHERE "public"."cadenero_members"."id" = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (8.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 384 Started GET "/v1?auth_token[]=Lx5Zd3PgH8AUpeq6yxgK" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Lx5Zd3PgH8AUpeq6yxgK"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 307 AND "public"."cadenero_members"."auth_token" IN ('Lx5Zd3PgH8AUpeq6yxgK') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$6M8m/kEJacBErg7QdfZ3yeYAYT3Chy1Yq9/63sDXDKHeaVUiZwpEu"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 385], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'F1yxP79YXhWerqPzNHyA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 385, "created_at" = '2013-07-18 04:11:58.082059', "updated_at" = '2013-07-18 04:11:58.082059', "auth_token" = 'F1yxP79YXhWerqPzNHyA' WHERE "public"."cadenero_accounts"."id" = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 309], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 385]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cnQdLhmyzj84qwTztZDv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 309, "user_id" = 385, "created_at" = '2013-07-18 04:11:58.087545', "updated_at" = '2013-07-18 04:11:58.087545', "auth_token" = 'cnQdLhmyzj84qwTztZDv' WHERE "public"."cadenero_members"."id" = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 385 Started GET "/v1?auth_token[]=cnQdLhmyzj84qwTztZDv" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["cnQdLhmyzj84qwTztZDv"], "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_members"."auth_token" IN ('cnQdLhmyzj84qwTztZDv') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms) Started GET "/v1/users/385" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"385"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/385?auth_token[]=cnQdLhmyzj84qwTztZDv" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["cnQdLhmyzj84qwTztZDv"], "default"=>:json, "id"=>"385"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_members"."auth_token" IN ('cnQdLhmyzj84qwTztZDv') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_users"."id" = 385 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 385 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 385 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 385 Completed 200 OK in 15ms (Views: 6.0ms | ActiveRecord: 2.4ms)  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$tRquTxAALoQSUUbbOmXNpuktXj5dsz9h7HMs48g/XGXhiQVAUhlf6"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 386], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8Ux761nhRy1fzQgaUuKp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 386, "created_at" = '2013-07-18 04:11:58.278702', "updated_at" = '2013-07-18 04:11:58.278702', "auth_token" = '8Ux761nhRy1fzQgaUuKp' WHERE "public"."cadenero_accounts"."id" = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 310], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 386]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kr2qmy6effxYR7JCMNsj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 310, "user_id" = 386, "created_at" = '2013-07-18 04:11:58.284497', "updated_at" = '2013-07-18 04:11:58.284497', "auth_token" = 'kr2qmy6effxYR7JCMNsj' WHERE "public"."cadenero_members"."id" = 387  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CO05CLOqCGjdFOqwRu9xEej5wMvGkP5acUKu2DVC3YAiLjzdHRmXC"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 310], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 387]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4hAEojep3UH7EDhLK4Z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 310, "user_id" = 387, "created_at" = '2013-07-18 04:11:58.438511', "updated_at" = '2013-07-18 04:11:58.438511', "auth_token" = 'q4hAEojep3UH7EDhLK4Z' WHERE "public"."cadenero_members"."id" = 388  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 387 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 387 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 387 Completed 201 Created in 111ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/387" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"387"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 310 AND "public"."cadenero_users"."id" = 387 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 387 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 387 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 387 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 386 Started GET "/v1?auth_token[]=kr2qmy6effxYR7JCMNsj" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["kr2qmy6effxYR7JCMNsj"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 310 AND "public"."cadenero_members"."auth_token" IN ('kr2qmy6effxYR7JCMNsj') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 386 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 386 LIMIT 1 Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 1.1ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 387 Started GET "/v1?auth_token[]=q4hAEojep3UH7EDhLK4Z" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["q4hAEojep3UH7EDhLK4Z"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 310 AND "public"."cadenero_members"."auth_token" IN ('q4hAEojep3UH7EDhLK4Z') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$9jJ8MYYcsWJpuxb/knZgjuuP7O9aG2tDpSAec.c4Uqa3sKy4do8qy"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 388], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yvQ4uJ2p2MGmZhbdRHjk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 388, "created_at" = '2013-07-18 04:11:58.638024', "updated_at" = '2013-07-18 04:11:58.638024', "auth_token" = 'yvQ4uJ2p2MGmZhbdRHjk' WHERE "public"."cadenero_accounts"."id" = 311  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 311], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 388]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RZDeEvAKSFHsVwXg9RYs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 311, "user_id" = 388, "created_at" = '2013-07-18 04:11:58.643999', "updated_at" = '2013-07-18 04:11:58.643999', "auth_token" = 'RZDeEvAKSFHsVwXg9RYs' WHERE "public"."cadenero_members"."id" = 389  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 388 Started GET "/v1?auth_token[]=RZDeEvAKSFHsVwXg9RYs" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["RZDeEvAKSFHsVwXg9RYs"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 311 AND "public"."cadenero_members"."auth_token" IN ('RZDeEvAKSFHsVwXg9RYs') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 388 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 388 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$ISSEi.p6xDrP4qadmstDuOosnIgd27efJhAji4UowrkXdUdoa5h9S"], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 389], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zsXg1eR9CtYx7tmzabvL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 389, "created_at" = '2013-07-18 04:12:01.835680', "updated_at" = '2013-07-18 04:12:01.835680', "auth_token" = 'zsXg1eR9CtYx7tmzabvL' WHERE "public"."cadenero_accounts"."id" = 312  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 312], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["user_id", 389]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EUTy9WDFsUS3vMzmcM6T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 312, "user_id" = 389, "created_at" = '2013-07-18 04:12:01.842019', "updated_at" = '2013-07-18 04:12:01.842019', "auth_token" = 'EUTy9WDFsUS3vMzmcM6T' WHERE "public"."cadenero_members"."id" = 390  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$Mlsu1F9gOTKMwhIkauCYQ.Z1/EL7CxQjjnaVPELgQo62x.cTQjLnu"], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$kDjJDSkYKbTPt3vTVoVDr.e.JZW/34FqtvaznRn6tRqAyYdfMkSBK"], ["updated_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["name", "Root"], ["owner_id", 391], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5nEDUKGg7Rmi5vjmG9XZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 391, "created_at" = '2013-07-18 04:12:02.043282', "updated_at" = '2013-07-18 04:12:02.043282', "auth_token" = '5nEDUKGg7Rmi5vjmG9XZ' WHERE "public"."cadenero_accounts"."id" = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 313], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["user_id", 391]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vUyVnvviqoTsoyghwzDu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 313, "user_id" = 391, "created_at" = '2013-07-18 04:12:02.048506', "updated_at" = '2013-07-18 04:12:02.048506', "auth_token" = 'vUyVnvviqoTsoyghwzDu' WHERE "public"."cadenero_members"."id" = 391  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$suznZ9rPbzX7CXQ9S7j5d.gXzbhxb/pQFnQfYf43Fca3b7K6l.owO"], ["updated_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 392], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cz45gLdttqmXtKDN3SyG' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 392, "created_at" = '2013-07-18 04:24:53.544523', "updated_at" = '2013-07-18 04:24:53.544523', "auth_token" = 'cz45gLdttqmXtKDN3SyG' WHERE "public"."cadenero_accounts"."id" = 314  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 314], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["user_id", 392]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UpVszy6j1K9xdCApxQZc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 314, "user_id" = 392, "created_at" = '2013-07-18 04:24:53.608192', "updated_at" = '2013-07-18 04:24:53.608192', "auth_token" = 'UpVszy6j1K9xdCApxQZc' WHERE "public"."cadenero_members"."id" = 392  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 314 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 392 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 392 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 392 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 392 Completed 201 Created in 143ms (Views: 29.1ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 392 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:53 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"392", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 392 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$jO6GXJ.//S3cjlvJ.IV6A.Kc1P3zxG57nw/64xcuAZw.7cBb2O8Rq"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 393], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pSnGfeLYAk2b4NaWzXKN' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 393, "created_at" = '2013-07-18 04:24:54.008200', "updated_at" = '2013-07-18 04:24:54.008200', "auth_token" = 'pSnGfeLYAk2b4NaWzXKN' WHERE "public"."cadenero_accounts"."id" = 315  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 315], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 393]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vywttCPFyTfdjCLLuyRi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 315, "user_id" = 393, "created_at" = '2013-07-18 04:24:54.014173', "updated_at" = '2013-07-18 04:24:54.014173', "auth_token" = 'vywttCPFyTfdjCLLuyRi' WHERE "public"."cadenero_members"."id" = 393  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 315 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 393 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 393 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 393 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 393 Completed 201 Created in 107ms (Views: 5.5ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 393 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 393 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$DkEr4kq1m4SNUXDbVPJto.Ii6bV3zYHK189bm7TkNGrzFabqMArc."], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 394], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wUyDNz7ped9qpWPH7xju' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 394, "created_at" = '2013-07-18 04:24:54.341990', "updated_at" = '2013-07-18 04:24:54.341990', "auth_token" = 'wUyDNz7ped9qpWPH7xju' WHERE "public"."cadenero_accounts"."id" = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 316], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 394]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LKCa8xpQuGsZpzBXxrHN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 316, "user_id" = 394, "created_at" = '2013-07-18 04:24:54.347770', "updated_at" = '2013-07-18 04:24:54.347770', "auth_token" = 'LKCa8xpQuGsZpzBXxrHN' WHERE "public"."cadenero_members"."id" = 394  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$AqTHTJfDuWrawodEGZ.TDOoIAWw/k.6wmi/k7H9jyPHfzpnuuS0ce"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 395], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KJmvxf8PCpuvtowZMwUU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 395, "created_at" = '2013-07-18 04:24:54.510944', "updated_at" = '2013-07-18 04:24:54.510944', "auth_token" = 'KJmvxf8PCpuvtowZMwUU' WHERE "public"."cadenero_accounts"."id" = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 317], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 395]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yrxnYqEjJUYzc395ihZM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 317, "user_id" = 395, "created_at" = '2013-07-18 04:24:54.516788', "updated_at" = '2013-07-18 04:24:54.516788', "auth_token" = 'yrxnYqEjJUYzc395ihZM' WHERE "public"."cadenero_members"."id" = 395  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 317 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 395 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 395 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 395 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 395 Completed 201 Created in 111ms (Views: 8.5ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 395 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"395", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 395 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Completed 500 Internal Server Error in 1ms  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$FTeZDX8oqy2C831AjZzOwemqhjUp/zXsh9N1V5ZxvB0mcIdrFBqIu"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 396], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'smRMozcC5cpcMQM6kpy7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 396, "created_at" = '2013-07-18 04:24:54.808964', "updated_at" = '2013-07-18 04:24:54.808964', "auth_token" = 'smRMozcC5cpcMQM6kpy7' WHERE "public"."cadenero_accounts"."id" = 318  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 318], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 396]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1CKGEAbo5yieqCcUGRcM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 318, "user_id" = 396, "created_at" = '2013-07-18 04:24:54.814558', "updated_at" = '2013-07-18 04:24:54.814558', "auth_token" = '1CKGEAbo5yieqCcUGRcM' WHERE "public"."cadenero_members"."id" = 396  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (23.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (8.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$jD/3OHa3x4H5UwJARH4iV.YykFORPtfI/GDqsm0rRj3LLV11PpMx2"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 397], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'fQyGUy16UwqYCDVvpa8J' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 397, "created_at" = '2013-07-18 04:24:54.992379', "updated_at" = '2013-07-18 04:24:54.992379', "auth_token" = 'fQyGUy16UwqYCDVvpa8J' WHERE "public"."cadenero_accounts"."id" = 319  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 319], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 397]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gp4fUq9jXGm26QmNQXJn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 319, "user_id" = 397, "created_at" = '2013-07-18 04:24:54.997732', "updated_at" = '2013-07-18 04:24:54.997732', "auth_token" = 'Gp4fUq9jXGm26QmNQXJn' WHERE "public"."cadenero_members"."id" = 397  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 318 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$KZGFZAzaPCoztYaG2OdBuO6DcoqJKAGy8AX2aiss3Nf6fIRTGdDTy"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 398], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DmyHWyk54jrKhjFbtYqy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 398, "created_at" = '2013-07-18 04:24:55.126092', "updated_at" = '2013-07-18 04:24:55.126092', "auth_token" = 'DmyHWyk54jrKhjFbtYqy' WHERE "public"."cadenero_accounts"."id" = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 320], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 398]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NrEWUnZ5sX51HftjRp1G' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 320, "user_id" = 398, "created_at" = '2013-07-18 04:24:55.131582', "updated_at" = '2013-07-18 04:24:55.131582', "auth_token" = 'NrEWUnZ5sX51HftjRp1G' WHERE "public"."cadenero_members"."id" = 398  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 320 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$2g633DZB.K4OMt0UntDlzOv5v4KDiQnpx3oBjk4UUlia/jXCeX8bO"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 399], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PwAHQxLCyexRQfqmFpep' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 399, "created_at" = '2013-07-18 04:24:55.302669', "updated_at" = '2013-07-18 04:24:55.302669', "auth_token" = 'PwAHQxLCyexRQfqmFpep' WHERE "public"."cadenero_accounts"."id" = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 321], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 399]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'paiNkrUgoF9Cv15jpzaT' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 321, "user_id" = 399, "created_at" = '2013-07-18 04:24:55.308165', "updated_at" = '2013-07-18 04:24:55.308165', "auth_token" = 'paiNkrUgoF9Cv15jpzaT' WHERE "public"."cadenero_members"."id" = 399  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 321 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xkzTz0ywnGHKXDtZebrGJufVvFnPTNTtYgkiIcYRpk/q6/OS.MDqC"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 400], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wUyNyeiEpuvcJpetq9CK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 400, "created_at" = '2013-07-18 04:24:55.476472', "updated_at" = '2013-07-18 04:24:55.476472', "auth_token" = 'wUyNyeiEpuvcJpetq9CK' WHERE "public"."cadenero_accounts"."id" = 322  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 322], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 400]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LLMajEoFUfSttu11X5s9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 322, "user_id" = 400, "created_at" = '2013-07-18 04:24:55.482112', "updated_at" = '2013-07-18 04:24:55.482112', "auth_token" = 'LLMajEoFUfSttu11X5s9' WHERE "public"."cadenero_members"."id" = 400  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$uYDx/pukhLSefkzllOixi.43r8Eu4i6RyWzaUOgqxipIW2kiGJurK"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 401], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZrkJ5wqVQ7FZJXrABsRG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 401, "created_at" = '2013-07-18 04:24:55.649132', "updated_at" = '2013-07-18 04:24:55.649132', "auth_token" = 'ZrkJ5wqVQ7FZJXrABsRG' WHERE "public"."cadenero_accounts"."id" = 323  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 323], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 401]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xBiW2oUxXKejYV3rPbpt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 323, "user_id" = 401, "created_at" = '2013-07-18 04:24:55.654825', "updated_at" = '2013-07-18 04:24:55.654825', "auth_token" = 'xBiW2oUxXKejYV3rPbpt' WHERE "public"."cadenero_members"."id" = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VGZumeRZ1oS.3zYXWDoVSuaZCsbfAs9qBt.vJ19TluQvMiOWKJ4YG"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 402], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WSaXHRspcRPiaqhMrgtL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 402, "created_at" = '2013-07-18 04:24:55.805571', "updated_at" = '2013-07-18 04:24:55.805571', "auth_token" = 'WSaXHRspcRPiaqhMrgtL' WHERE "public"."cadenero_accounts"."id" = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 324], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 402]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FmidVuSXaKhbApqxxmo3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 324, "user_id" = 402, "created_at" = '2013-07-18 04:24:55.810795', "updated_at" = '2013-07-18 04:24:55.810795', "auth_token" = 'FmidVuSXaKhbApqxxmo3' WHERE "public"."cadenero_members"."id" = 402  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 402 Started GET "/v1?auth_token[]=FmidVuSXaKhbApqxxmo3" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FmidVuSXaKhbApqxxmo3"], "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 323 AND "public"."cadenero_members"."auth_token" IN ('FmidVuSXaKhbApqxxmo3') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$0fGMMwDyURt.kW0rm3ech.lEv.abOtyoMKc4Pu9DcMlcPWOckyurK"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 403], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6WGyWZMtuWVCg9Tdo3zq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 403, "created_at" = '2013-07-18 04:24:56.015737', "updated_at" = '2013-07-18 04:24:56.015737', "auth_token" = '6WGyWZMtuWVCg9Tdo3zq' WHERE "public"."cadenero_accounts"."id" = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 325], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 403]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qRtNMq8FpMgyAyyjbyiH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 325, "user_id" = 403, "created_at" = '2013-07-18 04:24:56.022006', "updated_at" = '2013-07-18 04:24:56.022006', "auth_token" = 'qRtNMq8FpMgyAyyjbyiH' WHERE "public"."cadenero_members"."id" = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 403 Started GET "/v1?auth_token[]=qRtNMq8FpMgyAyyjbyiH" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["qRtNMq8FpMgyAyyjbyiH"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 325 AND "public"."cadenero_members"."auth_token" IN ('qRtNMq8FpMgyAyyjbyiH') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 403 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 403 LIMIT 1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$an1zHn/.D5hRP8NIIm8TCO93LLurhtw6b6eTsOCBZdeLr1zy3lEku"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 404], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PhnxAdtkM4FdfBVVKgSL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 404, "created_at" = '2013-07-18 04:24:56.193946', "updated_at" = '2013-07-18 04:24:56.193946', "auth_token" = 'PhnxAdtkM4FdfBVVKgSL' WHERE "public"."cadenero_accounts"."id" = 326  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 326], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 404]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JLss3Nj7wmMn9ZUqkD2A' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 326, "user_id" = 404, "created_at" = '2013-07-18 04:24:56.201195', "updated_at" = '2013-07-18 04:24:56.201195', "auth_token" = 'JLss3Nj7wmMn9ZUqkD2A' WHERE "public"."cadenero_members"."id" = 404  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 55ms (Views: 54.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$4PTlV5wvZQb0zX88LX.6He9tTNz37RiAyTk6M6QW.swQHZvwxFK82"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 405], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1SdfS3xz1y92MjRJ9ykS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 405, "created_at" = '2013-07-18 04:24:56.428156', "updated_at" = '2013-07-18 04:24:56.428156', "auth_token" = '1SdfS3xz1y92MjRJ9ykS' WHERE "public"."cadenero_accounts"."id" = 327  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 327], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 405]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '41evxhDVCLbRzHqEkNDc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 327, "user_id" = 405, "created_at" = '2013-07-18 04:24:56.434110', "updated_at" = '2013-07-18 04:24:56.434110', "auth_token" = '41evxhDVCLbRzHqEkNDc' WHERE "public"."cadenero_members"."id" = 405  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 Started GET "/v1?auth_token[]=41evxhDVCLbRzHqEkNDc" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["41evxhDVCLbRzHqEkNDc"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 327 AND "public"."cadenero_members"."auth_token" IN ('41evxhDVCLbRzHqEkNDc') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/v1/users/405" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"405"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/v1/users/405?auth_token[]=41evxhDVCLbRzHqEkNDc" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["41evxhDVCLbRzHqEkNDc"], "default"=>:json, "id"=>"405"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 327 AND "public"."cadenero_members"."auth_token" IN ('41evxhDVCLbRzHqEkNDc') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 327 AND "public"."cadenero_users"."id" = 405 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 405 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 405 Completed 200 OK in 16ms (Views: 6.1ms | ActiveRecord: 2.5ms)  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$MdYPaemGK99EvqpU7XjSM.51G4Yw6EQD9OnxsXrsfmAafoLtIWBRS"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 406], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'racPMDxtKUy9bkxPyUmE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 406, "created_at" = '2013-07-18 04:24:56.851917', "updated_at" = '2013-07-18 04:24:56.851917', "auth_token" = 'racPMDxtKUy9bkxPyUmE' WHERE "public"."cadenero_accounts"."id" = 328  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 328], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 406]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qxp1NtMxE5Lpu14amZLx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 328, "user_id" = 406, "created_at" = '2013-07-18 04:24:56.858143', "updated_at" = '2013-07-18 04:24:56.858143', "auth_token" = 'Qxp1NtMxE5Lpu14amZLx' WHERE "public"."cadenero_members"."id" = 406  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Completed 500 Internal Server Error in 2ms  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$2MRuaeVHK1LbqGuBhXvVXe4YTtvdivaeJo/z7RzVRrh.PwmZoyneK"], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 407], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'piiYbqEJAqp1wsxxDo2h' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 407, "created_at" = '2013-07-18 04:24:57.015472', "updated_at" = '2013-07-18 04:24:57.015472', "auth_token" = 'piiYbqEJAqp1wsxxDo2h' WHERE "public"."cadenero_accounts"."id" = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 329], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["user_id", 407]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KqSr5g8rZehc45VxszCv' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 329, "user_id" = 407, "created_at" = '2013-07-18 04:24:57.020882', "updated_at" = '2013-07-18 04:24:57.020882', "auth_token" = 'KqSr5g8rZehc45VxszCv' WHERE "public"."cadenero_members"."id" = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (7.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W974zZqpUtfz9jEXozDV' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:24:57.180721', "updated_at" = '2013-07-18 04:24:57.180721', "auth_token" = 'W974zZqpUtfz9jEXozDV' WHERE "public"."cadenero_members"."id" = 408  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.6ms) BEGIN Connecting to database specified by database.yml  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$RkyjKNUgvYA5nlW0wLvbueEIiP3iNFSBgO0IsEWqLJTixMJyhkbVm"], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 408], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bWGcoGN6uop5wph8BnMe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 408, "created_at" = '2013-07-18 04:25:05.535348', "updated_at" = '2013-07-18 04:25:05.535348', "auth_token" = 'bWGcoGN6uop5wph8BnMe' WHERE "public"."cadenero_accounts"."id" = 330  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 330], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["user_id", 408]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q13gxk6a2Mdw3BZkQCny' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 330, "user_id" = 408, "created_at" = '2013-07-18 04:25:05.541572', "updated_at" = '2013-07-18 04:25:05.541572', "auth_token" = 'q13gxk6a2Mdw3BZkQCny' WHERE "public"."cadenero_members"."id" = 409  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$nozOQsdfXozKOKRulyCFV.0.9iBtjW7Hl.i0SQHjF5ZQLMUNhy1.a"], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:25:54 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/J4rexNMwIlcTDDcBeck3OMet/a.JrGk9uddyM0VdT8edHSMMOL7e"], ["updated_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00], ["name", "Testy"], ["owner_id", 410], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RaxnRXPAE6KCxjHEhhCq' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 410, "created_at" = '2013-07-18 04:25:54.604986', "updated_at" = '2013-07-18 04:25:54.604986', "auth_token" = 'RaxnRXPAE6KCxjHEhhCq' WHERE "public"."cadenero_accounts"."id" = 331  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:25:54 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XDC9nRiyJyy6D8lo4rJLBuI9X.bL2KFuu2860SRPVg1jZs7jl5Oke"], ["updated_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 411], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ieafzhxA2zRAuZhjyxxH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 411, "created_at" = '2013-07-18 04:25:57.857033', "updated_at" = '2013-07-18 04:25:57.857033', "auth_token" = 'ieafzhxA2zRAuZhjyxxH' WHERE "public"."cadenero_accounts"."id" = 332  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 332], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["user_id", 411]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TwSgk1kqcSFdqCUTer1H' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 332, "user_id" = 411, "created_at" = '2013-07-18 04:25:57.955304', "updated_at" = '2013-07-18 04:25:57.955304', "auth_token" = 'TwSgk1kqcSFdqCUTer1H' WHERE "public"."cadenero_members"."id" = 410  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$f6JLTCwo87oGU717L6QEYOFXQjgjSpxq1C9Ao.TgdKxPd0EXb9h.q"], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$vk.k91BxPzK5CVCswOW5AeJRBtRMvzxTI.glC4HFeC4HsNsqR6xFi"], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["name", "Root"], ["owner_id", 413], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EqQUn7MzawFRPWuMwqfm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 413, "created_at" = '2013-07-18 04:25:58.161504', "updated_at" = '2013-07-18 04:25:58.161504', "auth_token" = 'EqQUn7MzawFRPWuMwqfm' WHERE "public"."cadenero_accounts"."id" = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 333], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["user_id", 413]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MVdMZRMat5BJz7SJus4M' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 333, "user_id" = 413, "created_at" = '2013-07-18 04:25:58.166925', "updated_at" = '2013-07-18 04:25:58.166925', "auth_token" = 'MVdMZRMat5BJz7SJus4M' WHERE "public"."cadenero_members"."id" = 411  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (5.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$wtkISOTzCwMaWpsJ3r1a8Oj/HcR3z6FP3ZxuIkCuZCMVHNQremSu."], ["updated_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 414], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sLztjCgZL8ukEsAMTKPG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 414, "created_at" = '2013-07-18 04:26:02.888848', "updated_at" = '2013-07-18 04:26:02.888848', "auth_token" = 'sLztjCgZL8ukEsAMTKPG' WHERE "public"."cadenero_accounts"."id" = 334  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 334], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["user_id", 414]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fy396bzMej9zQ8xrs9v9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 334, "user_id" = 414, "created_at" = '2013-07-18 04:26:02.895197', "updated_at" = '2013-07-18 04:26:02.895197', "auth_token" = 'fy396bzMej9zQ8xrs9v9' WHERE "public"."cadenero_members"."id" = 412  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 334 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 414 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 414 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 414 Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 414 Completed 201 Created in 153ms (Views: 31.6ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 414 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 414 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$WMY38bPGniacVr.oVu.jn.7aABleLkj9rZX3J8T3e2SpDCZuYw4VW"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 415], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Kdumk7RK3TFpVAZBDJjB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 415, "created_at" = '2013-07-18 04:26:03.325057', "updated_at" = '2013-07-18 04:26:03.325057', "auth_token" = 'Kdumk7RK3TFpVAZBDJjB' WHERE "public"."cadenero_accounts"."id" = 335  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 335], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["user_id", 415]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tG9pPUpnRyU1VJKVUyeP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 335, "user_id" = 415, "created_at" = '2013-07-18 04:26:03.332549', "updated_at" = '2013-07-18 04:26:03.332549', "auth_token" = 'tG9pPUpnRyU1VJKVUyeP' WHERE "public"."cadenero_members"."id" = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (22.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 335 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 415 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 415 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 415 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 415 Completed 201 Created in 111ms (Views: 6.1ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 415 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"415", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 415 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$F3IBwgKELoWmHwPaUfvxhuPaxizYiBJejt7LSGK1xn3VeVspzxmWy"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 416], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Duz9BpVVzpAZErzTSyKw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 416, "created_at" = '2013-07-18 04:26:03.654260', "updated_at" = '2013-07-18 04:26:03.654260', "auth_token" = 'Duz9BpVVzpAZErzTSyKw' WHERE "public"."cadenero_accounts"."id" = 336  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 336], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["user_id", 416]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1Qd8artW8Yx7iFBpzYTE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 336, "user_id" = 416, "created_at" = '2013-07-18 04:26:03.659761', "updated_at" = '2013-07-18 04:26:03.659761', "auth_token" = '1Qd8artW8Yx7iFBpzYTE' WHERE "public"."cadenero_members"."id" = 414  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Completed 500 Internal Server Error in 2ms  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$PsPjTSgoj0CKBR4fDxTn9evl8royFqntXS7V9ZH3C.K.WXLBseeDG"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 417], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6wjNH5ahXcyaEWPXP2z3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 417, "created_at" = '2013-07-18 04:26:03.854012', "updated_at" = '2013-07-18 04:26:03.854012', "auth_token" = '6wjNH5ahXcyaEWPXP2z3' WHERE "public"."cadenero_accounts"."id" = 337  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 337], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["user_id", 417]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hjH24PrxxDGxsxwFHjVx' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 337, "user_id" = 417, "created_at" = '2013-07-18 04:26:03.860656', "updated_at" = '2013-07-18 04:26:03.860656', "auth_token" = 'hjH24PrxxDGxsxwFHjVx' WHERE "public"."cadenero_members"."id" = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 337 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (22.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 417 LIMIT 1 Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 417 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 417 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 417 Completed 201 Created in 320ms (Views: 5.9ms | ActiveRecord: 27.3ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 417 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"417", "default"=>:json} Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 417 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.0ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Completed 500 Internal Server Error in 2ms  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (13.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$48uyKEp6xwDHZmf6oBfX1uu5vZam903Tag6dzMS0YUSf/Z4q/NhKa"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 418], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'N29hAfTaCoqvFVFJjTgF' LIMIT 1  (10.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 418, "created_at" = '2013-07-18 04:26:04.480993', "updated_at" = '2013-07-18 04:26:04.480993', "auth_token" = 'N29hAfTaCoqvFVFJjTgF' WHERE "public"."cadenero_accounts"."id" = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.1ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 338], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["user_id", 418]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qppx6NaxpuBbAqS9kaKC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 338, "user_id" = 418, "created_at" = '2013-07-18 04:26:04.508089', "updated_at" = '2013-07-18 04:26:04.508089', "auth_token" = 'Qppx6NaxpuBbAqS9kaKC' WHERE "public"."cadenero_members"."id" = 416  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (12.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (8.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 338 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.9ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$6D9ngNY37tANtUI35CY0Z.SMEENjdR7mX.5/ILHp5Yf4PPmQScxgm"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]]  (3.4ms) RELEASE SAVEPOINT active_record_1  (4.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (10.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 419], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uv1grWqssoYnrZpVLn5y' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 419, "created_at" = '2013-07-18 04:26:04.787841', "updated_at" = '2013-07-18 04:26:04.787841', "auth_token" = 'uv1grWqssoYnrZpVLn5y' WHERE "public"."cadenero_accounts"."id" = 339  (8.6ms) RELEASE SAVEPOINT active_record_1  (8.9ms) SAVEPOINT active_record_1 SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 339], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["user_id", 419]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AsvedmRozWxQzpx8HzPB' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 339, "user_id" = 419, "created_at" = '2013-07-18 04:26:04.829215', "updated_at" = '2013-07-18 04:26:04.829215', "auth_token" = 'AsvedmRozWxQzpx8HzPB' WHERE "public"."cadenero_members"."id" = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (15.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (9.6ms) SELECT version FROM "schema_migrations"  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.1ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$FeYIOQZp8t4H/7j.Z1G6Y.5n05kJGIJQ0zOyVyJmCWtkxKZkXuzl6"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]]  (5.5ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 420], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xfcDx6FBTPRGg9xoBtvW' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 420, "created_at" = '2013-07-18 04:26:05.172488', "updated_at" = '2013-07-18 04:26:05.172488', "auth_token" = 'xfcDx6FBTPRGg9xoBtvW' WHERE "public"."cadenero_accounts"."id" = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 340], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["user_id", 420]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FvtngyVyJk7GXpsAFxya' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 340, "user_id" = 420, "created_at" = '2013-07-18 04:26:05.179258', "updated_at" = '2013-07-18 04:26:05.179258', "auth_token" = 'FvtngyVyJk7GXpsAFxya' WHERE "public"."cadenero_members"."id" = 418  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 339 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$4L9HNRI/h0VvcPaCbBRR/OCnaFP./0F4g.7bKfc/Nsem/XbgqV5Am"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 421], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zTztAP9ZWAawHsY5rqq7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 421, "created_at" = '2013-07-18 04:26:05.415414', "updated_at" = '2013-07-18 04:26:05.415414', "auth_token" = 'zTztAP9ZWAawHsY5rqq7' WHERE "public"."cadenero_accounts"."id" = 341  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 341], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["user_id", 421]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BxsGxhTLqzPv1VLCUM92' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 341, "user_id" = 421, "created_at" = '2013-07-18 04:26:05.421043', "updated_at" = '2013-07-18 04:26:05.421043', "auth_token" = 'BxsGxhTLqzPv1VLCUM92' WHERE "public"."cadenero_members"."id" = 419  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (21.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (28.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (7.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 341 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | ActiveRecord: 8.1ms) Cadenero::V1::Account Load (9.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.8ms) ROLLBACK  (0.3ms) BEGIN  (1.6ms) COMMIT  (2.3ms) BEGIN  (15.3ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$GmJO0RPDQA5IUM/MsRr2deHDZ8kwPk8LrrTN28cPti63Zf5vL2OEy"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 422], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'psypJb1SzE57zH8dYpfR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 422, "created_at" = '2013-07-18 04:26:05.871777', "updated_at" = '2013-07-18 04:26:05.871777', "auth_token" = 'psypJb1SzE57zH8dYpfR' WHERE "public"."cadenero_accounts"."id" = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 342], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["user_id", 422]] Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8wgA21dZ6SjgTkSG9M7k' LIMIT 1  (10.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 342, "user_id" = 422, "created_at" = '2013-07-18 04:26:05.877416', "updated_at" = '2013-07-18 04:26:05.877416', "auth_token" = '8wgA21dZ6SjgTkSG9M7k' WHERE "public"."cadenero_members"."id" = 420  (6.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (4.4ms) BEGIN  (4.2ms) COMMIT  (1.7ms) BEGIN  (9.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$rMf2vPOVW3y3riEDfEV02uSgDsGlVOy6ShdRz1TcGgPqHgMXR7wG2"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (9.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 423], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ykWCZKmpd3QRjxjou8V4' LIMIT 1  (6.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 423, "created_at" = '2013-07-18 04:26:06.188041', "updated_at" = '2013-07-18 04:26:06.188041', "auth_token" = 'ykWCZKmpd3QRjxjou8V4' WHERE "public"."cadenero_accounts"."id" = 343  (8.4ms) RELEASE SAVEPOINT active_record_1  (5.3ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 343], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["user_id", 423]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QV8Dgs2jSbSMo1ySFpAL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 343, "user_id" = 423, "created_at" = '2013-07-18 04:26:06.227463', "updated_at" = '2013-07-18 04:26:06.227463', "auth_token" = 'QV8Dgs2jSbSMo1ySFpAL' WHERE "public"."cadenero_members"."id" = 421  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (7.3ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 423 Started GET "/v1?auth_token[]=QV8Dgs2jSbSMo1ySFpAL" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["QV8Dgs2jSbSMo1ySFpAL"], "default"=>:json} Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 343 AND "public"."cadenero_members"."auth_token" IN ('QV8Dgs2jSbSMo1ySFpAL') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 423 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 423 LIMIT 1 Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 5.0ms)  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (23.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$zJqP9Ziahuh5tf/ZfQ0jXOp5jvkRgHDjyH6bxHVNsvAb6OuXvNUU2"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 424], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WVFC2qUEYJXvo6qia5Hu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 424, "created_at" = '2013-07-18 04:26:06.507884', "updated_at" = '2013-07-18 04:26:06.507884', "auth_token" = 'WVFC2qUEYJXvo6qia5Hu' WHERE "public"."cadenero_accounts"."id" = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 344], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["user_id", 424]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2Ppx5VqmpoQTgaTRyWv7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 344, "user_id" = 424, "created_at" = '2013-07-18 04:26:06.513269', "updated_at" = '2013-07-18 04:26:06.513269', "auth_token" = '2Ppx5VqmpoQTgaTRyWv7' WHERE "public"."cadenero_members"."id" = 422  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (12.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (7.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) SAVEPOINT active_record_1 SQL (12.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$K7e84PTxQM4Rm3QGE0s0HOUu/StjkUZctKXEgwTsksHgyR/O.Alvq"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (16.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 425], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'y4yWC2xkmEcSVkSJvrvP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 425, "created_at" = '2013-07-18 04:26:06.753144', "updated_at" = '2013-07-18 04:26:06.753144', "auth_token" = 'y4yWC2xkmEcSVkSJvrvP' WHERE "public"."cadenero_accounts"."id" = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 345], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["user_id", 425]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MKQA8HLmt4aHTbohq2um' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 345, "user_id" = 425, "created_at" = '2013-07-18 04:26:06.758559', "updated_at" = '2013-07-18 04:26:06.758559', "auth_token" = 'MKQA8HLmt4aHTbohq2um' WHERE "public"."cadenero_members"."id" = 423  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (13.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (8.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (5.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 425 Started GET "/v1?auth_token[]=MKQA8HLmt4aHTbohq2um" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["MKQA8HLmt4aHTbohq2um"], "default"=>:json} Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 344 AND "public"."cadenero_members"."auth_token" IN ('MKQA8HLmt4aHTbohq2um') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 3.6ms)  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$VvTO/Ju7wsT2nvcQ7sIbFe1BBObbqhSo6uaQtfnvi/AQzFNWTQeNe"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]]  (4.7ms) RELEASE SAVEPOINT active_record_1  (6.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (5.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 426], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sx6w8uKuwmyAL826Vx48' LIMIT 1  (4.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 426, "created_at" = '2013-07-18 04:26:07.067382', "updated_at" = '2013-07-18 04:26:07.067382', "auth_token" = 'sx6w8uKuwmyAL826Vx48' WHERE "public"."cadenero_accounts"."id" = 346  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 346], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["user_id", 426]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'znozuGaswwcSSQ7y6kNb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 346, "user_id" = 426, "created_at" = '2013-07-18 04:26:07.084616', "updated_at" = '2013-07-18 04:26:07.084616', "auth_token" = 'znozuGaswwcSSQ7y6kNb' WHERE "public"."cadenero_members"."id" = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (6.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Completed 500 Internal Server Error in 8ms  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (4.7ms) COMMIT  (0.1ms) BEGIN  (6.0ms) SAVEPOINT active_record_1 SQL (13.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$oiPA8GN0JWpZxVd4oaTFdu4e5VvIgIBqR9IKUZ0XcVvo/pL2Diipm"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 427], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'S6f5fEJjEyE4p3zaZhvF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 427, "created_at" = '2013-07-18 04:26:07.328342', "updated_at" = '2013-07-18 04:26:07.328342', "auth_token" = 'S6f5fEJjEyE4p3zaZhvF' WHERE "public"."cadenero_accounts"."id" = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (12.3ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 347], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["user_id", 427]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7uPTx5VqnSMWqppHrkqu' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 347, "user_id" = 427, "created_at" = '2013-07-18 04:26:07.346849', "updated_at" = '2013-07-18 04:26:07.346849', "auth_token" = '7uPTx5VqnSMWqppHrkqu' WHERE "public"."cadenero_members"."id" = 425  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 427 Started GET "/v1?auth_token[]=7uPTx5VqnSMWqppHrkqu" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["7uPTx5VqnSMWqppHrkqu"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 347 AND "public"."cadenero_members"."auth_token" IN ('7uPTx5VqnSMWqppHrkqu') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1/users/427" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"427"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started GET "/v1/users/427?auth_token[]=7uPTx5VqnSMWqppHrkqu" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["7uPTx5VqnSMWqppHrkqu"], "default"=>:json, "id"=>"427"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 347 AND "public"."cadenero_members"."auth_token" IN ('7uPTx5VqnSMWqppHrkqu') LIMIT 1 Cadenero::User Load (3.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 Cadenero::V1::Account Load (9.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (4.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 347 AND "public"."cadenero_users"."id" = 427 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 427 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 427 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 427 Completed 200 OK in 34ms (Views: 6.3ms | ActiveRecord: 19.2ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (8.8ms) BEGIN  (9.3ms) COMMIT  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (6.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 54ms (Views: 6.5ms | ActiveRecord: 5.5ms)  (0.1ms) ROLLBACK  (1.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (14.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (14.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 37ms (Views: 6.4ms | ActiveRecord: 29.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (17.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.3ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$QM3ubtK0i8MyQBb3Wdpf5uJHj2hEal.d.nBdPaao9bnTArD4EWNbm"], ["updated_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 428], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Fm4dKizKdaipByZCgG3p' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 428, "created_at" = '2013-07-18 04:26:08.973090', "updated_at" = '2013-07-18 04:26:08.973090', "auth_token" = 'Fm4dKizKdaipByZCgG3p' WHERE "public"."cadenero_accounts"."id" = 348  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 348], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["user_id", 428]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qcPKvWASMp7zKAz94p9j' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 348, "user_id" = 428, "created_at" = '2013-07-18 04:26:08.981266', "updated_at" = '2013-07-18 04:26:08.981266', "auth_token" = 'qcPKvWASMp7zKAz94p9j' WHERE "public"."cadenero_members"."id" = 426  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.1ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 348 LIMIT 1  (11.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6XR2V7BgEeaBbgS6x74R' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:26:09.426988', "updated_at" = '2013-07-18 04:26:09.426988', "auth_token" = '6XR2V7BgEeaBbgS6x74R' WHERE "public"."cadenero_members"."id" = 427  (7.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$HnTzKVNde1zQ59mL07su3.a6TdSaKbj07pdDi15GI50k0hhirIpJO"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (2.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 429], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'waiXstrsKvuCtESUZ4Qt' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 429, "created_at" = '2013-07-18 04:26:09.629112', "updated_at" = '2013-07-18 04:26:09.629112', "auth_token" = 'waiXstrsKvuCtESUZ4Qt' WHERE "public"."cadenero_accounts"."id" = 349  (3.7ms) RELEASE SAVEPOINT active_record_1  (7.0ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 349], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["user_id", 429]] Cadenero::Member Load (10.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PLYn2JEu348dYbM7BnrK' LIMIT 1  (4.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 349, "user_id" = 429, "created_at" = '2013-07-18 04:26:09.653193', "updated_at" = '2013-07-18 04:26:09.653193', "auth_token" = 'PLYn2JEu348dYbM7BnrK' WHERE "public"."cadenero_members"."id" = 428  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test16"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Completed 500 Internal Server Error in 2ms  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (6.5ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$e4b4uyxnMZJL61JcOjImQ.uQ9lpNkGQkhSvoA2TVj8bmXC9Le1pui"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]]  (8.7ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 430], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'K25ARLxgz5Z3DUQp3V1M' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 430, "created_at" = '2013-07-18 04:26:09.921701', "updated_at" = '2013-07-18 04:26:09.921701', "auth_token" = 'K25ARLxgz5Z3DUQp3V1M' WHERE "public"."cadenero_accounts"."id" = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 350], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["user_id", 430]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'i3B5Ghdpvrzx3JAapjuH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 350, "user_id" = 430, "created_at" = '2013-07-18 04:26:09.927600', "updated_at" = '2013-07-18 04:26:09.927600', "auth_token" = 'i3B5Ghdpvrzx3JAapjuH' WHERE "public"."cadenero_members"."id" = 429  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (8.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:10 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Completed 500 Internal Server Error in 2ms  (3.5ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'J4sDpYZYQsBdWQukzJh5' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:33:00.155848', "updated_at" = '2013-07-18 04:33:00.155848', "auth_token" = 'J4sDpYZYQsBdWQukzJh5' WHERE "public"."cadenero_members"."id" = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/1.2NMlGCiLmpXV5zkFgL.5XziuK527WBNxHW/9YrgFntBD8uS8oW"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["name", "Test Account"], ["owner_id", 431], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2DvLsbH2iq5MWatUy58q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 431, "created_at" = '2013-07-18 04:33:00.472659', "updated_at" = '2013-07-18 04:33:00.472659', "auth_token" = '2DvLsbH2iq5MWatUy58q' WHERE "public"."cadenero_accounts"."id" = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 351], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["user_id", 431]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ERRccPHuQycEpQppsFRo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 351, "user_id" = 431, "created_at" = '2013-07-18 04:33:00.502552', "updated_at" = '2013-07-18 04:33:00.502552', "auth_token" = 'ERRccPHuQycEpQppsFRo' WHERE "public"."cadenero_members"."id" = 431  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test"  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 351 LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$tFTcJ2LBXVS4Su8vnx0aD.uxKSAuQBOfAX2dr810Usc22giRwfcrO"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 432], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PQqHnVvT8FSBEsmfH1ty' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 432, "created_at" = '2013-07-18 04:33:00.889687', "updated_at" = '2013-07-18 04:33:00.889687', "auth_token" = 'PQqHnVvT8FSBEsmfH1ty' WHERE "public"."cadenero_accounts"."id" = 352  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 352], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["user_id", 432]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FVhHzMsdraTQKCLVa7Qj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 352, "user_id" = 432, "created_at" = '2013-07-18 04:33:00.895370', "updated_at" = '2013-07-18 04:33:00.895370', "auth_token" = 'FVhHzMsdraTQKCLVa7Qj' WHERE "public"."cadenero_members"."id" = 432  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$G1QdRptNB0OvMqLsrGHhLu.Ypc9wlsOEj/0eJM/wr1Tr7uNM5j6NK"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 352], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 433]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dRSyncNssdC7R7hUyiUg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 352, "user_id" = 433, "created_at" = '2013-07-18 04:33:01.111079', "updated_at" = '2013-07-18 04:33:01.111079', "auth_token" = 'dRSyncNssdC7R7hUyiUg' WHERE "public"."cadenero_members"."id" = 433  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 433 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 433 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 433 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 433 Completed 201 Created in 145ms (Views: 31.2ms | ActiveRecord: 4.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/433" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"433"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 352 AND "public"."cadenero_users"."id" = 433 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 433 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 433 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 433 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 433 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.9ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$FTC/oUCcpXNjl7YAjVg5gOBX.p4Kb6IfUtUNqSROsnVlfsNxotKfG"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 434], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qx59y5AbVC1FQYYRsR6b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 434, "created_at" = '2013-07-18 04:33:01.287911', "updated_at" = '2013-07-18 04:33:01.287911', "auth_token" = 'qx59y5AbVC1FQYYRsR6b' WHERE "public"."cadenero_accounts"."id" = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 353], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 434]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dtcsMMw64LJ3ozpxpRye' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 353, "user_id" = 434, "created_at" = '2013-07-18 04:33:01.293468', "updated_at" = '2013-07-18 04:33:01.293468', "auth_token" = 'dtcsMMw64LJ3ozpxpRye' WHERE "public"."cadenero_members"."id" = 434  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1KS0YHzeiDaOayggQkXxTeicN9IVmtCPl3ZZ1swN90J3jsEJwTL6G"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 353], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 435]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N6HefRqg19zfs7VqTkYc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 353, "user_id" = 435, "created_at" = '2013-07-18 04:33:01.443670', "updated_at" = '2013-07-18 04:33:01.443670', "auth_token" = 'N6HefRqg19zfs7VqTkYc' WHERE "public"."cadenero_members"."id" = 435  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/435" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"435"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 AND "public"."cadenero_users"."id" = 435 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 435], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XCCvGjeMCBs2RcSZiPtx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 435, "created_at" = '2013-07-18 04:33:01.474458', "updated_at" = '2013-07-18 04:33:01.474458', "auth_token" = 'XCCvGjeMCBs2RcSZiPtx' WHERE "public"."cadenero_accounts"."id" = 354  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 354], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 435]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3Y2pjVwctmqjhTyq5dNm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 354, "user_id" = 435, "created_at" = '2013-07-18 04:33:01.480543', "updated_at" = '2013-07-18 04:33:01.480543', "auth_token" = '3Y2pjVwctmqjhTyq5dNm' WHERE "public"."cadenero_members"."id" = 436  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$FxPUAjjqOnh8TXbH8jYafe3ToS.f1QUoS7MQenn7Uuh0hHtm4kB2W"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 354], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 436]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UxaVy7KmcM9P5kWyXhqg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 354, "user_id" = 436, "created_at" = '2013-07-18 04:33:01.629073', "updated_at" = '2013-07-18 04:33:01.629073', "auth_token" = 'UxaVy7KmcM9P5kWyXhqg' WHERE "public"."cadenero_members"."id" = 437  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 436 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 436 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 436 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 436 Completed 201 Created in 113ms (Views: 5.7ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/436" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"436"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 354 AND "public"."cadenero_users"."id" = 436 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 436 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 436 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 436 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 436 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) Started GET "/v1/users/435" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"435"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 AND "public"."cadenero_users"."id" = 435 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 434 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 434 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 434 Completed 200 OK in 62ms (Views: 57.5ms | ActiveRecord: 2.9ms)  (6.0ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$phgd/CeC1zglJpuui1TvneCxOE2XRzQu0vTYksjThgZfEkmT1HnLG"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 437], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WxkEDFBnPt7wh9pcznvM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 437, "created_at" = '2013-07-18 04:33:01.857503', "updated_at" = '2013-07-18 04:33:01.857503', "auth_token" = 'WxkEDFBnPt7wh9pcznvM' WHERE "public"."cadenero_accounts"."id" = 355  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 355], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 437]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7e21CuPfLYCb1zEEoxAN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 355, "user_id" = 437, "created_at" = '2013-07-18 04:33:01.863134', "updated_at" = '2013-07-18 04:33:01.863134', "auth_token" = '7e21CuPfLYCb1zEEoxAN' WHERE "public"."cadenero_members"."id" = 438  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 355 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 437 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 437 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 437 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 437 Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 437 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 437 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$EC/5yrd5Z5c3VEfhMdYt2Ok0dHn9AbNhk4k6CZhTFCG/t7DZKBWsS"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 438], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1Ty1bgwacVeTHQzxroTx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 438, "created_at" = '2013-07-18 04:33:02.161996', "updated_at" = '2013-07-18 04:33:02.161996', "auth_token" = '1Ty1bgwacVeTHQzxroTx' WHERE "public"."cadenero_accounts"."id" = 356  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 356], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 438]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's4iSThyHxpLErccxMTAq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 356, "user_id" = 438, "created_at" = '2013-07-18 04:33:02.168365', "updated_at" = '2013-07-18 04:33:02.168365', "auth_token" = 's4iSThyHxpLErccxMTAq' WHERE "public"."cadenero_members"."id" = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 356 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 438 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 438 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 438 Completed 201 Created in 107ms (Views: 5.2ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"438", "default"=>:json} Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 438 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yU0AFgwItHWflU16IxhA4uV8bbcIxBfzvyehQ6o28LaOlV3wDZfJO"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 439], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tHztQzLedrQRoPLqViPQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 439, "created_at" = '2013-07-18 04:33:02.452964', "updated_at" = '2013-07-18 04:33:02.452964', "auth_token" = 'tHztQzLedrQRoPLqViPQ' WHERE "public"."cadenero_accounts"."id" = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 357], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 439]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gG9dub9LyazotRYpBX9k' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 357, "user_id" = 439, "created_at" = '2013-07-18 04:33:02.459034', "updated_at" = '2013-07-18 04:33:02.459034', "auth_token" = 'gG9dub9LyazotRYpBX9k' WHERE "public"."cadenero_members"."id" = 440  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 357 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 439 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 439 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 439 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 439 Completed 201 Created in 107ms (Views: 5.2ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 439 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"439", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 439 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$t2IiixeCILAEAt86N/YJ0eS8f4HKWorgdJQth2JVYpNA22lMQOSK6"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 357], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 440]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oSLonykm4JHC5uPmZsQm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 357, "user_id" = 440, "created_at" = '2013-07-18 04:33:02.732833', "updated_at" = '2013-07-18 04:33:02.732833', "auth_token" = 'oSLonykm4JHC5uPmZsQm' WHERE "public"."cadenero_members"."id" = 441  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/440" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"440"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 357 AND "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$xk6kqILGXiEbGfMYYRgkue6dpnkOzBTUzA6KAbu5PA3pgWJHx.TWq"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 441], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RLYKddasR1UuGHsvwzsU' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 441, "created_at" = '2013-07-18 04:33:02.884310', "updated_at" = '2013-07-18 04:33:02.884310', "auth_token" = 'RLYKddasR1UuGHsvwzsU' WHERE "public"."cadenero_accounts"."id" = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 358], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 441]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xj8GHdYg8JtFFaDdV4Dx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 358, "user_id" = 441, "created_at" = '2013-07-18 04:33:02.890344', "updated_at" = '2013-07-18 04:33:02.890344', "auth_token" = 'xj8GHdYg8JtFFaDdV4Dx' WHERE "public"."cadenero_members"."id" = 442  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$p/BSSwzTlOu5.h.LdKxR8eyd8gqEcEym7Ug5knFk2tFtk.K4ox.5W"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 358], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 442]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'poof9qutdpagwAxAxiBy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 358, "user_id" = 442, "created_at" = '2013-07-18 04:33:03.043614', "updated_at" = '2013-07-18 04:33:03.043614', "auth_token" = 'poof9qutdpagwAxAxiBy' WHERE "public"."cadenero_members"."id" = 443  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 442 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 442 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 442 Completed 201 Created in 113ms (Views: 5.7ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/442" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"442"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 358 AND "public"."cadenero_users"."id" = 442 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 442 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 442 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 442 Completed 200 OK in 43ms (Views: 6.3ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 442 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 442 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 442 Completed 201 Created in 8ms (Views: 4.9ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$BmyXkIX7nA/BvSR824WB6e/wD4V/nQp/aq1By4voxTmnUn3zXDxam"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 443], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9xqVwczNbiwnmq5kFEL3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 443, "created_at" = '2013-07-18 04:33:03.236167', "updated_at" = '2013-07-18 04:33:03.236167', "auth_token" = '9xqVwczNbiwnmq5kFEL3' WHERE "public"."cadenero_accounts"."id" = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 359], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 443]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CKsNctxkHmkexcPEw1Hi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 359, "user_id" = 443, "created_at" = '2013-07-18 04:33:03.242084', "updated_at" = '2013-07-18 04:33:03.242084', "auth_token" = 'CKsNctxkHmkexcPEw1Hi' WHERE "public"."cadenero_members"."id" = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 359 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$oKOEGL9QhSU5hkjEXZ4HS.YtKFDHE8jx17dlgKaAEV3xynuVmVn3y"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 444], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RDVcVUqCj2ysduPw2puc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 444, "created_at" = '2013-07-18 04:33:03.411050', "updated_at" = '2013-07-18 04:33:03.411050', "auth_token" = 'RDVcVUqCj2ysduPw2puc' WHERE "public"."cadenero_accounts"."id" = 360  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 360], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 444]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AtEkV1F3uK7sqtxQ6ifG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 360, "user_id" = 444, "created_at" = '2013-07-18 04:33:03.416954', "updated_at" = '2013-07-18 04:33:03.416954', "auth_token" = 'AtEkV1F3uK7sqtxQ6ifG' WHERE "public"."cadenero_members"."id" = 445  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Zy3yjXzbqTHHtimjnurhYujsVpAvVid8IplZ/sbVcn4vLbXnkaG7C"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 445], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's7VXJ8Ys83giiq2SMMYi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 445, "created_at" = '2013-07-18 04:33:03.617639', "updated_at" = '2013-07-18 04:33:03.617639', "auth_token" = 's7VXJ8Ys83giiq2SMMYi' WHERE "public"."cadenero_accounts"."id" = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 361], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 445]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zTEFDjk7zwbHyGuyXPdw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 361, "user_id" = 445, "created_at" = '2013-07-18 04:33:03.623266', "updated_at" = '2013-07-18 04:33:03.623266', "auth_token" = 'zTEFDjk7zwbHyGuyXPdw' WHERE "public"."cadenero_members"."id" = 446  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 360 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$qhmiTJ6mlFkMnI7GWN8mB.nRU9ZTg6E8M0BhWnzKYpy6to.2Ex4Ei"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 446], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'u1DjeJHFQNnWrSsZu2Tx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 446, "created_at" = '2013-07-18 04:33:03.751763', "updated_at" = '2013-07-18 04:33:03.751763', "auth_token" = 'u1DjeJHFQNnWrSsZu2Tx' WHERE "public"."cadenero_accounts"."id" = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 362], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 446]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2WHAeQ7pNM3fWskQ1Zxy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 362, "user_id" = 446, "created_at" = '2013-07-18 04:33:03.758446', "updated_at" = '2013-07-18 04:33:03.758446', "auth_token" = '2WHAeQ7pNM3fWskQ1Zxy' WHERE "public"."cadenero_members"."id" = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$XnxRc/ZS/hBFZw4pTyDCc.7X7V5.c.FI9BOVdH3zD5Duvn3Gl05tG"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 447], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LohytvRm1BuVmiAmNYqi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 447, "created_at" = '2013-07-18 04:33:03.917418', "updated_at" = '2013-07-18 04:33:03.917418', "auth_token" = 'LohytvRm1BuVmiAmNYqi' WHERE "public"."cadenero_accounts"."id" = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 363], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 447]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iVyjDtAPCN3eqHx3YWqE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 363, "user_id" = 447, "created_at" = '2013-07-18 04:33:03.922865', "updated_at" = '2013-07-18 04:33:03.922865', "auth_token" = 'iVyjDtAPCN3eqHx3YWqE' WHERE "public"."cadenero_members"."id" = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 363 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$VqycmA9mcMha7ZXso.axAuhGCmzVkhckMwshZq6CnpC/wJWvbvZia"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 448], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TSqMM1pQT7dxJNn4zNf3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 448, "created_at" = '2013-07-18 04:33:04.095189', "updated_at" = '2013-07-18 04:33:04.095189', "auth_token" = 'TSqMM1pQT7dxJNn4zNf3' WHERE "public"."cadenero_accounts"."id" = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 364], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 448]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5DeZVd4H65CrsZVEDku6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 364, "user_id" = 448, "created_at" = '2013-07-18 04:33:04.101106', "updated_at" = '2013-07-18 04:33:04.101106', "auth_token" = '5DeZVd4H65CrsZVEDku6' WHERE "public"."cadenero_members"."id" = 449  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 448 Started GET "/v1?auth_token[]=5DeZVd4H65CrsZVEDku6" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["5DeZVd4H65CrsZVEDku6"], "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 364 AND "public"."cadenero_members"."auth_token" IN ('5DeZVd4H65CrsZVEDku6') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 448 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 448 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$/egrU05wcQ9Q.xgqO7axG.l6AVEGNenqYAKKMdC9vksQHagQghw5."], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 449], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6sgNWofRAzjSjG2yWzYc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 449, "created_at" = '2013-07-18 04:33:04.271278', "updated_at" = '2013-07-18 04:33:04.271278', "auth_token" = '6sgNWofRAzjSjG2yWzYc' WHERE "public"."cadenero_accounts"."id" = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 365], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 449]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n6zCGbgbxNosQ8qoGpCR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 365, "user_id" = 449, "created_at" = '2013-07-18 04:33:04.276669', "updated_at" = '2013-07-18 04:33:04.276669', "auth_token" = 'n6zCGbgbxNosQ8qoGpCR' WHERE "public"."cadenero_members"."id" = 450  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (6.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$QLpYBywEzBae4npktwEob.28JHTS41bwn8wCkImeXag/l2a1M5Aim"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 450], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ttQomnP1KvsoDjeUCzVe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 450, "created_at" = '2013-07-18 04:33:04.427051', "updated_at" = '2013-07-18 04:33:04.427051', "auth_token" = 'ttQomnP1KvsoDjeUCzVe' WHERE "public"."cadenero_accounts"."id" = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 366], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 450]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zUGeeZxqpxJ6cSLRpsnX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 366, "user_id" = 450, "created_at" = '2013-07-18 04:33:04.432212', "updated_at" = '2013-07-18 04:33:04.432212', "auth_token" = 'zUGeeZxqpxJ6cSLRpsnX' WHERE "public"."cadenero_members"."id" = 451  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 450 Started GET "/v1?auth_token[]=zUGeeZxqpxJ6cSLRpsnX" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zUGeeZxqpxJ6cSLRpsnX"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 365 AND "public"."cadenero_members"."auth_token" IN ('zUGeeZxqpxJ6cSLRpsnX') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$Z1CbPMFc0qXzCRClQ3jubuX7x6TlpmlbrtidcZHf0yScBEwjeG8fy"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 451], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mSrGWBFF5y2QvnX7ZHxu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 451, "created_at" = '2013-07-18 04:33:04.602536', "updated_at" = '2013-07-18 04:33:04.602536', "auth_token" = 'mSrGWBFF5y2QvnX7ZHxu' WHERE "public"."cadenero_accounts"."id" = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 367], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 451]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FF4C1kX1xC9tUXZFNPZV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 367, "user_id" = 451, "created_at" = '2013-07-18 04:33:04.608358', "updated_at" = '2013-07-18 04:33:04.608358', "auth_token" = 'FF4C1kX1xC9tUXZFNPZV' WHERE "public"."cadenero_members"."id" = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 451 Started GET "/v1?auth_token[]=FF4C1kX1xC9tUXZFNPZV" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["FF4C1kX1xC9tUXZFNPZV"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 367 AND "public"."cadenero_members"."auth_token" IN ('FF4C1kX1xC9tUXZFNPZV') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.9ms) Started GET "/v1/users/451" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"451"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/451?auth_token[]=FF4C1kX1xC9tUXZFNPZV" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["FF4C1kX1xC9tUXZFNPZV"], "default"=>:json, "id"=>"451"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 367 AND "public"."cadenero_members"."auth_token" IN ('FF4C1kX1xC9tUXZFNPZV') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 367 AND "public"."cadenero_users"."id" = 451 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 451 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 451 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 451 Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 2.8ms)  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$omn1msG8dZXugWk6zxdmluJChjh4m6dxNVP6ROY/rW7083pXjypOK"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 452], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nypJPrrk8do5Hff3UUS7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 452, "created_at" = '2013-07-18 04:33:04.803052', "updated_at" = '2013-07-18 04:33:04.803052', "auth_token" = 'nypJPrrk8do5Hff3UUS7' WHERE "public"."cadenero_accounts"."id" = 368  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 368], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 452]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VDQQLWdU3QZWqhag3Cps' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 368, "user_id" = 452, "created_at" = '2013-07-18 04:33:04.808771', "updated_at" = '2013-07-18 04:33:04.808771', "auth_token" = 'VDQQLWdU3QZWqhag3Cps' WHERE "public"."cadenero_members"."id" = 453  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test17"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$0ofYxCbLLabNnQ0sDv6ZfO4nNfOFgsj5Rji0kQP/ujWsuR3fgqyHO"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 368], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 453]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XsK548cq1GRna1mznJyZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 368, "user_id" = 453, "created_at" = '2013-07-18 04:33:04.994916', "updated_at" = '2013-07-18 04:33:04.994916', "auth_token" = 'XsK548cq1GRna1mznJyZ' WHERE "public"."cadenero_members"."id" = 454  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 453 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 453 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 453 Completed 201 Created in 114ms (Views: 6.1ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/453" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"453"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 368 AND "public"."cadenero_users"."id" = 453 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 453 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 453 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 453 Completed 200 OK in 14ms (Views: 6.8ms | ActiveRecord: 2.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 452 Started GET "/v1?auth_token[]=VDQQLWdU3QZWqhag3Cps" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["VDQQLWdU3QZWqhag3Cps"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 368 AND "public"."cadenero_members"."auth_token" IN ('VDQQLWdU3QZWqhag3Cps') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 452 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 452 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 453 Started GET "/v1?auth_token[]=XsK548cq1GRna1mznJyZ" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["XsK548cq1GRna1mznJyZ"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 368 AND "public"."cadenero_members"."auth_token" IN ('XsK548cq1GRna1mznJyZ') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (260.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$RypqBF3lGk8U7PmZkVGoI.RSJww9JtdQYmZRpRbb7gFdTLthxxxJC"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["name", "Testy"], ["owner_id", 454], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'eBa3HVkwqTptjki4zWCx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 454, "created_at" = '2013-07-18 04:33:05.439496', "updated_at" = '2013-07-18 04:33:05.439496', "auth_token" = 'eBa3HVkwqTptjki4zWCx' WHERE "public"."cadenero_accounts"."id" = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 369], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["user_id", 454]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4ZXhYiWpCDVAAFqmYEbG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 369, "user_id" = 454, "created_at" = '2013-07-18 04:33:05.445646', "updated_at" = '2013-07-18 04:33:05.445646', "auth_token" = '4ZXhYiWpCDVAAFqmYEbG' WHERE "public"."cadenero_members"."id" = 455  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 369) LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 454 LIMIT 1 Completed 500 Internal Server Error in 224ms  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$UqDcMM5PC/1y3gtqJu9CLOTxLa2LortweuyjEmY/ZefiHSu8l41hi"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["name", "Testy"], ["owner_id", 455], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Q1DvcwHZjWNqTBbWwGxf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 455, "created_at" = '2013-07-18 04:33:05.659770', "updated_at" = '2013-07-18 04:33:05.659770', "auth_token" = 'Q1DvcwHZjWNqTBbWwGxf' WHERE "public"."cadenero_accounts"."id" = 370  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 102ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$S1SyzDJra/tenDZizK6yR.7KqWBjFffTkAr3DBIt20n0PEFYx0lpC"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 456], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Rtp7szbyrsgQf6yKmFjB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 456, "created_at" = '2013-07-18 04:33:09.113519', "updated_at" = '2013-07-18 04:33:09.113519', "auth_token" = 'Rtp7szbyrsgQf6yKmFjB' WHERE "public"."cadenero_accounts"."id" = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 371], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["user_id", 456]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mgrxLjXRXsYeqs4qHgxq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 371, "user_id" = 456, "created_at" = '2013-07-18 04:33:09.120203', "updated_at" = '2013-07-18 04:33:09.120203', "auth_token" = 'mgrxLjXRXsYeqs4qHgxq' WHERE "public"."cadenero_members"."id" = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$EYXXR73txm.qt3wrr4Zz3uRXxT.ZiaU5j6Q9LiGlT.5PF5xvLll9W"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$KFA.ZCIYI6ux6gTjzjS5.eoZbMMp5oWGW5hAaNX9T2hbesim3yrdi"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["name", "Root"], ["owner_id", 458], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xtfmBDEyp45WT6rzNw5r' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 458, "created_at" = '2013-07-18 04:33:09.322706', "updated_at" = '2013-07-18 04:33:09.322706', "auth_token" = 'xtfmBDEyp45WT6rzNw5r' WHERE "public"."cadenero_accounts"."id" = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 372], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["user_id", 458]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RTwArgzVxS66oH8js5hn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 372, "user_id" = 458, "created_at" = '2013-07-18 04:33:09.328105', "updated_at" = '2013-07-18 04:33:09.328105', "auth_token" = 'RTwArgzVxS66oH8js5hn' WHERE "public"."cadenero_members"."id" = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (1.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Qqai14OX.xwI2WTjUwk1heQ/OYsQuK1IzmJ5bQnjRg6e84pgctVOa"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 459], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ogszG6JL6Tm77BpA9mRy' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 459, "created_at" = '2013-07-18 04:34:44.415918', "updated_at" = '2013-07-18 04:34:44.415918', "auth_token" = 'ogszG6JL6Tm77BpA9mRy' WHERE "public"."cadenero_accounts"."id" = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 373], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 459]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vx3vQtrsv6EzocGy6frq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 373, "user_id" = 459, "created_at" = '2013-07-18 04:34:44.515135', "updated_at" = '2013-07-18 04:34:44.515135', "auth_token" = 'Vx3vQtrsv6EzocGy6frq' WHERE "public"."cadenero_members"."id" = 458  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (8.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$WOESZFRCVOMtqkAb2kKkzey815xcIF0vFUbpFzlusiXa3x9TrbNt2"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 373], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 460]] Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MrYFbXSdpcn2ARd1Zwtn' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 373, "user_id" = 460, "created_at" = '2013-07-18 04:34:44.745744', "updated_at" = '2013-07-18 04:34:44.745744', "auth_token" = 'MrYFbXSdpcn2ARd1Zwtn' WHERE "public"."cadenero_members"."id" = 459  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 Completed 201 Created in 151ms (Views: 35.6ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/460" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"460"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 AND "public"."cadenero_users"."id" = 460 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 460], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9z5vwxUELRkypiM6dJGp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 460, "created_at" = '2013-07-18 04:34:44.821453', "updated_at" = '2013-07-18 04:34:44.821453', "auth_token" = '9z5vwxUELRkypiM6dJGp' WHERE "public"."cadenero_accounts"."id" = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 374], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 460]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NCoX3Vw46i9zF66nn2XB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 374, "user_id" = 460, "created_at" = '2013-07-18 04:34:44.827188', "updated_at" = '2013-07-18 04:34:44.827188', "auth_token" = 'NCoX3Vw46i9zF66nn2XB' WHERE "public"."cadenero_members"."id" = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hhCMIlCqzFy4ilUH1gXMGu1lj6Ivsjsg/mDgi5fmrkHDXVJjnECIm"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 374], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 461]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5BrsXWKA4fx9YjjYVTYa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 374, "user_id" = 461, "created_at" = '2013-07-18 04:34:44.979729', "updated_at" = '2013-07-18 04:34:44.979729', "auth_token" = '5BrsXWKA4fx9YjjYVTYa' WHERE "public"."cadenero_members"."id" = 461  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 461 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/461" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"461"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 374 AND "public"."cadenero_users"."id" = 461 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 461 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Started GET "/v1/users/460" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"460"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 AND "public"."cadenero_users"."id" = 460 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 1.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 459 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 459 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 459 Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 2.6ms)  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$EQ8wUZqN5r0KEphkFb2MmuSErqCKbiWEcRcOIMStRAY99xJFXvgqC"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 462], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '22vifgmsijRNs5F77VhX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 462, "created_at" = '2013-07-18 04:34:45.164055', "updated_at" = '2013-07-18 04:34:45.164055', "auth_token" = '22vifgmsijRNs5F77VhX' WHERE "public"."cadenero_accounts"."id" = 375  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 375], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 462]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'StnBV25Y3qNFpsiYeE3c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 375, "user_id" = 462, "created_at" = '2013-07-18 04:34:45.169637', "updated_at" = '2013-07-18 04:34:45.169637', "auth_token" = 'StnBV25Y3qNFpsiYeE3c' WHERE "public"."cadenero_members"."id" = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$RCdY/4PYWx/5Ov2jC4uPI.YP/2Xj.H1TVX.KvPbjSv0kOjfgXpirm"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 375], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 463]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qLzyH1XUWaBEHtFK6Jza' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 375, "user_id" = 463, "created_at" = '2013-07-18 04:34:45.324024', "updated_at" = '2013-07-18 04:34:45.324024', "auth_token" = 'qLzyH1XUWaBEHtFK6Jza' WHERE "public"."cadenero_members"."id" = 463  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 463 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 463 Completed 201 Created in 117ms (Views: 5.9ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/463" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"463"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 375 AND "public"."cadenero_users"."id" = 463 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 463 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 463 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9EZ10rOy6Ksl/TK/d4fMA.lCYLiY/6N3VK/e5WhgToQMIZZi7MBge"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["name", "Test Account"], ["owner_id", 464], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bPYYGNVKU8jDyegxzdr2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 464, "created_at" = '2013-07-18 04:34:45.463581', "updated_at" = '2013-07-18 04:34:45.463581', "auth_token" = 'bPYYGNVKU8jDyegxzdr2' WHERE "public"."cadenero_accounts"."id" = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 376], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 464]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wc8JzBAG679pSF5hyTs5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 376, "user_id" = 464, "created_at" = '2013-07-18 04:34:45.469105', "updated_at" = '2013-07-18 04:34:45.469105', "auth_token" = 'Wc8JzBAG679pSF5hyTs5' WHERE "public"."cadenero_members"."id" = 464  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 376 LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$YpKW8z7EdeJg.5W61d3J8uBYznGAKIGn5qKwhMbGdu7eFjw/EzhJG"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 465], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uyMs6ppyAN25uR5Wn6Cw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 465, "created_at" = '2013-07-18 04:34:45.991296', "updated_at" = '2013-07-18 04:34:45.991296', "auth_token" = 'uyMs6ppyAN25uR5Wn6Cw' WHERE "public"."cadenero_accounts"."id" = 377  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 377], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 465]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q2EQeL9LM6sw3NjF6sjv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 377, "user_id" = 465, "created_at" = '2013-07-18 04:34:45.997099', "updated_at" = '2013-07-18 04:34:45.997099', "auth_token" = 'q2EQeL9LM6sw3NjF6sjv' WHERE "public"."cadenero_members"."id" = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 465 Started GET "/v1?auth_token[]=q2EQeL9LM6sw3NjF6sjv" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["q2EQeL9LM6sw3NjF6sjv"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 377 AND "public"."cadenero_members"."auth_token" IN ('q2EQeL9LM6sw3NjF6sjv') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/v1/users/465" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"465"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/465?auth_token[]=q2EQeL9LM6sw3NjF6sjv" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["q2EQeL9LM6sw3NjF6sjv"], "default"=>:json, "id"=>"465"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 377 AND "public"."cadenero_members"."auth_token" IN ('q2EQeL9LM6sw3NjF6sjv') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 377 AND "public"."cadenero_users"."id" = 465 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 465 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 465 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 465 Completed 200 OK in 15ms (Views: 5.8ms | ActiveRecord: 2.4ms)  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$9.mghSXRiYmdfKt5Kqzmu.qO8lQU3vZ21QU6af5Eg7ghBS7tfLWWi"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 466], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uSJPc3ujR2DFmzPDpxXM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 466, "created_at" = '2013-07-18 04:34:46.200978', "updated_at" = '2013-07-18 04:34:46.200978', "auth_token" = 'uSJPc3ujR2DFmzPDpxXM' WHERE "public"."cadenero_accounts"."id" = 378  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 378], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 466]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TbRcAQRMevNkq4DeCGh7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 378, "user_id" = 466, "created_at" = '2013-07-18 04:34:46.206340', "updated_at" = '2013-07-18 04:34:46.206340', "auth_token" = 'TbRcAQRMevNkq4DeCGh7' WHERE "public"."cadenero_members"."id" = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$lPeYZucMnENzN6IidQJNYeRUZEX4VIGmzavWe/sfkQZS/E7PvrL6W"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 378], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 467]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7asH27BxJtBwqqZc1q2z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 378, "user_id" = 467, "created_at" = '2013-07-18 04:34:46.361050', "updated_at" = '2013-07-18 04:34:46.361050', "auth_token" = '7asH27BxJtBwqqZc1q2z' WHERE "public"."cadenero_members"."id" = 467  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 467 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 467 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 467 Completed 201 Created in 113ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/467" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"467"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 378 AND "public"."cadenero_users"."id" = 467 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 467 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 467 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 467 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 466 Started GET "/v1?auth_token[]=TbRcAQRMevNkq4DeCGh7" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["TbRcAQRMevNkq4DeCGh7"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 378 AND "public"."cadenero_members"."auth_token" IN ('TbRcAQRMevNkq4DeCGh7') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 466 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 466 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 467 Started GET "/v1?auth_token[]=7asH27BxJtBwqqZc1q2z" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["7asH27BxJtBwqqZc1q2z"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 378 AND "public"."cadenero_members"."auth_token" IN ('7asH27BxJtBwqqZc1q2z') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$BhgqNiFRj1ZFzblmCPkR1ew7cN/31eTFbb1C3KCBt4D71IhnH.eQ."], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 468], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qy2xMifR4JUu1CDX6y63' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 468, "created_at" = '2013-07-18 04:34:46.524749', "updated_at" = '2013-07-18 04:34:46.524749', "auth_token" = 'qy2xMifR4JUu1CDX6y63' WHERE "public"."cadenero_accounts"."id" = 379  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 379], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 468]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bQvatAKZ5UqrPsC3MyLt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 379, "user_id" = 468, "created_at" = '2013-07-18 04:34:46.530723', "updated_at" = '2013-07-18 04:34:46.530723', "auth_token" = 'bQvatAKZ5UqrPsC3MyLt' WHERE "public"."cadenero_members"."id" = 468  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3r85RWnNFaG8r7Y.BcpTbuxk9C5w3U4Qw7qHQbfnqA7yBZvg.rTXS"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 469], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qkMJpmmi6S2VcBpQS2cC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 469, "created_at" = '2013-07-18 04:34:46.676419', "updated_at" = '2013-07-18 04:34:46.676419', "auth_token" = 'qkMJpmmi6S2VcBpQS2cC' WHERE "public"."cadenero_accounts"."id" = 380  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 380], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 469]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E1iq5rsmrki4fietWt1o' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 380, "user_id" = 469, "created_at" = '2013-07-18 04:34:46.681620', "updated_at" = '2013-07-18 04:34:46.681620', "auth_token" = 'E1iq5rsmrki4fietWt1o' WHERE "public"."cadenero_members"."id" = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 469 Started GET "/v1?auth_token[]=E1iq5rsmrki4fietWt1o" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["E1iq5rsmrki4fietWt1o"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 379 AND "public"."cadenero_members"."auth_token" IN ('E1iq5rsmrki4fietWt1o') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$mm4BrMMdNVRxPzPKxadAuO8xuDgLTYJvoby7aKOXTmzJFxy2HBzVe"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 470], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jMbqzNgz8VxbCJxDjWPA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 470, "created_at" = '2013-07-18 04:34:46.848863', "updated_at" = '2013-07-18 04:34:46.848863', "auth_token" = 'jMbqzNgz8VxbCJxDjWPA' WHERE "public"."cadenero_accounts"."id" = 381  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 381], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 470]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'H1w859jzYTL3gbPHd4SK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 381, "user_id" = 470, "created_at" = '2013-07-18 04:34:46.854313', "updated_at" = '2013-07-18 04:34:46.854313', "auth_token" = 'H1w859jzYTL3gbPHd4SK' WHERE "public"."cadenero_members"."id" = 470  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 470 Started GET "/v1?auth_token[]=H1w859jzYTL3gbPHd4SK" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["H1w859jzYTL3gbPHd4SK"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 381 AND "public"."cadenero_members"."auth_token" IN ('H1w859jzYTL3gbPHd4SK') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 470 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 470 LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$HefrK76xXacD3Q3VEjizZucGPwLTc/.lPJDPqlfshxHJlwIqf1O3y"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 471], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WUMYN9rySW1bucEXs3iT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 471, "created_at" = '2013-07-18 04:34:47.052936', "updated_at" = '2013-07-18 04:34:47.052936', "auth_token" = 'WUMYN9rySW1bucEXs3iT' WHERE "public"."cadenero_accounts"."id" = 382  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 382], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 471]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NnvsoeXcpwZLpuHwxHrd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 382, "user_id" = 471, "created_at" = '2013-07-18 04:34:47.090744', "updated_at" = '2013-07-18 04:34:47.090744', "auth_token" = 'NnvsoeXcpwZLpuHwxHrd' WHERE "public"."cadenero_members"."id" = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 382 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 471 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 471 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 471 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 471 Completed 201 Created in 108ms (Views: 6.0ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 471 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"471", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 471 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$b3/hcq1qqiizXAHtPbv2D.bqXpd39lYnqFhME/Inq/CiNKaXKVugK"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 382], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 472]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y4hdpAYp21i4FDR2qKDn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 382, "user_id" = 472, "created_at" = '2013-07-18 04:34:47.372473', "updated_at" = '2013-07-18 04:34:47.372473', "auth_token" = 'y4hdpAYp21i4FDR2qKDn' WHERE "public"."cadenero_members"."id" = 472  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 Completed 201 Created in 168ms (Views: 60.4ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/472" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"472"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 382 AND "public"."cadenero_users"."id" = 472 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$WnYasZjyFGWVEswn72T9oOkRYhTT6YbGJWWhjtwg9imCxyZmXuvTO"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 473], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bHojpUqyMJ69nVW8BfwE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 473, "created_at" = '2013-07-18 04:34:47.589735', "updated_at" = '2013-07-18 04:34:47.589735', "auth_token" = 'bHojpUqyMJ69nVW8BfwE' WHERE "public"."cadenero_accounts"."id" = 383  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 383], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 473]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hNqZByTtCs4EpuXz4s9i' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 383, "user_id" = 473, "created_at" = '2013-07-18 04:34:47.595066', "updated_at" = '2013-07-18 04:34:47.595066', "auth_token" = 'hNqZByTtCs4EpuXz4s9i' WHERE "public"."cadenero_members"."id" = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$igBKN8LioRmVOkmusARa5OQt4TWkTpiaF7/Mq.XKbXPckucgM5M3e"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 383], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 474]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j9V8DfeBjmaydp9Vo3ak' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 383, "user_id" = 474, "created_at" = '2013-07-18 04:34:47.754794', "updated_at" = '2013-07-18 04:34:47.754794', "auth_token" = 'j9V8DfeBjmaydp9Vo3ak' WHERE "public"."cadenero_members"."id" = 474  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/474" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"474"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 383 AND "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$2jkuRuqlGu1WLU/8k4dlt.o4HfmGw6JEaEyiiPHg2VDr15nVX1V8u"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 475], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Yw2kzHYcTo4SCCxsQQdi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 475, "created_at" = '2013-07-18 04:34:47.906631', "updated_at" = '2013-07-18 04:34:47.906631', "auth_token" = 'Yw2kzHYcTo4SCCxsQQdi' WHERE "public"."cadenero_accounts"."id" = 384  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 384], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 475]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xJxwjABLcwaqkeJ5jr7K' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 384, "user_id" = 475, "created_at" = '2013-07-18 04:34:47.912181', "updated_at" = '2013-07-18 04:34:47.912181', "auth_token" = 'xJxwjABLcwaqkeJ5jr7K' WHERE "public"."cadenero_members"."id" = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 384 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 475 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 475 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 475 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 475 Completed 201 Created in 108ms (Views: 5.2ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 475 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"475", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 475 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$iHNyWFH2bnjXJ4gdhwnNHegGpij0wkGEcYFa1uEu4rQQY1Dr5TmiC"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 476], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xxqfU8AUD1HV7FBCqc6T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 476, "created_at" = '2013-07-18 04:34:48.190684', "updated_at" = '2013-07-18 04:34:48.190684', "auth_token" = 'xxqfU8AUD1HV7FBCqc6T' WHERE "public"."cadenero_accounts"."id" = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 385], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 476]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ex1qScqSktNHWBmgZssj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 385, "user_id" = 476, "created_at" = '2013-07-18 04:34:48.196361', "updated_at" = '2013-07-18 04:34:48.196361', "auth_token" = 'Ex1qScqSktNHWBmgZssj' WHERE "public"."cadenero_members"."id" = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 385 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 476 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 476 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 476 Completed 201 Created in 107ms (Views: 5.3ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 476 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$be/gVs6jGQ05gkYQiXtkvusS.o3b8rmoUHSfg98jOm6BTXsFRfVDq"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 477], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'srW91bsgkpyV2hWTXLUy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 477, "created_at" = '2013-07-18 04:34:48.481310', "updated_at" = '2013-07-18 04:34:48.481310', "auth_token" = 'srW91bsgkpyV2hWTXLUy' WHERE "public"."cadenero_accounts"."id" = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 386], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 477]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dz4nCyh2xbDCGfC2xEGk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 386, "user_id" = 477, "created_at" = '2013-07-18 04:34:48.486786', "updated_at" = '2013-07-18 04:34:48.486786', "auth_token" = 'dz4nCyh2xbDCGfC2xEGk' WHERE "public"."cadenero_members"."id" = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Xoltt6cDbK62BP/qJnAiqeAqr0h3LzeHpSGff/uBD6ypKDAUD0JZy"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 478], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WoNspzy7WTJV2oV8syqh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 478, "created_at" = '2013-07-18 04:34:48.642393', "updated_at" = '2013-07-18 04:34:48.642393', "auth_token" = 'WoNspzy7WTJV2oV8syqh' WHERE "public"."cadenero_accounts"."id" = 387  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 387], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 478]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B2ngK4289GfvMyLmqW3F' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 387, "user_id" = 478, "created_at" = '2013-07-18 04:34:48.648092', "updated_at" = '2013-07-18 04:34:48.648092', "auth_token" = 'B2ngK4289GfvMyLmqW3F' WHERE "public"."cadenero_members"."id" = 478  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test14"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 387 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 37ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$NJ4.ba0tcHPp9vhaJ/otAevQBKQookuwPacvPsCBcEsLo/wyGU38W"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 479], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qrH2bWiLqYCVkrYqjxE3' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 479, "created_at" = '2013-07-18 04:34:48.848564', "updated_at" = '2013-07-18 04:34:48.848564', "auth_token" = 'qrH2bWiLqYCVkrYqjxE3' WHERE "public"."cadenero_accounts"."id" = 388  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 388], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 479]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FVsPYVA56eFJQdKp53xj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 388, "user_id" = 479, "created_at" = '2013-07-18 04:34:48.854632', "updated_at" = '2013-07-18 04:34:48.854632', "auth_token" = 'FVsPYVA56eFJQdKp53xj' WHERE "public"."cadenero_members"."id" = 479  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$/JTLoSp76YwFs04.oeNHW.ggPdrfKIDbcZ.LzDNcbMc4./GOZR9.a"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 480], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wzJpKn2mUL7UsQd2HZav' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 480, "created_at" = '2013-07-18 04:34:49.003367', "updated_at" = '2013-07-18 04:34:49.003367', "auth_token" = 'wzJpKn2mUL7UsQd2HZav' WHERE "public"."cadenero_accounts"."id" = 389  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 389], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["user_id", 480]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hgk5G4yztpiq1tfrA7Mm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 389, "user_id" = 480, "created_at" = '2013-07-18 04:34:49.010800', "updated_at" = '2013-07-18 04:34:49.010800', "auth_token" = 'Hgk5G4yztpiq1tfrA7Mm' WHERE "public"."cadenero_members"."id" = 480  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user15@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 388 AND "public"."cadenero_users"."email" = 'user15@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$6sks9xfczW2B9kmaEX8kbOVMNkYrX75OubAJD81qZEca3FraBrmce"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 481], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'G2sYy3qWsG7ejn3eEviy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 481, "created_at" = '2013-07-18 04:34:49.159204', "updated_at" = '2013-07-18 04:34:49.159204', "auth_token" = 'G2sYy3qWsG7ejn3eEviy' WHERE "public"."cadenero_accounts"."id" = 390  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 390], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["user_id", 481]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nSWCwmQCg1h4vWjy5jor' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 390, "user_id" = 481, "created_at" = '2013-07-18 04:34:49.165801', "updated_at" = '2013-07-18 04:34:49.165801', "auth_token" = 'nSWCwmQCg1h4vWjy5jor' WHERE "public"."cadenero_members"."id" = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test17"  (72.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 390 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xXdBao6triZXFI62WVblNeoXiFM8pbqkP1zlUMT4ZDMxpK7WFwRTq"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["name", "Testy"], ["owner_id", 482], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xkZwZq3vQS5JqYiqMvra' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 482, "created_at" = '2013-07-18 04:34:49.945208', "updated_at" = '2013-07-18 04:34:49.945208', "auth_token" = 'xkZwZq3vQS5JqYiqMvra' WHERE "public"."cadenero_accounts"."id" = 391  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 105ms (Views: 0.3ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:34:50 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$zrfOfdK9PjYOlFdz3DOAfODvmgSjabRX0jaTGz/pH9v1T7jIRjrp6"], ["updated_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["name", "Testy"], ["owner_id", 483], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xDcRNASBwXQxAq9yzCZR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 483, "created_at" = '2013-07-18 04:34:50.167583', "updated_at" = '2013-07-18 04:34:50.167583', "auth_token" = 'xDcRNASBwXQxAq9yzCZR' WHERE "public"."cadenero_accounts"."id" = 392  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 392], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["user_id", 483]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gJXeHYB1zm6VeDishRyZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 392, "user_id" = 483, "created_at" = '2013-07-18 04:34:50.173150', "updated_at" = '2013-07-18 04:34:50.173150', "auth_token" = 'gJXeHYB1zm6VeDishRyZ' WHERE "public"."cadenero_members"."id" = 482  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 392) LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 483 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 392 Completed 201 Created in 256ms (Views: 101.0ms | ActiveRecord: 35.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (7.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$IRkbiXzURhzq2FfmmC8djuo.mmT8WnFllKlU0ipjhXhOBrLXF1c5G"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 484], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CppCSNBPW44U5hNw8y14' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 484, "created_at" = '2013-07-18 04:34:58.558066', "updated_at" = '2013-07-18 04:34:58.558066', "auth_token" = 'CppCSNBPW44U5hNw8y14' WHERE "public"."cadenero_accounts"."id" = 393  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 393], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["user_id", 484]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MCozAp43bwyVivWZrm6q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 393, "user_id" = 484, "created_at" = '2013-07-18 04:34:58.564927', "updated_at" = '2013-07-18 04:34:58.564927', "auth_token" = 'MCozAp43bwyVivWZrm6q' WHERE "public"."cadenero_members"."id" = 483  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$h.ucscs67lw6db2p3ycSqegyyLduWX0lmXwRuTnKagJmuQWUieUFi"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$jFZNoXY5gH07acyqBsceX.Q1pmMJFFvOErn98pqq6adL00ODasLcC"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["name", "Root"], ["owner_id", 486], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zwafjyNhzoq9FCySdaWV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 486, "created_at" = '2013-07-18 04:34:58.773783', "updated_at" = '2013-07-18 04:34:58.773783', "auth_token" = 'zwafjyNhzoq9FCySdaWV' WHERE "public"."cadenero_accounts"."id" = 394  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 394], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["user_id", 486]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4CdtbzyTxfauNYMyuvE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 394, "user_id" = 486, "created_at" = '2013-07-18 04:34:58.779141', "updated_at" = '2013-07-18 04:34:58.779141', "auth_token" = 'q4CdtbzyTxfauNYMyuvE' WHERE "public"."cadenero_members"."id" = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "www"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N4QccQqqscqSsz6faFUy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:34:58.967127', "updated_at" = '2013-07-18 04:34:58.967127', "auth_token" = 'N4QccQqqscqSsz6faFUy' WHERE "public"."cadenero_members"."id" = 485  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 112ms (Views: 97.9ms | ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:37:41 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$c2uo8TteZrvonENNxuHOS.kLOJqXhsL.dGH7sM/TIEzNQyPU.idr6"], ["updated_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00]] SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["name", "Testy"], ["owner_id", 487], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6xPkBnmp9saPqgqNwuug' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 487, "created_at" = '2013-07-18 04:37:41.904559', "updated_at" = '2013-07-18 04:37:41.904559', "auth_token" = '6xPkBnmp9saPqgqNwuug' WHERE "public"."cadenero_accounts"."id" = 395  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 395], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["user_id", 487]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xt5CY9jD9isQzQW2sqz8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 395, "user_id" = 487, "created_at" = '2013-07-18 04:37:41.974659', "updated_at" = '2013-07-18 04:37:41.974659', "auth_token" = 'Xt5CY9jD9isQzQW2sqz8' WHERE "public"."cadenero_members"."id" = 486  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 395) LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 487 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 395 Completed 201 Created in 387ms (Views: 101.3ms | ActiveRecord: 47.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Ox30evsZqarARrvcNy0E5.KtqpQqy66Msx4oQGF3..A/O2I7K/yVe"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["name", "Testy"], ["owner_id", 488], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1pNNacC6p7xeH7519KTM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 488, "created_at" = '2013-07-18 04:37:42.263947', "updated_at" = '2013-07-18 04:37:42.263947', "auth_token" = '1pNNacC6p7xeH7519KTM' WHERE "public"."cadenero_accounts"."id" = 396  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 110ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$aSQ2wjpEe8r.cGyBQ4dBu.B5AWYP0SqBRVB9MAtnMwP/qV6rrI99C"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 489], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oiNsnd7sWFmUh9cE8GHa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 489, "created_at" = '2013-07-18 04:37:42.493455', "updated_at" = '2013-07-18 04:37:42.493455', "auth_token" = 'oiNsnd7sWFmUh9cE8GHa' WHERE "public"."cadenero_accounts"."id" = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 397], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["user_id", 489]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QQL1X2g8b7AiVqx3EF77' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 397, "user_id" = 489, "created_at" = '2013-07-18 04:37:42.498904', "updated_at" = '2013-07-18 04:37:42.498904', "auth_token" = 'QQL1X2g8b7AiVqx3EF77' WHERE "public"."cadenero_members"."id" = 487  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PTzjgtWSTUM/rSHNpHpVfeNLTSfADYG0vHr6kNPfvARd31QdTx9cK"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 397], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["user_id", 490]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SyAF1LV6ywVqyxNE3XPg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 397, "user_id" = 490, "created_at" = '2013-07-18 04:37:42.653698', "updated_at" = '2013-07-18 04:37:42.653698', "auth_token" = 'SyAF1LV6ywVqyxNE3XPg' WHERE "public"."cadenero_members"."id" = 488  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 490 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 490 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 490 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 490 Completed 201 Created in 185ms (Views: 72.6ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/490" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"490"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 397 AND "public"."cadenero_users"."id" = 490 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 490 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 490 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 490 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 490 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 1.8ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$XfCrXHKPFms08sze8zQS3.y8/jBHu9IwuVv5zM4.QAtg0tT3A3aP."], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 491], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5czEwBzttoxrCyfEkp71' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 491, "created_at" = '2013-07-18 04:37:42.863725', "updated_at" = '2013-07-18 04:37:42.863725', "auth_token" = '5czEwBzttoxrCyfEkp71' WHERE "public"."cadenero_accounts"."id" = 398  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 398], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["user_id", 491]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HK2wfW1FVu4kEsEvhQkA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 398, "user_id" = 491, "created_at" = '2013-07-18 04:37:42.869224', "updated_at" = '2013-07-18 04:37:42.869224', "auth_token" = 'HK2wfW1FVu4kEsEvhQkA' WHERE "public"."cadenero_members"."id" = 489  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mDS0J6Yh99HsEcm4aTvcc.b.Azzylec0fxQEqlsOi/0hfpF1aqBV6"], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 398], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 492]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hcLfoDzLYFX3sKd5Zz3M' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 398, "user_id" = 492, "created_at" = '2013-07-18 04:37:43.022171', "updated_at" = '2013-07-18 04:37:43.022171', "auth_token" = 'hcLfoDzLYFX3sKd5Zz3M' WHERE "public"."cadenero_members"."id" = 490  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 Completed 201 Created in 116ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/492" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"492"} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 398 AND "public"."cadenero_users"."id" = 492 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 2.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 492], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1Ymtvuuw1JznmpSHQQCe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 492, "created_at" = '2013-07-18 04:37:43.054644', "updated_at" = '2013-07-18 04:37:43.054644', "auth_token" = '1Ymtvuuw1JznmpSHQQCe' WHERE "public"."cadenero_accounts"."id" = 399  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 399], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 492]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ppUyFDKPxdEvAhLsnXVt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 399, "user_id" = 492, "created_at" = '2013-07-18 04:37:43.060346', "updated_at" = '2013-07-18 04:37:43.060346', "auth_token" = 'ppUyFDKPxdEvAhLsnXVt' WHERE "public"."cadenero_members"."id" = 491  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vzxj6pif0gBrhYG2AfgQTuHoImS4QVawciDc.AgK3dRyJ3ENKcA/6"], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 399], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 493]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YdmuUnC3fZqpzMZVx9fB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 399, "user_id" = 493, "created_at" = '2013-07-18 04:37:43.208919', "updated_at" = '2013-07-18 04:37:43.208919', "auth_token" = 'YdmuUnC3fZqpzMZVx9fB' WHERE "public"."cadenero_members"."id" = 492  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 493 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 493 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 493 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 493 Completed 201 Created in 111ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/493" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"493"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 399 AND "public"."cadenero_users"."id" = 493 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 493 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 493 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 493 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 493 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 2.0ms) Started GET "/v1/users/492" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"492"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 398 AND "public"."cadenero_users"."id" = 492 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 2.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 398 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 491 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 491 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 491 Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 2.7ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kj9hpdta8qpsUg7nf2Pq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:37:43.388195', "updated_at" = '2013-07-18 04:37:43.388195', "auth_token" = 'Kj9hpdta8qpsUg7nf2Pq' WHERE "public"."cadenero_members"."id" = 493  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (4.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Y/BuTHwge2agDIu21oxs9uKZeXLO2MgbZbnZsOrwklYE.dJ85usWK"], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 494], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Wq1nCnW6aBfcsLZdzquq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 494, "created_at" = '2013-07-18 04:37:46.829498', "updated_at" = '2013-07-18 04:37:46.829498', "auth_token" = 'Wq1nCnW6aBfcsLZdzquq' WHERE "public"."cadenero_accounts"."id" = 400  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 400], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["user_id", 494]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NLss5uca5MjXNdPyi3vH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 400, "user_id" = 494, "created_at" = '2013-07-18 04:37:46.835714', "updated_at" = '2013-07-18 04:37:46.835714', "auth_token" = 'NLss5uca5MjXNdPyi3vH' WHERE "public"."cadenero_members"."id" = 494  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$GH20oKYKYqBfUgsliU/QHeiq2HeWmWuai6CMJyrdnkdqvTspBCefq"], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Yy3Edzs1yLsTI0zxlJFJte6Z7BLBPmjXnBx8TP16yhjgC95p2T8m2"], ["updated_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["name", "Root"], ["owner_id", 496], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DA9ExdzGxWEP149xZDM8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 496, "created_at" = '2013-07-18 04:37:47.037745', "updated_at" = '2013-07-18 04:37:47.037745', "auth_token" = 'DA9ExdzGxWEP149xZDM8' WHERE "public"."cadenero_accounts"."id" = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 401], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["user_id", 496]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'og3PiGQyh757UpyMM4BZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 401, "user_id" = 496, "created_at" = '2013-07-18 04:37:47.042946', "updated_at" = '2013-07-18 04:37:47.042946', "auth_token" = 'og3PiGQyh757UpyMM4BZ' WHERE "public"."cadenero_members"."id" = 495  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$cEAMHhBOjWTekjLxZgiFYuUIrHUXksVddc3T5UtL7RZRWgNJG7T/K"], ["updated_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["name", "Test Account"], ["owner_id", 497], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QdfiXVBUBUv7sWgGJshm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 497, "created_at" = '2013-07-18 04:37:52.080124', "updated_at" = '2013-07-18 04:37:52.080124', "auth_token" = 'QdfiXVBUBUv7sWgGJshm' WHERE "public"."cadenero_accounts"."id" = 402  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 402], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["user_id", 497]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xztvwjjBXTfdaTzseaA9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 402, "user_id" = 497, "created_at" = '2013-07-18 04:37:52.086152', "updated_at" = '2013-07-18 04:37:52.086152', "auth_token" = 'xztvwjjBXTfdaTzseaA9' WHERE "public"."cadenero_members"."id" = 496  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 402 LIMIT 1  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$z5ZthlTOtl5XK/4QJjMu9OmDpCwXv2/tzGt6LXg2SXeNoSJKhxlMG"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 498], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'U6a3Xprszu7XRKxgp2fS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 498, "created_at" = '2013-07-18 04:37:53.480490', "updated_at" = '2013-07-18 04:37:53.480490', "auth_token" = 'U6a3Xprszu7XRKxgp2fS' WHERE "public"."cadenero_accounts"."id" = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 403], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["user_id", 498]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yoGYPPRJA5Csfzn8qAs6' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 403, "user_id" = 498, "created_at" = '2013-07-18 04:37:53.486118', "updated_at" = '2013-07-18 04:37:53.486118', "auth_token" = 'yoGYPPRJA5Csfzn8qAs6' WHERE "public"."cadenero_members"."id" = 497  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test5"  (11.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 403 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 498 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 498 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 498 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 498 Completed 201 Created in 139ms (Views: 5.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 498 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 498 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.3ms) ROLLBACK  (1.6ms) BEGIN  (3.6ms) COMMIT  (5.9ms) BEGIN  (7.9ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$sM5tbpCFlsxpPGJGdLuib.tnrt7n5Ab1NyR5ElTjNsMJQ.DGuuAmW"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 499], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'W1b8jKhpGNEUMqPdiW1s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 499, "created_at" = '2013-07-18 04:37:53.974612', "updated_at" = '2013-07-18 04:37:53.974612', "auth_token" = 'W1b8jKhpGNEUMqPdiW1s' WHERE "public"."cadenero_accounts"."id" = 404  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 404], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["user_id", 499]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'snD5L2xZ59sLQHmU6Zog' LIMIT 1  (3.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 404, "user_id" = 499, "created_at" = '2013-07-18 04:37:53.980128', "updated_at" = '2013-07-18 04:37:53.980128', "auth_token" = 'snD5L2xZ59sLQHmU6Zog' WHERE "public"."cadenero_members"."id" = 498  (6.7ms) RELEASE SAVEPOINT active_record_1  (5.5ms) CREATE SCHEMA "test6"  (32.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (9.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 404 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 499 LIMIT 1 Cadenero::Member Load (9.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 499 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 499 Completed 201 Created in 128ms (Views: 6.3ms | ActiveRecord: 14.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"499", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 499 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$u4VurHuORrFM9pz4xQ3LiuhozbQf9dBqw6J89secObj5xTch42cra"], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 404], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["user_id", 500]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vcroENKEnKx4F9ga4ksq' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 404, "user_id" = 500, "created_at" = '2013-07-18 04:37:54.496534', "updated_at" = '2013-07-18 04:37:54.496534', "auth_token" = 'vcroENKEnKx4F9ga4ksq' WHERE "public"."cadenero_members"."id" = 499  (7.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 Completed 201 Created in 204ms (Views: 6.0ms | ActiveRecord: 14.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/500" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"500"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 404 AND "public"."cadenero_users"."id" = 500 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 Completed 201 Created in 7ms (Views: 5.0ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$VumKYhUYjeAzwGppXtvF..cOCb.a1y6twqEJizbh.dHqxrgmeFsyu"], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 501], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00]] Cadenero::V1::Account Load (7.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7pmkf1CcZQerhicD6zzs' LIMIT 1  (1.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 501, "created_at" = '2013-07-18 04:37:54.724839', "updated_at" = '2013-07-18 04:37:54.724839', "auth_token" = '7pmkf1CcZQerhicD6zzs' WHERE "public"."cadenero_accounts"."id" = 405  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 405], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["user_id", 501]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VacXbzdJep8tkyqQyqph' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 405, "user_id" = 501, "created_at" = '2013-07-18 04:37:54.767810', "updated_at" = '2013-07-18 04:37:54.767810', "auth_token" = 'VacXbzdJep8tkyqQyqph' WHERE "public"."cadenero_members"."id" = 500  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (12.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (7.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.2ms) SELECT version FROM "schema_migrations"  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (10.1ms) SAVEPOINT active_record_1 SQL (17.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$QaXQDG26osMMGrOOmnGxr.ZFQKd1Kb58IEDAeXqlARW2eigVdtP2W"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 405], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["user_id", 502]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M3deBifcSp6opiNAhM31' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 405, "user_id" = 502, "created_at" = '2013-07-18 04:37:55.096389', "updated_at" = '2013-07-18 04:37:55.096389', "auth_token" = 'M3deBifcSp6opiNAhM31' WHERE "public"."cadenero_members"."id" = 501  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 502 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 502 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 502 Completed 201 Created in 193ms (Views: 5.8ms | ActiveRecord: 39.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/502" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"502"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 405 AND "public"."cadenero_users"."id" = 502 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 502 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 502 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 502 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 502 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 502 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 502 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 3.2ms)  (16.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$L9dsecCw3THI6pGdUIq2nuNxPkA7uSwJmWN9hzIcnObCKceXWYDRO"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 503], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nSpmvqkkUyVbaUpULN9q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 503, "created_at" = '2013-07-18 04:37:55.429288', "updated_at" = '2013-07-18 04:37:55.429288', "auth_token" = 'nSpmvqkkUyVbaUpULN9q' WHERE "public"."cadenero_accounts"."id" = 406  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 406], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["user_id", 503]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fSBsV6EhUpK2MoKCqPXA' LIMIT 1  (11.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 406, "user_id" = 503, "created_at" = '2013-07-18 04:37:55.435643', "updated_at" = '2013-07-18 04:37:55.435643', "auth_token" = 'fSBsV6EhUpK2MoKCqPXA' WHERE "public"."cadenero_members"."id" = 502  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (21.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (6.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (10.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 406 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (12.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 503 LIMIT 1 Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 503 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 503 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 503 Completed 201 Created in 131ms (Views: 5.9ms | ActiveRecord: 25.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 503 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"503", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 503 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (11.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$gGZmCFnhpklYQn8x7LAkV.CpSzN5VT8btiFoDe7.D.lrENJ1MrM9i"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 504], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xN4cxQ7yDwzq4RFF53kb' LIMIT 1  (1.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 504, "created_at" = '2013-07-18 04:37:55.878654', "updated_at" = '2013-07-18 04:37:55.878654', "auth_token" = 'xN4cxQ7yDwzq4RFF53kb' WHERE "public"."cadenero_accounts"."id" = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 407], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["user_id", 504]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'icZBoVeEAyPXpvDthFdg' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 407, "user_id" = 504, "created_at" = '2013-07-18 04:37:55.886234', "updated_at" = '2013-07-18 04:37:55.886234', "auth_token" = 'icZBoVeEAyPXpvDthFdg' WHERE "public"."cadenero_members"."id" = 503  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 407 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (1.9ms) COMMIT  (6.4ms) BEGIN  (4.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$AKkmWqBO5nV9Z61gEoSAfu94fnNbQAO9MXDQ2d4XeKwVdfZaXepEq"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 505], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Qyp1zxgV2yxzQxMt4VPc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 505, "created_at" = '2013-07-18 04:37:56.197213', "updated_at" = '2013-07-18 04:37:56.197213', "auth_token" = 'Qyp1zxgV2yxzQxMt4VPc' WHERE "public"."cadenero_accounts"."id" = 408  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 408], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 505]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mbjh3ttzvi1FTquVz7zH' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 408, "user_id" = 505, "created_at" = '2013-07-18 04:37:56.202545', "updated_at" = '2013-07-18 04:37:56.202545', "auth_token" = 'mbjh3ttzvi1FTquVz7zH' WHERE "public"."cadenero_members"."id" = 504  (9.4ms) RELEASE SAVEPOINT active_record_1  (1.5ms) CREATE SCHEMA "test10"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (9.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (2.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (7.9ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$EIbzqKlz86.kimiY5iuC1.x5dyBlDNCXUbytpDj6oPLbVrrp61yM2"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 506], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qmw79ERqnm6GBWJe9Xwr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 506, "created_at" = '2013-07-18 04:37:56.455812', "updated_at" = '2013-07-18 04:37:56.455812', "auth_token" = 'qmw79ERqnm6GBWJe9Xwr' WHERE "public"."cadenero_accounts"."id" = 409  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 409], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 506]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wc4dhAxwCbgadTAFseDw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 409, "user_id" = 506, "created_at" = '2013-07-18 04:37:56.462881', "updated_at" = '2013-07-18 04:37:56.462881', "auth_token" = 'Wc4dhAxwCbgadTAFseDw' WHERE "public"."cadenero_members"."id" = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (14.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 409 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (1.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$xRSulcKOFOWVtVRxYYnkDeUq6S87..dpbn0vIKovZR9ryMg29zUFu"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 507], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LppCjrqmMsZEkJUqzCQq' LIMIT 1  (6.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 507, "created_at" = '2013-07-18 04:37:56.706741', "updated_at" = '2013-07-18 04:37:56.706741', "auth_token" = 'LppCjrqmMsZEkJUqzCQq' WHERE "public"."cadenero_accounts"."id" = 410  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 410], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 507]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yUK81qYZ7h93xdZjhTDU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 410, "user_id" = 507, "created_at" = '2013-07-18 04:37:56.718878', "updated_at" = '2013-07-18 04:37:56.718878', "auth_token" = 'yUK81qYZ7h93xdZjhTDU' WHERE "public"."cadenero_members"."id" = 506  (0.1ms) RELEASE SAVEPOINT active_record_1  (11.6ms) CREATE SCHEMA "test12"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$xtHQQT77Uro8chlqNdV/VuDM3aAgfYfV1/VTRAXdp3KDFAFP5Tcni"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 508], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2gq3VomyqoewMsmiPAbJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 508, "created_at" = '2013-07-18 04:37:56.929085', "updated_at" = '2013-07-18 04:37:56.929085', "auth_token" = '2gq3VomyqoewMsmiPAbJ' WHERE "public"."cadenero_accounts"."id" = 411  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 411], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 508]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QvvfPY74K5yk9AVxsgYX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 411, "user_id" = 508, "created_at" = '2013-07-18 04:37:56.936076', "updated_at" = '2013-07-18 04:37:56.936076', "auth_token" = 'QvvfPY74K5yk9AVxsgYX' WHERE "public"."cadenero_members"."id" = 507  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user13@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 410 AND "public"."cadenero_users"."email" = 'user13@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 8.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$H2U3Hj7ZALhm254QzLTfm.pzulR3ndJBi3jw1bBpY8vYww9bHzgze"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 509], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DTCs5ndfqq3KJQ3sqvex' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 509, "created_at" = '2013-07-18 04:37:57.125907', "updated_at" = '2013-07-18 04:37:57.125907', "auth_token" = 'DTCs5ndfqq3KJQ3sqvex' WHERE "public"."cadenero_accounts"."id" = 412  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 412], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 509]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bUK5XQPMdgdh2fqaT2mk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 412, "user_id" = 509, "created_at" = '2013-07-18 04:37:57.131342', "updated_at" = '2013-07-18 04:37:57.131342', "auth_token" = 'bUK5XQPMdgdh2fqaT2mk' WHERE "public"."cadenero_members"."id" = 508  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 509 Started GET "/v1?auth_token[]=bUK5XQPMdgdh2fqaT2mk" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["bUK5XQPMdgdh2fqaT2mk"], "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 412 AND "public"."cadenero_members"."auth_token" IN ('bUK5XQPMdgdh2fqaT2mk') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 509 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 509 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms)  (9.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$N2tv48KdqjWaGuW90gjMFeFo/l6jHmyysYC04X1Lduyk9JUbwgSWy"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 510], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] Cadenero::V1::Account Load (9.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NpymeWsS2ZaN1z6LFsRF' LIMIT 1  (2.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 510, "created_at" = '2013-07-18 04:37:57.400886', "updated_at" = '2013-07-18 04:37:57.400886', "auth_token" = 'NpymeWsS2ZaN1z6LFsRF' WHERE "public"."cadenero_accounts"."id" = 413  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 413], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 510]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CfUHdt2FTCz455A25sRP' LIMIT 1  (1.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 413, "user_id" = 510, "created_at" = '2013-07-18 04:37:57.419606', "updated_at" = '2013-07-18 04:37:57.419606', "auth_token" = 'CfUHdt2FTCz455A25sRP' WHERE "public"."cadenero_members"."id" = 509  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (15.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (5.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.2ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (4.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 Started GET "/v1?auth_token[]=CfUHdt2FTCz455A25sRP" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["CfUHdt2FTCz455A25sRP"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_members"."auth_token" IN ('CfUHdt2FTCz455A25sRP') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1/users/510" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"510"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/510?auth_token[]=CfUHdt2FTCz455A25sRP" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["CfUHdt2FTCz455A25sRP"], "default"=>:json, "id"=>"510"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_members"."auth_token" IN ('CfUHdt2FTCz455A25sRP') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_users"."id" = 510 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 510 Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 510 Completed 200 OK in 26ms (Views: 6.9ms | ActiveRecord: 11.5ms)  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$33kJ9h5Ko3HPujpvgGRLkeYTj.pOawOB2EwErHvVIZXmemCIqiJpa"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 511], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9QfZAPTZtxoxagDa5rei' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 511, "created_at" = '2013-07-18 04:37:57.732450', "updated_at" = '2013-07-18 04:37:57.732450', "auth_token" = '9QfZAPTZtxoxagDa5rei' WHERE "public"."cadenero_accounts"."id" = 414  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 414], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 511]] Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jQujzNynim6sVFjQpJxU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 414, "user_id" = 511, "created_at" = '2013-07-18 04:37:57.737937', "updated_at" = '2013-07-18 04:37:57.737937', "auth_token" = 'jQujzNynim6sVFjQpJxU' WHERE "public"."cadenero_members"."id" = 510  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (11.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (8.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$KuWHqQUGG46h7H6NWRRSdeoXJm8LQWPkWtkt2ruAKtT5QpE76Jhpq"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 414], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 512]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ExAZrCXqczMjJFtGw3t3' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 414, "user_id" = 512, "created_at" = '2013-07-18 04:37:57.956492', "updated_at" = '2013-07-18 04:37:57.956492', "auth_token" = 'ExAZrCXqczMjJFtGw3t3' WHERE "public"."cadenero_members"."id" = 511  (0.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 512 Completed 201 Created in 183ms (Views: 6.0ms | ActiveRecord: 6.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/512" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"512"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 414 AND "public"."cadenero_users"."id" = 512 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 512 Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 511 Started GET "/v1?auth_token[]=jQujzNynim6sVFjQpJxU" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["jQujzNynim6sVFjQpJxU"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 414 AND "public"."cadenero_members"."auth_token" IN ('jQujzNynim6sVFjQpJxU') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 511 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 511 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.7ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 Started GET "/v1?auth_token[]=ExAZrCXqczMjJFtGw3t3" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ExAZrCXqczMjJFtGw3t3"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 414 AND "public"."cadenero_members"."auth_token" IN ('ExAZrCXqczMjJFtGw3t3') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$E/wvSK3dzOxIaUREfMViBeRkpkVMV5kAmF8I8pjoTsf2.XLHmU.YK"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 513], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bHWRkbtTjVnfX655rahk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 513, "created_at" = '2013-07-18 04:37:58.256426', "updated_at" = '2013-07-18 04:37:58.256426', "auth_token" = 'bHWRkbtTjVnfX655rahk' WHERE "public"."cadenero_accounts"."id" = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 415], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["user_id", 513]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2qzftLqFzWDwjJWsqxRF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 415, "user_id" = 513, "created_at" = '2013-07-18 04:37:58.263676', "updated_at" = '2013-07-18 04:37:58.263676', "auth_token" = '2qzftLqFzWDwjJWsqxRF' WHERE "public"."cadenero_members"."id" = 512  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test17"  (16.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (7.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (7.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (8.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$HbUfpHoOYNkGdbd7ATbwkuvrv5w1ayo0qa/Pr/0zK3qgzDYUVkgRm"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 514], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'gfUNZn6gGNxTLSf3CKT7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 514, "created_at" = '2013-07-18 04:37:58.564772', "updated_at" = '2013-07-18 04:37:58.564772', "auth_token" = 'gfUNZn6gGNxTLSf3CKT7' WHERE "public"."cadenero_accounts"."id" = 416  (11.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 416], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["user_id", 514]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kurt1puyQARmAwopm8es' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 416, "user_id" = 514, "created_at" = '2013-07-18 04:37:58.586091', "updated_at" = '2013-07-18 04:37:58.586091', "auth_token" = 'Kurt1puyQARmAwopm8es' WHERE "public"."cadenero_members"."id" = 513  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test18"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 514 Started GET "/v1?auth_token[]=Kurt1puyQARmAwopm8es" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Kurt1puyQARmAwopm8es"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 415 AND "public"."cadenero_members"."auth_token" IN ('Kurt1puyQARmAwopm8es') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)  (10.4ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$f3HIDQQvAf3UMNiUAvcm2eIBdROmpokRb4DXMlrAXXchSKlKTNLM."], ["updated_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["name", "Test Account"], ["owner_id", 515], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'B9uzRp3VPpQVjPQ8GK8D' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 515, "created_at" = '2013-07-18 04:39:17.544675', "updated_at" = '2013-07-18 04:39:17.544675', "auth_token" = 'B9uzRp3VPpQVjPQ8GK8D' WHERE "public"."cadenero_accounts"."id" = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 417], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["user_id", 515]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yB4UzwKn7VVsrHjprGkw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 417, "user_id" = 515, "created_at" = '2013-07-18 04:39:17.575017', "updated_at" = '2013-07-18 04:39:17.575017', "auth_token" = 'yB4UzwKn7VVsrHjprGkw' WHERE "public"."cadenero_members"."id" = 514  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 417 LIMIT 1  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:39:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$FfcowZEM4S7hpxTrrHfTW.Sxmp3lJvogjBwTtqBkv0MVUc.bKVh0W"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["name", "Testy"], ["owner_id", 516], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Yh75PsJKp3SwcxwoZCNa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 516, "created_at" = '2013-07-18 04:39:18.393706', "updated_at" = '2013-07-18 04:39:18.393706', "auth_token" = 'Yh75PsJKp3SwcxwoZCNa' WHERE "public"."cadenero_accounts"."id" = 418  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 418], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["user_id", 516]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sy2xYpsVnC18bzfFMuen' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 418, "user_id" = 516, "created_at" = '2013-07-18 04:39:18.399341', "updated_at" = '2013-07-18 04:39:18.399341', "auth_token" = 'sy2xYpsVnC18bzfFMuen' WHERE "public"."cadenero_members"."id" = 515  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (8.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 418) LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 516 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 418 Completed 201 Created in 292ms (Views: 99.7ms | ActiveRecord: 55.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$WnSenxrbUlAv4RwSYnYqQ.bhCmypLnPX8QhN8MuOpCQKJoDHkpz4i"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["name", "Testy"], ["owner_id", 517], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9ZNaHYnncDeKykDBApHF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 517, "created_at" = '2013-07-18 04:39:18.694402', "updated_at" = '2013-07-18 04:39:18.694402', "auth_token" = '9ZNaHYnncDeKykDBApHF' WHERE "public"."cadenero_accounts"."id" = 419  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:39:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 102ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 4ms (Views: 3.0ms | ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E2wBKqmvBiWaCZXocvRB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:39:18.989474', "updated_at" = '2013-07-18 04:39:18.989474', "auth_token" = 'E2wBKqmvBiWaCZXocvRB' WHERE "public"."cadenero_members"."id" = 516  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$xemmg928KNbgA2T5VqN2Mu6zC.OdLnJcpCk/1ja/EG.Xoo51LwNU."], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 518], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'krriUVRwJJLXcZpQkzNg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 518, "created_at" = '2013-07-18 04:39:19.106254', "updated_at" = '2013-07-18 04:39:19.106254', "auth_token" = 'krriUVRwJJLXcZpQkzNg' WHERE "public"."cadenero_accounts"."id" = 420  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 420], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 518]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b9ExGyqB5PXfHzwGi2Gd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 420, "user_id" = 518, "created_at" = '2013-07-18 04:39:19.111918', "updated_at" = '2013-07-18 04:39:19.111918', "auth_token" = 'b9ExGyqB5PXfHzwGi2Gd' WHERE "public"."cadenero_members"."id" = 517  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$//02mNZriOO6i678WMc27eFb8ut3Ys4KdcJwgwvv1PSrQHdhzRLNK"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 420], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 519]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sjpGsqsqWyX9wnAkxqZs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 420, "user_id" = 519, "created_at" = '2013-07-18 04:39:19.263111', "updated_at" = '2013-07-18 04:39:19.263111', "auth_token" = 'sjpGsqsqWyX9wnAkxqZs' WHERE "public"."cadenero_members"."id" = 518  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 519 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 519 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 519 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 519 Completed 201 Created in 115ms (Views: 6.3ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/519" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"519"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 420 AND "public"."cadenero_users"."id" = 519 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 519 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 519 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 519 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 519 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.7ms)  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$AwGf0nIpQ.5QF/.s3UlsceN59NHPnARenj.PxQ5BvEajmcAhq.VCO"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 520], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'AeD6ixxTwN4JK9KgWxqz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 520, "created_at" = '2013-07-18 04:39:19.407357', "updated_at" = '2013-07-18 04:39:19.407357', "auth_token" = 'AeD6ixxTwN4JK9KgWxqz' WHERE "public"."cadenero_accounts"."id" = 421  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 421], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 520]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oM1GnoSy5GjKCkYNjq5q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 421, "user_id" = 520, "created_at" = '2013-07-18 04:39:19.412882', "updated_at" = '2013-07-18 04:39:19.412882', "auth_token" = 'oM1GnoSy5GjKCkYNjq5q' WHERE "public"."cadenero_members"."id" = 519  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3eeufSAcvdFthXo7bpS9oOIjJBTZ8p6EKTVOwI1uaJfiQLnjJp9Ne"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 421], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 521]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JoM47i121nWD1zeapzQK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 421, "user_id" = 521, "created_at" = '2013-07-18 04:39:19.562341', "updated_at" = '2013-07-18 04:39:19.562341', "auth_token" = 'JoM47i121nWD1zeapzQK' WHERE "public"."cadenero_members"."id" = 520  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 Completed 201 Created in 112ms (Views: 5.6ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/521" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"521"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 421 AND "public"."cadenero_users"."id" = 521 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 521], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TpZmUmQp9gzpJy4vYnyH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 521, "created_at" = '2013-07-18 04:39:19.593251', "updated_at" = '2013-07-18 04:39:19.593251', "auth_token" = 'TpZmUmQp9gzpJy4vYnyH' WHERE "public"."cadenero_accounts"."id" = 422  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 422], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 521]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BQtnhWppBHpxqFpqFQw3' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 422, "user_id" = 521, "created_at" = '2013-07-18 04:39:19.598989', "updated_at" = '2013-07-18 04:39:19.598989', "auth_token" = 'BQtnhWppBHpxqFpqFQw3' WHERE "public"."cadenero_members"."id" = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$bcQj9bkyyjAGbu/OoK3xFec53ckqVROTat2MeU2.nf/zzXdKrWUt6"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 422], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 522]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1sojdHPDF7fcPKrVzz78' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 422, "user_id" = 522, "created_at" = '2013-07-18 04:39:19.748794', "updated_at" = '2013-07-18 04:39:19.748794', "auth_token" = '1sojdHPDF7fcPKrVzz78' WHERE "public"."cadenero_members"."id" = 522  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 522 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 522 Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/522" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"522"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 422 AND "public"."cadenero_users"."id" = 522 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 522 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 522 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) Started GET "/v1/users/521" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"521"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 421 AND "public"."cadenero_users"."id" = 521 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 421 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 520 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 520 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 520 Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.7ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$7oF42g1W1ohPHioz5Q0cjezAuhZ1yNh3MXGB/CBxdR/VxWF8uD6su"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 523], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MLUw1yyqtb2Cxab7JWQ6' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 523, "created_at" = '2013-07-18 04:39:19.938344', "updated_at" = '2013-07-18 04:39:19.938344', "auth_token" = 'MLUw1yyqtb2Cxab7JWQ6' WHERE "public"."cadenero_accounts"."id" = 423  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 423], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 523]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gxRVmpySrELeew6P8xv4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 423, "user_id" = 523, "created_at" = '2013-07-18 04:39:19.955439', "updated_at" = '2013-07-18 04:39:19.955439', "auth_token" = 'gxRVmpySrELeew6P8xv4' WHERE "public"."cadenero_members"."id" = 523  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (5.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$i8NxKILmxKDHbspT/NbK5Oi7upE/IrdjR0yusy3Ymo2KuyuIxieUi"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 423], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 524]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cTqXtKZr7Uqq9STsXBhM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 423, "user_id" = 524, "created_at" = '2013-07-18 04:39:20.128707', "updated_at" = '2013-07-18 04:39:20.128707', "auth_token" = 'cTqXtKZr7Uqq9STsXBhM' WHERE "public"."cadenero_members"."id" = 524  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 Completed 201 Created in 113ms (Views: 5.8ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/524" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"524"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 423 AND "public"."cadenero_users"."id" = 524 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 Completed 201 Created in 9ms (Views: 5.6ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$wZnDXXaqTNKfXsEkcjqCGuzPBknx3F32xvk4/hlBbO6f70gpGwv9."], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 525], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sXXybdoQbstnyd3JjqoF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 525, "created_at" = '2013-07-18 04:39:20.319882', "updated_at" = '2013-07-18 04:39:20.319882', "auth_token" = 'sXXybdoQbstnyd3JjqoF' WHERE "public"."cadenero_accounts"."id" = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 424], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 525]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '88sLfVKfgWCgrHppFzzD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 424, "user_id" = 525, "created_at" = '2013-07-18 04:39:20.325598', "updated_at" = '2013-07-18 04:39:20.325598', "auth_token" = '88sLfVKfgWCgrHppFzzD' WHERE "public"."cadenero_members"."id" = 525  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 424 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 525 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 525 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 525 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 525 Completed 201 Created in 109ms (Views: 5.5ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 525 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"525", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 525 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$6z4Ag5GVG.DJPuW0wQXjxe68AK1WiK5YeckJE64ogt8dQZbRQdmvO"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 526], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'p7JcVzFAdtRpsNcs2Qm7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 526, "created_at" = '2013-07-18 04:39:20.618909', "updated_at" = '2013-07-18 04:39:20.618909', "auth_token" = 'p7JcVzFAdtRpsNcs2Qm7' WHERE "public"."cadenero_accounts"."id" = 425  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 425], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 526]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4oAuGWfLfbzisZaFjYD5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 425, "user_id" = 526, "created_at" = '2013-07-18 04:39:20.626254', "updated_at" = '2013-07-18 04:39:20.626254', "auth_token" = '4oAuGWfLfbzisZaFjYD5' WHERE "public"."cadenero_members"."id" = 526  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 425 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 526 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 526 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 526 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 526 Completed 201 Created in 106ms (Views: 5.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 526 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 526 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$wsC4VizHp1FiP/XvoiAlj.Odh9J2.0LT7XTdYasgEMmjiAVEQYMB."], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 527], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'JP3FowPwNfPszxnN9bDN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 527, "created_at" = '2013-07-18 04:39:20.955240', "updated_at" = '2013-07-18 04:39:20.955240', "auth_token" = 'JP3FowPwNfPszxnN9bDN' WHERE "public"."cadenero_accounts"."id" = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 426], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 527]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B2HgmMh1GoPvY5s3z238' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 426, "user_id" = 527, "created_at" = '2013-07-18 04:39:20.960743', "updated_at" = '2013-07-18 04:39:20.960743', "auth_token" = 'B2HgmMh1GoPvY5s3z238' WHERE "public"."cadenero_members"."id" = 527  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 426 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 527 LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 527 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 527 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 527 Completed 201 Created in 108ms (Views: 6.4ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 527 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"527", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 527 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$M2hEgRN2ve2Q/vzt6Dfyseljg/QPlpfLI.4Oz/ZpM.YFUViYF2MSG"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 426], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 528]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kjTsY9kUpoop1qNumxbX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 426, "user_id" = 528, "created_at" = '2013-07-18 04:39:21.234802', "updated_at" = '2013-07-18 04:39:21.234802', "auth_token" = 'kjTsY9kUpoop1qNumxbX' WHERE "public"."cadenero_members"."id" = 528  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 528 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 528 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 528 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 528 Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/528" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"528"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 426 AND "public"."cadenero_users"."id" = 528 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 528 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 528 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 528 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 528 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 528 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 528 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 528 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 528 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bFwDxH7Nr0EE.SJhQRJSiudcllDJkCMVZVUlimQyEUq2SQHmBebbS"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 529], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EGFWQxaiNbFUc8cucJW2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 529, "created_at" = '2013-07-18 04:39:21.386226', "updated_at" = '2013-07-18 04:39:21.386226', "auth_token" = 'EGFWQxaiNbFUc8cucJW2' WHERE "public"."cadenero_accounts"."id" = 427  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 427], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 529]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZeLypssv325pj2qFPi2s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 427, "user_id" = 529, "created_at" = '2013-07-18 04:39:21.391605', "updated_at" = '2013-07-18 04:39:21.391605', "auth_token" = 'ZeLypssv325pj2qFPi2s' WHERE "public"."cadenero_members"."id" = 529  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 427 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$dUrCP3Hnaa.cc8rvIqTip.WNnfrEDHJM9ovsKmb/Vem2LNO16qE2S"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 530], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6tMJs51qc6hppVanH8fJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 530, "created_at" = '2013-07-18 04:39:21.558946', "updated_at" = '2013-07-18 04:39:21.558946', "auth_token" = '6tMJs51qc6hppVanH8fJ' WHERE "public"."cadenero_accounts"."id" = 428  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 428], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 530]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'smLg6fyzJMBzJxYxH1nj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 428, "user_id" = 530, "created_at" = '2013-07-18 04:39:21.566198', "updated_at" = '2013-07-18 04:39:21.566198', "auth_token" = 'smLg6fyzJMBzJxYxH1nj' WHERE "public"."cadenero_members"."id" = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xxXoLTGMVXeTh/eUjMiMduLNn2oUK9Ac5dGKgUXMGg4VSYcw8aCOy"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 531], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9Hii8Ryz2y9ky4yaYT36' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 531, "created_at" = '2013-07-18 04:39:21.710613', "updated_at" = '2013-07-18 04:39:21.710613', "auth_token" = '9Hii8Ryz2y9ky4yaYT36' WHERE "public"."cadenero_accounts"."id" = 429  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 429], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 531]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WYNzoZadVYNcbJAZZMf9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 429, "user_id" = 531, "created_at" = '2013-07-18 04:39:21.715728', "updated_at" = '2013-07-18 04:39:21.715728', "auth_token" = 'WYNzoZadVYNcbJAZZMf9' WHERE "public"."cadenero_members"."id" = 531  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 428 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$41f72y0tcnMzHLmVvJSA8euJWKdJRszvtW3cNwoQ6KBQt7Gk20cK2"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 532], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RGE1fTxed3mV5nczBbaB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 532, "created_at" = '2013-07-18 04:39:21.841179', "updated_at" = '2013-07-18 04:39:21.841179', "auth_token" = 'RGE1fTxed3mV5nczBbaB' WHERE "public"."cadenero_accounts"."id" = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 430], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 532]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XpXBhvRsjusyqfDqysge' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 430, "user_id" = 532, "created_at" = '2013-07-18 04:39:21.846768', "updated_at" = '2013-07-18 04:39:21.846768', "auth_token" = 'XpXBhvRsjusyqfDqysge' WHERE "public"."cadenero_members"."id" = 532  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 430 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$u0ko4wdWeHQqINcqOuit.ODZCdbN1t0Dnt6p.KYBTJtK.YKl7GJBe"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 533], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SJyxspqf7ozhKGPcfYUt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 533, "created_at" = '2013-07-18 04:39:22.020965', "updated_at" = '2013-07-18 04:39:22.020965', "auth_token" = 'SJyxspqf7ozhKGPcfYUt' WHERE "public"."cadenero_accounts"."id" = 431  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 431], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 533]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wq18zSYtjmyHthGCVf8N' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 431, "user_id" = 533, "created_at" = '2013-07-18 04:39:22.026359', "updated_at" = '2013-07-18 04:39:22.026359', "auth_token" = 'Wq18zSYtjmyHthGCVf8N' WHERE "public"."cadenero_members"."id" = 533  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$mddJo8yVWSjvmm34Clf/0.JE2e3QS9aAPTx/2VAXdwIQgTaitzAZC"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 534], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'i7NzvnBuHd7PWfBEzbNT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 534, "created_at" = '2013-07-18 04:39:22.217757', "updated_at" = '2013-07-18 04:39:22.217757', "auth_token" = 'i7NzvnBuHd7PWfBEzbNT' WHERE "public"."cadenero_accounts"."id" = 432  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 432], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 534]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z2A3QH2zpqjVwyGXF6Eq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 432, "user_id" = 534, "created_at" = '2013-07-18 04:39:22.223281', "updated_at" = '2013-07-18 04:39:22.223281', "auth_token" = 'Z2A3QH2zpqjVwyGXF6Eq' WHERE "public"."cadenero_members"."id" = 534  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$51AMGW.lPeJK7B4i6K/JyuhARNf0.8MDnMkjcGauKb5/wTvrAEW.S"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 432], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 535]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ABwecKNZqHqQHKRm6bdk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 432, "user_id" = 535, "created_at" = '2013-07-18 04:39:22.377699', "updated_at" = '2013-07-18 04:39:22.377699', "auth_token" = 'ABwecKNZqHqQHKRm6bdk' WHERE "public"."cadenero_members"."id" = 535  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 Completed 201 Created in 115ms (Views: 6.8ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/535" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"535"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 432 AND "public"."cadenero_users"."id" = 535 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 534 Started GET "/v1?auth_token[]=Z2A3QH2zpqjVwyGXF6Eq" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Z2A3QH2zpqjVwyGXF6Eq"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 432 AND "public"."cadenero_members"."auth_token" IN ('Z2A3QH2zpqjVwyGXF6Eq') LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 534 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 534 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 Started GET "/v1?auth_token[]=ABwecKNZqHqQHKRm6bdk" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["ABwecKNZqHqQHKRm6bdk"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 432 AND "public"."cadenero_members"."auth_token" IN ('ABwecKNZqHqQHKRm6bdk') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$BTL5mvAtAuCxJmzBkBaF5ego1bMHtDY1knRCMWptIfQyzTqDmllv."], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 536], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'aakEqqJT3pPCDCqqxjex' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 536, "created_at" = '2013-07-18 04:39:22.546098', "updated_at" = '2013-07-18 04:39:22.546098', "auth_token" = 'aakEqqJT3pPCDCqqxjex' WHERE "public"."cadenero_accounts"."id" = 433  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 433], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 536]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jRTaVM9jxsiiq5KMEUcc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 433, "user_id" = 536, "created_at" = '2013-07-18 04:39:22.552704', "updated_at" = '2013-07-18 04:39:22.552704', "auth_token" = 'jRTaVM9jxsiiq5KMEUcc' WHERE "public"."cadenero_members"."id" = 536  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$lP39YM19.cel9v9jToLy5OJEtrAX96D8OpHCMKAf/2rrFdyt2npVC"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 537], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NGq7CjHT5Zq83KJ95Px7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 537, "created_at" = '2013-07-18 04:39:22.697820', "updated_at" = '2013-07-18 04:39:22.697820', "auth_token" = 'NGq7CjHT5Zq83KJ95Px7' WHERE "public"."cadenero_accounts"."id" = 434  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 434], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 537]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gt8LKvxhQWWQVZYGBja8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 434, "user_id" = 537, "created_at" = '2013-07-18 04:39:22.703729', "updated_at" = '2013-07-18 04:39:22.703729', "auth_token" = 'gt8LKvxhQWWQVZYGBja8' WHERE "public"."cadenero_members"."id" = 537  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test15"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 537 Started GET "/v1?auth_token[]=gt8LKvxhQWWQVZYGBja8" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["gt8LKvxhQWWQVZYGBja8"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 433 AND "public"."cadenero_members"."auth_token" IN ('gt8LKvxhQWWQVZYGBja8') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$11mOkQbOVKZF37qUfbvtSOUL/r81puYvIylYcWdmd00SGL55UeLxq"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 538], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wzgU9y1ABpq8UB6pVEgp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 538, "created_at" = '2013-07-18 04:39:22.925999', "updated_at" = '2013-07-18 04:39:22.925999', "auth_token" = 'wzgU9y1ABpq8UB6pVEgp' WHERE "public"."cadenero_accounts"."id" = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 435], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 538]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M7hhHtfxfgv4jPzery4g' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 435, "user_id" = 538, "created_at" = '2013-07-18 04:39:22.931567', "updated_at" = '2013-07-18 04:39:22.931567', "auth_token" = 'M7hhHtfxfgv4jPzery4g' WHERE "public"."cadenero_members"."id" = 538  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test16"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 538 Started GET "/v1?auth_token[]=M7hhHtfxfgv4jPzery4g" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["M7hhHtfxfgv4jPzery4g"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 435 AND "public"."cadenero_members"."auth_token" IN ('M7hhHtfxfgv4jPzery4g') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 538 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 538 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$IpfDIdsFeBZMFp1//gsT4ONHYwQ37Tvk5HWKOydyRH7xlNnnL0NNG"], ["updated_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 539], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ko4JXnxzH14wATwaGWyZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 539, "created_at" = '2013-07-18 04:39:23.104351', "updated_at" = '2013-07-18 04:39:23.104351', "auth_token" = 'ko4JXnxzH14wATwaGWyZ' WHERE "public"."cadenero_accounts"."id" = 436  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 436], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["user_id", 539]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'm5W312NHz9j1c1vezbss' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 436, "user_id" = 539, "created_at" = '2013-07-18 04:39:23.109890', "updated_at" = '2013-07-18 04:39:23.109890', "auth_token" = 'm5W312NHz9j1c1vezbss' WHERE "public"."cadenero_members"."id" = 539  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test17"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 539 Started GET "/v1?auth_token[]=m5W312NHz9j1c1vezbss" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["m5W312NHz9j1c1vezbss"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 436 AND "public"."cadenero_members"."auth_token" IN ('m5W312NHz9j1c1vezbss') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/v1/users/539" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"539"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/539?auth_token[]=m5W312NHz9j1c1vezbss" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["m5W312NHz9j1c1vezbss"], "default"=>:json, "id"=>"539"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 436 AND "public"."cadenero_members"."auth_token" IN ('m5W312NHz9j1c1vezbss') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 436 AND "public"."cadenero_users"."id" = 539 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 539 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 539 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 539 Completed 200 OK in 15ms (Views: 6.0ms | ActiveRecord: 2.3ms)  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (1.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$WCYmbyKsMhFe.qrZ/mKCm.hO88nWuiaiJfwixlW7vPAgFsKd08OJC"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 540], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'A8c7jvGjBKRSGnGcDxLx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 540, "created_at" = '2013-07-18 04:39:31.164527', "updated_at" = '2013-07-18 04:39:31.164527', "auth_token" = 'A8c7jvGjBKRSGnGcDxLx' WHERE "public"."cadenero_accounts"."id" = 437  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 437], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["user_id", 540]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GSXMqWteSZQbPqCszmtV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 437, "user_id" = 540, "created_at" = '2013-07-18 04:39:31.171211', "updated_at" = '2013-07-18 04:39:31.171211', "auth_token" = 'GSXMqWteSZQbPqCszmtV' WHERE "public"."cadenero_members"."id" = 540  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$b9TtlB46En3R7oJ3lg0i/eBOx3DdUEtZdo4RCFSxbRz0VwsU3usK."], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$AJCv.Ss1Zblw9f3LcwDUXOcuAZU/fkcUECagSyywFzTzbWUW9PaGm"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["name", "Root"], ["owner_id", 542], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zA9xypp4VtsxsWW2A19F' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 542, "created_at" = '2013-07-18 04:39:31.384811', "updated_at" = '2013-07-18 04:39:31.384811', "auth_token" = 'zA9xypp4VtsxsWW2A19F' WHERE "public"."cadenero_accounts"."id" = 438  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 438], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["user_id", 542]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M4n32VBt11SBMyu75J6L' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 438, "user_id" = 542, "created_at" = '2013-07-18 04:39:31.390016', "updated_at" = '2013-07-18 04:39:31.390016', "auth_token" = 'M4n32VBt11SBMyu75J6L' WHERE "public"."cadenero_members"."id" = 541  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (3.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.1ms) ROLLBACK  (2.8ms) BEGIN  (1.9ms) COMMIT  (3.0ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 106ms (Views: 102.3ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$MT7QTBMO4rrGxlwtYcv7quvu1gPC7sB5Yej4YSIcAinnMUrTLDave"], ["updated_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["name", "Test Account"], ["owner_id", 543], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vvsFMFwKc3XY3ijw6zup' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 543, "created_at" = '2013-07-18 04:39:52.834570', "updated_at" = '2013-07-18 04:39:52.834570', "auth_token" = 'vvsFMFwKc3XY3ijw6zup' WHERE "public"."cadenero_accounts"."id" = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 439], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["user_id", 543]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uFkqR2gR2PAprA4VzhcH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 439, "user_id" = 543, "created_at" = '2013-07-18 04:39:52.866560', "updated_at" = '2013-07-18 04:39:52.866560', "auth_token" = 'uFkqR2gR2PAprA4VzhcH' WHERE "public"."cadenero_members"."id" = 542  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 439 LIMIT 1  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.4ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$KjguN98OjS8JfPwTTaLd3OwXh2YaAAn4skQnLVQsWXHQQOxSiafkC"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 544], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'a1GpsJhtkyfRY3ipUqYX' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 544, "created_at" = '2013-07-18 04:40:01.752382', "updated_at" = '2013-07-18 04:40:01.752382', "auth_token" = 'a1GpsJhtkyfRY3ipUqYX' WHERE "public"."cadenero_accounts"."id" = 440  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 440], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["user_id", 544]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dWyWCsFQqh5s7bpd6KxM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 440, "user_id" = 544, "created_at" = '2013-07-18 04:40:01.761271', "updated_at" = '2013-07-18 04:40:01.761271', "auth_token" = 'dWyWCsFQqh5s7bpd6KxM' WHERE "public"."cadenero_members"."id" = 543  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8/XJJggEkf22t9TzXQiJaeyyHJ3CQDV4aK9QnIxVEdGS34EiDK2Oi"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$pN/QuUiya3EvhyYlGmWzY./tdgtjO4rs9q/rjkmXDp9UndO1pUvFy"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["name", "Root"], ["owner_id", 546], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'iNBrkrTfCbwyEYRNWjSS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 546, "created_at" = '2013-07-18 04:40:01.966331', "updated_at" = '2013-07-18 04:40:01.966331', "auth_token" = 'iNBrkrTfCbwyEYRNWjSS' WHERE "public"."cadenero_accounts"."id" = 441  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 441], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["user_id", 546]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hEPqCahobr47XneiqKw3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 441, "user_id" = 546, "created_at" = '2013-07-18 04:40:01.972797', "updated_at" = '2013-07-18 04:40:01.972797', "auth_token" = 'hEPqCahobr47XneiqKw3' WHERE "public"."cadenero_members"."id" = 544  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$urjnlWx7Pb6kUxeMkYjmRuMOPT3QafAWxmvB0UkE803DXlMZPWwem"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 547], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vi3L9zmapfxXxqChPQU3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 547, "created_at" = '2013-07-18 04:40:02.239868', "updated_at" = '2013-07-18 04:40:02.239868', "auth_token" = 'vi3L9zmapfxXxqChPQU3' WHERE "public"."cadenero_accounts"."id" = 442  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 442], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["user_id", 547]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yCrNaqps7iGGL8rL2gKx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 442, "user_id" = 547, "created_at" = '2013-07-18 04:40:02.246908', "updated_at" = '2013-07-18 04:40:02.246908', "auth_token" = 'yCrNaqps7iGGL8rL2gKx' WHERE "public"."cadenero_members"."id" = 545  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 442 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 547 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 547 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 547 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 547 Completed 201 Created in 120ms (Views: 7.8ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 547 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"547", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 547 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Mo5cei6P2BP0H2Cziepyy.919YL1U7xUK0Y90QBwtGAqotV1CBRBS"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 548], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7o5PMHv4cA3gqgyeD4tE' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 548, "created_at" = '2013-07-18 04:40:02.604852', "updated_at" = '2013-07-18 04:40:02.604852', "auth_token" = '7o5PMHv4cA3gqgyeD4tE' WHERE "public"."cadenero_accounts"."id" = 443  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 443], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["user_id", 548]] Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xDuMjzm6ytpsQQdFAL8T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 443, "user_id" = 548, "created_at" = '2013-07-18 04:40:02.612486', "updated_at" = '2013-07-18 04:40:02.612486', "auth_token" = 'xDuMjzm6ytpsQQdFAL8T' WHERE "public"."cadenero_members"."id" = 546  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 443 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 548 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 548 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 548 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 548 Completed 201 Created in 117ms (Views: 5.4ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 548 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"548", "default"=>:json} Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 548 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$k6zqWIG.B01NGLu58A91C.r1748/DzCJd30tvrZ/YsI3mpYgIo/4m"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 443], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["user_id", 549]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uj6r6TUDrFY6NLTrHHLq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 443, "user_id" = 549, "created_at" = '2013-07-18 04:40:02.925459', "updated_at" = '2013-07-18 04:40:02.925459', "auth_token" = 'uj6r6TUDrFY6NLTrHHLq' WHERE "public"."cadenero_members"."id" = 547  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 Completed 201 Created in 121ms (Views: 7.5ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/549" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"549"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 443 AND "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 Completed 200 OK in 13ms (Views: 5.9ms | ActiveRecord: 3.9ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 Completed 201 Created in 8ms (Views: 5.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$eDEWpAR34AFJDxx4MsNdDeAHGLEEe4pIj.ecfIKkbOf54PET6fyC."], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 550], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'voqjDtcJcV1XrN6uSwMm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 550, "created_at" = '2013-07-18 04:40:03.089214', "updated_at" = '2013-07-18 04:40:03.089214', "auth_token" = 'voqjDtcJcV1XrN6uSwMm' WHERE "public"."cadenero_accounts"."id" = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 444], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["user_id", 550]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XDY4A6xsBxzheddsBM2i' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 444, "user_id" = 550, "created_at" = '2013-07-18 04:40:03.094698', "updated_at" = '2013-07-18 04:40:03.094698', "auth_token" = 'XDY4A6xsBxzheddsBM2i' WHERE "public"."cadenero_members"."id" = 548  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$X1TI4vgsa0ld4nB/2q977./N.SbeCQS3PVpPdmpwIRFZCf5Jf/1v."], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 444], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["user_id", 551]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zq1ctuUMz9ALt2G4wE3c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 444, "user_id" = 551, "created_at" = '2013-07-18 04:40:03.249804', "updated_at" = '2013-07-18 04:40:03.249804', "auth_token" = 'zq1ctuUMz9ALt2G4wE3c' WHERE "public"."cadenero_members"."id" = 549  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 551 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 551 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 551 Completed 201 Created in 117ms (Views: 5.9ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/551" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"551"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 444 AND "public"."cadenero_users"."id" = 551 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 551 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 551 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 551 Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 551 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 551 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 551 Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$RV5DvFnbgjZ63MJ3kBIUgOXVfIu//TBHvAag2S5TrBSaZy3cLEeYW"], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 552], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DJK4qvn9ksye4GWQybWs' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 552, "created_at" = '2013-07-18 04:40:03.565292', "updated_at" = '2013-07-18 04:40:03.565292', "auth_token" = 'DJK4qvn9ksye4GWQybWs' WHERE "public"."cadenero_accounts"."id" = 445  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 445], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["user_id", 552]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fsCT2BwFFxkTZ7rsqCnJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 445, "user_id" = 552, "created_at" = '2013-07-18 04:40:03.575726', "updated_at" = '2013-07-18 04:40:03.575726', "auth_token" = 'fsCT2BwFFxkTZ7rsqCnJ' WHERE "public"."cadenero_members"."id" = 550  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (11.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (12.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (9.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (7.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (8.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 445 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 552 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 552 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 552 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 552 Completed 201 Created in 182ms (Views: 5.9ms | ActiveRecord: 5.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 552 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 552 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (15.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$OSbKsyICPC1SmEGAuKW/H.qctX7.TZGjKP77AbtI58RI/GMcqYE.i"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 553], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5pr5HjLnLxpYMEzifNei' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 553, "created_at" = '2013-07-18 04:40:04.124435', "updated_at" = '2013-07-18 04:40:04.124435', "auth_token" = '5pr5HjLnLxpYMEzifNei' WHERE "public"."cadenero_accounts"."id" = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 446], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 553]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QGmMF7uEw6dTW2mQvyGE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 446, "user_id" = 553, "created_at" = '2013-07-18 04:40:04.130277', "updated_at" = '2013-07-18 04:40:04.130277', "auth_token" = 'QGmMF7uEw6dTW2mQvyGE' WHERE "public"."cadenero_members"."id" = 551  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (3.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$f/J/RyGbLs7NtYz76U6ifO79T9cMwJvkebIKBVCJifYH3zxYoFy2G"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (3.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 554], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dY1nVsEUN6ADShMJQ9ej' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 554, "created_at" = '2013-07-18 04:40:04.366398', "updated_at" = '2013-07-18 04:40:04.366398', "auth_token" = 'dY1nVsEUN6ADShMJQ9ej' WHERE "public"."cadenero_accounts"."id" = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 447], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 554]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GGsXAx5FD3xiWn4GyzpX' LIMIT 1  (4.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 447, "user_id" = 554, "created_at" = '2013-07-18 04:40:04.376409', "updated_at" = '2013-07-18 04:40:04.376409', "auth_token" = 'GGsXAx5FD3xiWn4GyzpX' WHERE "public"."cadenero_members"."id" = 552  (2.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 446 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$m9nfK9Kvji2b3Pug0fi0JOPptHbqJUskK5Ff9uKGeiEDq2x5m2MUW"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 555], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hvCUtpuxFDXxqPnq78Pu' LIMIT 1  (2.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 555, "created_at" = '2013-07-18 04:40:04.606155', "updated_at" = '2013-07-18 04:40:04.606155', "auth_token" = 'hvCUtpuxFDXxqPnq78Pu' WHERE "public"."cadenero_accounts"."id" = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 448], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 555]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u617wyQ4kuHpn2oBWiA3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 448, "user_id" = 555, "created_at" = '2013-07-18 04:40:04.618725', "updated_at" = '2013-07-18 04:40:04.618725', "auth_token" = 'u617wyQ4kuHpn2oBWiA3' WHERE "public"."cadenero_members"."id" = 553  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (11.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) COMMIT  (8.7ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$EmXPER5Qp2EgRI1cyBEmue8//t0NAYHKj5fqS/lZsWzMssxt7s00G"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 556], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2dRyyqrAXBwJkRz2eKfz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 556, "created_at" = '2013-07-18 04:40:04.848669', "updated_at" = '2013-07-18 04:40:04.848669', "auth_token" = '2dRyyqrAXBwJkRz2eKfz' WHERE "public"."cadenero_accounts"."id" = 449  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 449], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 556]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oHDUdQqjEjCtEostahtG' LIMIT 1  (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 449, "user_id" = 556, "created_at" = '2013-07-18 04:40:04.854232', "updated_at" = '2013-07-18 04:40:04.854232', "auth_token" = 'oHDUdQqjEjCtEostahtG' WHERE "public"."cadenero_members"."id" = 554  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (11.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (12.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 449 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (7.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$gcl7IVsPtNSpvArRDeg28OEjismuEWM72hIzQ.8oDUpLlsGFdn.DK"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 557], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PbhhotUFDPmu5R4xYzwy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 557, "created_at" = '2013-07-18 04:40:05.113264', "updated_at" = '2013-07-18 04:40:05.113264', "auth_token" = 'PbhhotUFDPmu5R4xYzwy' WHERE "public"."cadenero_accounts"."id" = 450  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 450], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 557]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4xARV5Aispnp9QQdC1V3' LIMIT 1  (3.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 450, "user_id" = 557, "created_at" = '2013-07-18 04:40:05.118906', "updated_at" = '2013-07-18 04:40:05.118906', "auth_token" = '4xARV5Aispnp9QQdC1V3' WHERE "public"."cadenero_members"."id" = 555  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (5.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 450 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$K1bLBuKkCiafp.Zk7mwqFehn69En519vvCNW/7cXgU7n3e2rix6DO"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 558], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Vmwje6pxnRLAgA8fjsyV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 558, "created_at" = '2013-07-18 04:40:05.380308', "updated_at" = '2013-07-18 04:40:05.380308', "auth_token" = 'Vmwje6pxnRLAgA8fjsyV' WHERE "public"."cadenero_accounts"."id" = 451  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 451], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 558]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YDTY7ZzANyNBNsyvzyzF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 451, "user_id" = 558, "created_at" = '2013-07-18 04:40:05.385644', "updated_at" = '2013-07-18 04:40:05.385644', "auth_token" = 'YDTY7ZzANyNBNsyvzyzF' WHERE "public"."cadenero_members"."id" = 556  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (11.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$itq3y9kphNxkydG40u6eY.OZJettXOcJNB24Pzf2ch9vHGJeBxfxW"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 559], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hCqFyiHpZzuwjWtHNZyX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 559, "created_at" = '2013-07-18 04:40:05.603200', "updated_at" = '2013-07-18 04:40:05.603200', "auth_token" = 'hCqFyiHpZzuwjWtHNZyX' WHERE "public"."cadenero_accounts"."id" = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 452], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 559]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R8pV9vpX16xsQmjUcwzp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 452, "user_id" = 559, "created_at" = '2013-07-18 04:40:05.608466', "updated_at" = '2013-07-18 04:40:05.608466', "auth_token" = 'R8pV9vpX16xsQmjUcwzp' WHERE "public"."cadenero_members"."id" = 557  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (13.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (9.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 559 Started GET "/v1?auth_token[]=R8pV9vpX16xsQmjUcwzp" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["R8pV9vpX16xsQmjUcwzp"], "default"=>:json} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 451 AND "public"."cadenero_members"."auth_token" IN ('R8pV9vpX16xsQmjUcwzp') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.9ms)  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (6.4ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$tqeJV7zug8uvG7qa2gcqh.m10QlvlB5t/PgJrOFXj1XsXYvFbNH8m"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 560], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rAqFsAtsipxRCCbBpj1q' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 560, "created_at" = '2013-07-18 04:40:05.864321', "updated_at" = '2013-07-18 04:40:05.864321', "auth_token" = 'rAqFsAtsipxRCCbBpj1q' WHERE "public"."cadenero_accounts"."id" = 453  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 453], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 560]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dwTpfk4A4izVDK6Rwi9E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 453, "user_id" = 560, "created_at" = '2013-07-18 04:40:05.869941', "updated_at" = '2013-07-18 04:40:05.869941', "auth_token" = 'dwTpfk4A4izVDK6Rwi9E' WHERE "public"."cadenero_members"."id" = 558  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (9.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 Started GET "/v1?auth_token[]=dwTpfk4A4izVDK6Rwi9E" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["dwTpfk4A4izVDK6Rwi9E"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 453 AND "public"."cadenero_members"."auth_token" IN ('dwTpfk4A4izVDK6Rwi9E') LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 6.1ms) Started GET "/v1/users/560" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"560"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/560?auth_token[]=dwTpfk4A4izVDK6Rwi9E" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["dwTpfk4A4izVDK6Rwi9E"], "default"=>:json, "id"=>"560"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 453 AND "public"."cadenero_members"."auth_token" IN ('dwTpfk4A4izVDK6Rwi9E') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 453 AND "public"."cadenero_users"."id" = 560 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 560 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 560 Completed 200 OK in 70ms (Views: 8.3ms | ActiveRecord: 16.8ms)  (4.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) COMMIT  (0.1ms) BEGIN  (5.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$.oWg4pbXfo.87cZppi2Ne.xZgVlVzMhyNVRL/N0viSq8bvyfRZwYe"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 561], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hHxXdzRkrucxKr7K2GwD' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 561, "created_at" = '2013-07-18 04:40:06.213101', "updated_at" = '2013-07-18 04:40:06.213101', "auth_token" = 'hHxXdzRkrucxKr7K2GwD' WHERE "public"."cadenero_accounts"."id" = 454  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 454], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["user_id", 561]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zU85h5K2SG8hPkWu7kHh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 454, "user_id" = 561, "created_at" = '2013-07-18 04:40:06.222967', "updated_at" = '2013-07-18 04:40:06.222967', "auth_token" = 'zU85h5K2SG8hPkWu7kHh' WHERE "public"."cadenero_members"."id" = 559  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (12.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$9WTBtRlD4W.YeRRbIu6R/.iFwMiQGl1CeqDjXnzB/aocS20RubUSS"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] SQL (10.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 454], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["user_id", 562]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aYuykNbwu1QuJeq2z5AX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 454, "user_id" = 562, "created_at" = '2013-07-18 04:40:06.461784', "updated_at" = '2013-07-18 04:40:06.461784', "auth_token" = 'aYuykNbwu1QuJeq2z5AX' WHERE "public"."cadenero_members"."id" = 560  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 562 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 562 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 562 Completed 201 Created in 185ms (Views: 7.2ms | ActiveRecord: 27.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/562" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"562"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 454 AND "public"."cadenero_users"."id" = 562 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 562 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 562 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 562 Completed 200 OK in 20ms (Views: 7.0ms | ActiveRecord: 9.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 561 Started GET "/v1?auth_token[]=zU85h5K2SG8hPkWu7kHh" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["zU85h5K2SG8hPkWu7kHh"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (5.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 454 AND "public"."cadenero_members"."auth_token" IN ('zU85h5K2SG8hPkWu7kHh') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 561 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 561 LIMIT 1 Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 6.6ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 562 Started GET "/v1?auth_token[]=aYuykNbwu1QuJeq2z5AX" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["aYuykNbwu1QuJeq2z5AX"], "default"=>:json} Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 454 AND "public"."cadenero_members"."auth_token" IN ('aYuykNbwu1QuJeq2z5AX') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 9.7ms)  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$TMUNSgcfRZIVV9xce8Vzz.P8yiPZbf/T0lE72YovzipZnznqsT5UO"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]]  (7.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 563], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XprStVhwMfnkHx3AGn2U' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 563, "created_at" = '2013-07-18 04:40:06.733626', "updated_at" = '2013-07-18 04:40:06.733626', "auth_token" = 'XprStVhwMfnkHx3AGn2U' WHERE "public"."cadenero_accounts"."id" = 455  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 455], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["user_id", 563]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'h2VhiT3eCiE6QGSwpuze' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 455, "user_id" = 563, "created_at" = '2013-07-18 04:40:06.742410', "updated_at" = '2013-07-18 04:40:06.742410', "auth_token" = 'h2VhiT3eCiE6QGSwpuze' WHERE "public"."cadenero_members"."id" = 561  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (14.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 563 Started GET "/v1?auth_token[]=h2VhiT3eCiE6QGSwpuze" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["h2VhiT3eCiE6QGSwpuze"], "default"=>:json} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 455 AND "public"."cadenero_members"."auth_token" IN ('h2VhiT3eCiE6QGSwpuze') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 563 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 563 LIMIT 1 Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 13.1ms)  (2.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (2.6ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (6.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BqNsVNuohwwy3VrS4seX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:40:07.084637', "updated_at" = '2013-07-18 04:40:07.084637', "auth_token" = 'BqNsVNuohwwy3VrS4seX' WHERE "public"."cadenero_members"."id" = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:40:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$chw54IhclKe/wqlxGSCwh.65ViKjM7O8vQ/xyaaoBA42yKO8/sX0W"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["name", "Testy"], ["owner_id", 564], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2UokqJVtggvx2wEsdEFh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 564, "created_at" = '2013-07-18 04:40:07.244300', "updated_at" = '2013-07-18 04:40:07.244300', "auth_token" = '2UokqJVtggvx2wEsdEFh' WHERE "public"."cadenero_accounts"."id" = 456  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 456], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["user_id", 564]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MD9UEzY2pzpfucfYBwN9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 456, "user_id" = 564, "created_at" = '2013-07-18 04:40:07.252307', "updated_at" = '2013-07-18 04:40:07.252307', "auth_token" = 'MD9UEzY2pzpfucfYBwN9' WHERE "public"."cadenero_members"."id" = 563  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (10.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (7.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (9.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (16.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 456) LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 564 LIMIT 1 Cadenero::User Load (5.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 456 Completed 201 Created in 453ms (Views: 166.0ms | ActiveRecord: 125.4ms) Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tVDiN1XyxuvB7YtIgRrJT.DPuJhKqZvemSQHx0delJ6lSom3jt9i2"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["name", "Testy"], ["owner_id", 565], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6naw5sfM8yHyqYAMiTbF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 565, "created_at" = '2013-07-18 04:40:07.707308', "updated_at" = '2013-07-18 04:40:07.707308', "auth_token" = '6naw5sfM8yHyqYAMiTbF' WHERE "public"."cadenero_accounts"."id" = 457  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:40:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (20.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (6.8ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 195ms (Views: 0.3ms | ActiveRecord: 27.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (13.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 19ms (Views: 4.7ms | ActiveRecord: 13.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (11.6ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$30xdjKQJXeSU1UkwZSTRreCngIOAI4xgr0MXvKa6LAB/VW/rnow/2"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 566], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FryqUSrUKVuj1nDTgzmn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 566, "created_at" = '2013-07-18 04:40:08.133223', "updated_at" = '2013-07-18 04:40:08.133223', "auth_token" = 'FryqUSrUKVuj1nDTgzmn' WHERE "public"."cadenero_accounts"."id" = 458  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 458], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 566]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xZ779uC7zLHa6B6JLxcQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 458, "user_id" = 566, "created_at" = '2013-07-18 04:40:08.138881', "updated_at" = '2013-07-18 04:40:08.138881', "auth_token" = 'xZ779uC7zLHa6B6JLxcQ' WHERE "public"."cadenero_members"."id" = 564  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (8.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (11.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (9.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CicRgmK7NiyMdq/EtTCVzeEUnmCRlV3O46ZkmUTOzABYiFBr3gJ8K"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 458], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 567]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mHmTwSZFwz8vuxqLyjxJ' LIMIT 1  (8.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 458, "user_id" = 567, "created_at" = '2013-07-18 04:40:08.373693', "updated_at" = '2013-07-18 04:40:08.373693', "auth_token" = 'mHmTwSZFwz8vuxqLyjxJ' WHERE "public"."cadenero_members"."id" = 565  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 567 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 567 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 567 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 567 Completed 201 Created in 154ms (Views: 20.4ms | ActiveRecord: 19.1ms) Cadenero::V1::Account Load (6.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/567" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"567"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 458 AND "public"."cadenero_users"."id" = 567 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 567 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 567 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 567 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 567 Completed 200 OK in 29ms (Views: 6.0ms | ActiveRecord: 2.4ms)  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$NJ2A1MPNC3aOYK4.Vr6Jj.SpuyzQ8t3WD5wpSUUuEcoCLMTojg3Le"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (11.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 568], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dniico4dDko3gQXz4VNa' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 568, "created_at" = '2013-07-18 04:40:08.580568', "updated_at" = '2013-07-18 04:40:08.580568', "auth_token" = 'dniico4dDko3gQXz4VNa' WHERE "public"."cadenero_accounts"."id" = 459  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 459], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 568]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ef1fxpEQfaeHK8PLZSGY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 459, "user_id" = 568, "created_at" = '2013-07-18 04:40:08.586317', "updated_at" = '2013-07-18 04:40:08.586317', "auth_token" = 'ef1fxpEQfaeHK8PLZSGY' WHERE "public"."cadenero_members"."id" = 566  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test17"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (6.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (7.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (9.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (25.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DtkC7VzE61KCR1VcLdZ3wuAByrBr.HxQrGil0okMPvNXH/TA9eAou"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 459], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 569]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jE8Dzf1zbH2qohTqqsd8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 459, "user_id" = 569, "created_at" = '2013-07-18 04:40:08.865482', "updated_at" = '2013-07-18 04:40:08.865482', "auth_token" = 'jE8Dzf1zbH2qohTqqsd8' WHERE "public"."cadenero_members"."id" = 567  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 Completed 201 Created in 146ms (Views: 5.8ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/569" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"569"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 459 AND "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 569], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8UpDSUDHcGmjXrpf3YxP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 569, "created_at" = '2013-07-18 04:40:08.895611', "updated_at" = '2013-07-18 04:40:08.895611', "auth_token" = '8UpDSUDHcGmjXrpf3YxP' WHERE "public"."cadenero_accounts"."id" = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 460], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 569]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'So83fBs73sihbxY32fVh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 460, "user_id" = 569, "created_at" = '2013-07-18 04:40:08.901334', "updated_at" = '2013-07-18 04:40:08.901334', "auth_token" = 'So83fBs73sihbxY32fVh' WHERE "public"."cadenero_members"."id" = 568  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test18"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (16.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$YebseVudRIn9OqV8fPi7tuKZMVgIOak7FVXEiW81/w8PRokyckbr2"], ["updated_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 460], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00], ["user_id", 570]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yemjjap7zpsCAfRNxWBb' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 460, "user_id" = 570, "created_at" = '2013-07-18 04:40:09.149446', "updated_at" = '2013-07-18 04:40:09.149446', "auth_token" = 'Yemjjap7zpsCAfRNxWBb' WHERE "public"."cadenero_members"."id" = 569  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 570 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 570 Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 570 Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 570 Completed 201 Created in 154ms (Views: 6.5ms | ActiveRecord: 14.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/570" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"570"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 460 AND "public"."cadenero_users"."id" = 570 LIMIT 1 Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 570 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 570 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 570 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 570 Completed 200 OK in 68ms (Views: 7.9ms | ActiveRecord: 11.4ms) Started GET "/v1/users/569" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"569"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 459 AND "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.2ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 459 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 568 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 568 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 568 Completed 200 OK in 21ms (Views: 13.7ms | ActiveRecord: 6.0ms)  (10.5ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$.Oj5FooTUQei/QERgNndK.zjKhLU6ERZwCOLAs1zGL85trmqV6M3O"], ["updated_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (22.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 571], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'HvyexzpqGNyUmfQMsNUR' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 571, "created_at" = '2013-07-18 04:59:22.918690', "updated_at" = '2013-07-18 04:59:22.918690', "auth_token" = 'HvyexzpqGNyUmfQMsNUR' WHERE "public"."cadenero_accounts"."id" = 461  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 461], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["user_id", 571]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tDpvyRn7L5wsWnxVVs3V' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 461, "user_id" = 571, "created_at" = '2013-07-18 04:59:23.018901', "updated_at" = '2013-07-18 04:59:23.018901', "auth_token" = 'tDpvyRn7L5wsWnxVVs3V' WHERE "public"."cadenero_members"."id" = 570  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$DaZyGcmsBHMMTzSnusv8zum6ybLS4wWu/cOjp1jJjpOGnPbBeY3rG"], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$B8FAGq3ITsbeYFTNeCHRFuoVr5OFnYNFQVcYbC3seKnD9Op22RXAO"], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["name", "Root"], ["owner_id", 573], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'c74p375NkLqzVfQqHaR8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 573, "created_at" = '2013-07-18 04:59:23.223364', "updated_at" = '2013-07-18 04:59:23.223364', "auth_token" = 'c74p375NkLqzVfQqHaR8' WHERE "public"."cadenero_accounts"."id" = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 462], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["user_id", 573]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'L6qGDsNf2gLVbtzhwZTY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 462, "user_id" = 573, "created_at" = '2013-07-18 04:59:23.229632', "updated_at" = '2013-07-18 04:59:23.229632', "auth_token" = 'L6qGDsNf2gLVbtzhwZTY' WHERE "public"."cadenero_members"."id" = 571  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Connecting to database specified by database.yml  (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 34ms (Views: 32.3ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$7TfckDagtzcEywn/YxNkmu6eGcQzXX6eIyjkB7ihYO.TLopDYAWly"], ["updated_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 574], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KRQ59V8amVu7dyzPmgvd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 574, "created_at" = '2013-07-18 04:59:28.816139', "updated_at" = '2013-07-18 04:59:28.816139', "auth_token" = 'KRQ59V8amVu7dyzPmgvd' WHERE "public"."cadenero_accounts"."id" = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 463], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["user_id", 574]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qxHCzEFNpHJqKHPbgpxW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 463, "user_id" = 574, "created_at" = '2013-07-18 04:59:28.822087', "updated_at" = '2013-07-18 04:59:28.822087', "auth_token" = 'qxHCzEFNpHJqKHPbgpxW' WHERE "public"."cadenero_members"."id" = 572  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 463 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 574 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 574 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 574 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 574 Completed 201 Created in 144ms (Views: 15.0ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 574 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 574 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (9.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$.uRWOFrvo4jrD1Z6rgaJyOXCw33by9jqlY6yT3nwvWTqsbFMDRjma"], ["updated_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 575], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'L9ybsNZkz8CR6mEdBxJL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 575, "created_at" = '2013-07-18 04:59:29.264720', "updated_at" = '2013-07-18 04:59:29.264720', "auth_token" = 'L9ybsNZkz8CR6mEdBxJL' WHERE "public"."cadenero_accounts"."id" = 464  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 464], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["user_id", 575]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HrCScVHFFhiG6pW5x8zi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 464, "user_id" = 575, "created_at" = '2013-07-18 04:59:29.270306', "updated_at" = '2013-07-18 04:59:29.270306', "auth_token" = 'HrCScVHFFhiG6pW5x8zi' WHERE "public"."cadenero_members"."id" = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (24.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 464 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 575 LIMIT 1 Cadenero::Member Load (11.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 575 Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 575 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 575 Completed 201 Created in 418ms (Views: 18.1ms | ActiveRecord: 25.0ms) Cadenero::V1::Account Load (15.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (4.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 575 Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"575", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 575 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$RPI8zJa1SgH/kEQUAPBs3eTbxCAH3G.ZRmRIGIMmnXA62FjuKVffu"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 464], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["user_id", 576]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pHNPmWTutjjhCx1Kzih9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 464, "user_id" = 576, "created_at" = '2013-07-18 04:59:30.034251', "updated_at" = '2013-07-18 04:59:30.034251', "auth_token" = 'pHNPmWTutjjhCx1Kzih9' WHERE "public"."cadenero_members"."id" = 574  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (11.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 576 LIMIT 1 Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 576 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 576 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 576 Completed 201 Created in 234ms (Views: 8.8ms | ActiveRecord: 15.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/576" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"576"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (11.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 464 AND "public"."cadenero_users"."id" = 576 LIMIT 1 Cadenero::User Load (10.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 576 LIMIT 1 Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 576 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 576 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 576 Completed 200 OK in 33ms (Views: 6.7ms | ActiveRecord: 23.1ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 576 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 576 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 576 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 576 Completed 201 Created in 11ms (Views: 5.3ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) ROLLBACK  (0.9ms) BEGIN  (1.2ms) COMMIT  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$y5C8aUwAcIKP75qOkouJSunKohU9ivjuHaom5St6QUwwWCqiT.vEa"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (4.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 577], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GpZNLroVZay22Me29QpN' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 577, "created_at" = '2013-07-18 04:59:30.327816', "updated_at" = '2013-07-18 04:59:30.327816', "auth_token" = 'GpZNLroVZay22Me29QpN' WHERE "public"."cadenero_accounts"."id" = 465  (1.3ms) RELEASE SAVEPOINT active_record_1  (5.9ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 465], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["user_id", 577]] Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qeQftvm7d1ruiFkPVtau' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 465, "user_id" = 577, "created_at" = '2013-07-18 04:59:30.349085', "updated_at" = '2013-07-18 04:59:30.349085', "auth_token" = 'qeQftvm7d1ruiFkPVtau' WHERE "public"."cadenero_members"."id" = 575  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.1ms) CREATE SCHEMA "test4"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (5.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 465 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 577 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 577 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 577 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 577 Completed 201 Created in 170ms (Views: 5.5ms | ActiveRecord: 11.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 577 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"577", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 577 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (23.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (25.5ms) SAVEPOINT active_record_1 SQL (39.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$8OZuKsUqw6BtQjQ4tbl82.IVKNakpkC6VNtKUBit17QG..Nb/7IVi"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 578], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NLxDVS7YnQoBuYy4iGTn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 578, "created_at" = '2013-07-18 04:59:30.952695', "updated_at" = '2013-07-18 04:59:30.952695', "auth_token" = 'NLxDVS7YnQoBuYy4iGTn' WHERE "public"."cadenero_accounts"."id" = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 466], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["user_id", 578]] Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JquoYNi3DDRYhrNducJZ' LIMIT 1  (2.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 466, "user_id" = 578, "created_at" = '2013-07-18 04:59:30.958803', "updated_at" = '2013-07-18 04:59:30.958803', "auth_token" = 'JquoYNi3DDRYhrNducJZ' WHERE "public"."cadenero_members"."id" = 576  (2.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (13.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$1VF8B8/Db9yXCR4O4GWL/ew7zkZT1icSyC/dirmsNA/RG9mjKYc6O"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 466], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["user_id", 579]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mpp7PhLHqph5sCU8pqqh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 466, "user_id" = 579, "created_at" = '2013-07-18 04:59:31.218876', "updated_at" = '2013-07-18 04:59:31.218876', "auth_token" = 'mpp7PhLHqph5sCU8pqqh' WHERE "public"."cadenero_members"."id" = 577  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 579 Completed 201 Created in 169ms (Views: 7.3ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/579" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"579"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 466 AND "public"."cadenero_users"."id" = 579 LIMIT 1 Cadenero::User Load (4.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 579 Completed 200 OK in 26ms (Views: 7.4ms | ActiveRecord: 13.9ms) Cadenero::User Load (6.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 579 Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) COMMIT  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (12.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$CCWYPOcqLQ.dy7JHizM0TeFxK93toYajvkYCWukvK5Z4yjUUqv.kq"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]]  (11.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 580], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KV6cY2s2uTyRxsNgLyFM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 580, "created_at" = '2013-07-18 04:59:31.570324', "updated_at" = '2013-07-18 04:59:31.570324', "auth_token" = 'KV6cY2s2uTyRxsNgLyFM' WHERE "public"."cadenero_accounts"."id" = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 467], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["user_id", 580]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bi9pF5bphXJg8rf9zs4s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 467, "user_id" = 580, "created_at" = '2013-07-18 04:59:31.576837', "updated_at" = '2013-07-18 04:59:31.576837', "auth_token" = 'bi9pF5bphXJg8rf9zs4s' WHERE "public"."cadenero_members"."id" = 578  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 467 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) COMMIT  (0.1ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$xn1GvxcL8v14l6bo0TuJNOAE71knoOosx1NY.6cDR/udW9EH7Id6q"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (3.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 581], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qsdGAAizPrHpNzxfQBEK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 581, "created_at" = '2013-07-18 04:59:31.939876', "updated_at" = '2013-07-18 04:59:31.939876', "auth_token" = 'qsdGAAizPrHpNzxfQBEK' WHERE "public"."cadenero_accounts"."id" = 468  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 468], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["user_id", 581]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HuBkmrnezTTEHNzQC2fp' LIMIT 1  (3.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 468, "user_id" = 581, "created_at" = '2013-07-18 04:59:31.949891', "updated_at" = '2013-07-18 04:59:31.949891', "auth_token" = 'HuBkmrnezTTEHNzQC2fp' WHERE "public"."cadenero_members"."id" = 579  (3.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (7.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (1.2ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$pKem0MpCladRyf3MS5U9deObuEFci8twSuQlAH6Fj3QwQtzE4INVq"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 582], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ofh94r9pDJiqoVqYeCvy' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 582, "created_at" = '2013-07-18 04:59:32.263235', "updated_at" = '2013-07-18 04:59:32.263235', "auth_token" = 'ofh94r9pDJiqoVqYeCvy' WHERE "public"."cadenero_accounts"."id" = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 469], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["user_id", 582]] Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9xiemoGyehwS4YQaLcRo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 469, "user_id" = 582, "created_at" = '2013-07-18 04:59:32.270619', "updated_at" = '2013-07-18 04:59:32.270619', "auth_token" = '9xiemoGyehwS4YQaLcRo' WHERE "public"."cadenero_members"."id" = 580  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (4.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (9.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.4ms) SELECT version FROM "schema_migrations"  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (9.9ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$5oFzZA8IiA4WGjmlPqWmcORBaX56hbct5VgDmN5EjjbIC9d2QNps6"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 583], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5mXjjUTfcpMNgCk9D2ue' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 583, "created_at" = '2013-07-18 04:59:32.540070', "updated_at" = '2013-07-18 04:59:32.540070', "auth_token" = '5mXjjUTfcpMNgCk9D2ue' WHERE "public"."cadenero_accounts"."id" = 470  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 470], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["user_id", 583]] Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pcSmRryNhH7kYyDFQsta' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 470, "user_id" = 583, "created_at" = '2013-07-18 04:59:32.547088', "updated_at" = '2013-07-18 04:59:32.547088', "auth_token" = 'pcSmRryNhH7kYyDFQsta' WHERE "public"."cadenero_members"."id" = 581  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 469 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$Ybvb7gdooT57xNagnm/mk.zPQxR05XAhUJ.mtkgajEnErWJ9KfKP6"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 584], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'HxqXHkjwQcseCoZ9vpHr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 584, "created_at" = '2013-07-18 04:59:32.742337', "updated_at" = '2013-07-18 04:59:32.742337', "auth_token" = 'HxqXHkjwQcseCoZ9vpHr' WHERE "public"."cadenero_accounts"."id" = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 471], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["user_id", 584]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kpsxyMZZ9HRB4ZhKCjs6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 471, "user_id" = 584, "created_at" = '2013-07-18 04:59:32.749901', "updated_at" = '2013-07-18 04:59:32.749901', "auth_token" = 'kpsxyMZZ9HRB4ZhKCjs6' WHERE "public"."cadenero_members"."id" = 582  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (11.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (13.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (6.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 471 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (1.5ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$s60EPpL8nhx9tuK3lkJCeO.EQ2FC4jUrE1KmDnHNGW6jX0IVXwPgC"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 585], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FPB7srJqeuBgeLACxqgn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 585, "created_at" = '2013-07-18 04:59:33.024065', "updated_at" = '2013-07-18 04:59:33.024065', "auth_token" = 'FPB7srJqeuBgeLACxqgn' WHERE "public"."cadenero_accounts"."id" = 472  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 472], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 585]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1AyqVENGKx1yeUCxnx1s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 472, "user_id" = 585, "created_at" = '2013-07-18 04:59:33.032239', "updated_at" = '2013-07-18 04:59:33.032239', "auth_token" = '1AyqVENGKx1yeUCxnx1s' WHERE "public"."cadenero_members"."id" = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (10.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 585 Started GET "/v1?auth_token[]=1AyqVENGKx1yeUCxnx1s" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["1AyqVENGKx1yeUCxnx1s"], "default"=>:json} Cadenero::V1::Account Load (8.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 472 AND "public"."cadenero_members"."auth_token" IN ('1AyqVENGKx1yeUCxnx1s') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 585 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 585 LIMIT 1 Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 9.1ms)  (3.2ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$3O0Ht3BN.eMQyplgc8luGeh47qJUq4RYpiY1ULiLwoIOAoNEgKSnu"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (3.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 586], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zUuqT6ZFwHXfJCqs4zts' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 586, "created_at" = '2013-07-18 04:59:33.320071', "updated_at" = '2013-07-18 04:59:33.320071', "auth_token" = 'zUuqT6ZFwHXfJCqs4zts' WHERE "public"."cadenero_accounts"."id" = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 473], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 586]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PqqextSTwEqjibqeLrqQ' LIMIT 1  (1.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 473, "user_id" = 586, "created_at" = '2013-07-18 04:59:33.330477', "updated_at" = '2013-07-18 04:59:33.330477', "auth_token" = 'PqqextSTwEqjibqeLrqQ' WHERE "public"."cadenero_members"."id" = 584  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test12"  (10.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 586 Started GET "/v1?auth_token[]=PqqextSTwEqjibqeLrqQ" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["PqqextSTwEqjibqeLrqQ"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 473 AND "public"."cadenero_members"."auth_token" IN ('PqqextSTwEqjibqeLrqQ') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/v1/users/586" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"586"} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/v1/users/586?auth_token[]=PqqextSTwEqjibqeLrqQ" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"auth_token"=>["PqqextSTwEqjibqeLrqQ"], "default"=>:json, "id"=>"586"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 473 AND "public"."cadenero_members"."auth_token" IN ('PqqextSTwEqjibqeLrqQ') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 473 AND "public"."cadenero_users"."id" = 586 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 586 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 586 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 586 Completed 200 OK in 20ms (Views: 6.4ms | ActiveRecord: 5.6ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$ksla0d980BY1r56W2IRgher5ZXRDCPXq9AiIvRU.STgAJQwpbkfRa"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]]  (3.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 587], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ppY5ZYoKNYCJkM7G4gp4' LIMIT 1  (2.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 587, "created_at" = '2013-07-18 04:59:33.621252', "updated_at" = '2013-07-18 04:59:33.621252', "auth_token" = 'ppY5ZYoKNYCJkM7G4gp4' WHERE "public"."cadenero_accounts"."id" = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 474], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 587]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AF34dsTmt5xvbr5j5KSk' LIMIT 1  (7.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 474, "user_id" = 587, "created_at" = '2013-07-18 04:59:33.634079', "updated_at" = '2013-07-18 04:59:33.634079', "auth_token" = 'AF34dsTmt5xvbr5j5KSk' WHERE "public"."cadenero_members"."id" = 585  (8.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.6ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$5O/5nc6bpr2NMqKl.sY04ukx355zTh1bglB8d19Nulh9KnpbUodvm"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 588], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZzhA9e7LjcbNAtay8v6i' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 588, "created_at" = '2013-07-18 04:59:33.858449', "updated_at" = '2013-07-18 04:59:33.858449', "auth_token" = 'ZzhA9e7LjcbNAtay8v6i' WHERE "public"."cadenero_accounts"."id" = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 475], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 588]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Jzgrq8pSFXMoJMchq9Cz' LIMIT 1  (3.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 475, "user_id" = 588, "created_at" = '2013-07-18 04:59:33.871489', "updated_at" = '2013-07-18 04:59:33.871489', "auth_token" = 'Jzgrq8pSFXMoJMchq9Cz' WHERE "public"."cadenero_members"."id" = 586  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test14"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (9.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 588 Started GET "/v1?auth_token[]=Jzgrq8pSFXMoJMchq9Cz" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["Jzgrq8pSFXMoJMchq9Cz"], "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 474 AND "public"."cadenero_members"."auth_token" IN ('Jzgrq8pSFXMoJMchq9Cz') LIMIT 1 Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$RGn9Fkae/S4UbGZC65mdpu4zEg/n8AQJldB4vaZdPBULWe.pG6E8K"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 589], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EZHDtsUyACVeirxwExxB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 589, "created_at" = '2013-07-18 04:59:34.194595', "updated_at" = '2013-07-18 04:59:34.194595', "auth_token" = 'EZHDtsUyACVeirxwExxB' WHERE "public"."cadenero_accounts"."id" = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 476], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["user_id", 589]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TqhscF3p4xkg75SsYzkn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 476, "user_id" = 589, "created_at" = '2013-07-18 04:59:34.200931', "updated_at" = '2013-07-18 04:59:34.200931', "auth_token" = 'TqhscF3p4xkg75SsYzkn' WHERE "public"."cadenero_members"."id" = 587  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test15"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1  (2.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$OfTObVlN1sYuTptBvCrg6Os5NFedebO6oieJygpn9Fe9ZIo5yWKL2"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 476], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["user_id", 590]] Cadenero::Member Load (13.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6ZDzbxb3aspQrUforZHc' LIMIT 1  (12.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 476, "user_id" = 590, "created_at" = '2013-07-18 04:59:34.488869', "updated_at" = '2013-07-18 04:59:34.488869', "auth_token" = '6ZDzbxb3aspQrUforZHc' WHERE "public"."cadenero_members"."id" = 588  (6.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 Cadenero::Member Load (5.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 590 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 590 Completed 201 Created in 235ms (Views: 7.8ms | ActiveRecord: 45.8ms) Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/590" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"590"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 476 AND "public"."cadenero_users"."id" = 590 LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 590 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 590 Completed 200 OK in 14ms (Views: 6.6ms | ActiveRecord: 3.2ms) Cadenero::User Load (5.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 589 Started GET "/v1?auth_token[]=TqhscF3p4xkg75SsYzkn" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["TqhscF3p4xkg75SsYzkn"], "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 476 AND "public"."cadenero_members"."auth_token" IN ('TqhscF3p4xkg75SsYzkn') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 589 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 589 LIMIT 1 Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 Started GET "/v1?auth_token[]=6ZDzbxb3aspQrUforZHc" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"auth_token"=>["6ZDzbxb3aspQrUforZHc"], "default"=>:json} Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 476 AND "public"."cadenero_members"."auth_token" IN ('6ZDzbxb3aspQrUforZHc') LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 5.7ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (14.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (5.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ScJVCYzncwDQbpfREgxAlOwhiC2WPusHU287T9YOCYWZHsebyzA3e"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["name", "Test Account"], ["owner_id", 591], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QqXoPDPX1RqDoGzUbqhc' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 591, "created_at" = '2013-07-18 04:59:34.971742', "updated_at" = '2013-07-18 04:59:34.971742', "auth_token" = 'QqXoPDPX1RqDoGzUbqhc' WHERE "public"."cadenero_accounts"."id" = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 477], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["user_id", 591]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wzufV7pV6yys5yJyS5cv' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 477, "user_id" = 591, "created_at" = '2013-07-18 04:59:34.978465', "updated_at" = '2013-07-18 04:59:34.978465', "auth_token" = 'wzufV7pV6yys5yJyS5cv' WHERE "public"."cadenero_members"."id" = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (11.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 477 LIMIT 1  (16.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$B1hrOs0BUCRR1yeHoDbADOnOJgdB66zWoL2eL0v.WF1gVgY4T2axi"], ["updated_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 592], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'n7xV95YsVqADRRsNxpEC' LIMIT 1  (1.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 592, "created_at" = '2013-07-18 04:59:35.739412', "updated_at" = '2013-07-18 04:59:35.739412', "auth_token" = 'n7xV95YsVqADRRsNxpEC' WHERE "public"."cadenero_accounts"."id" = 478  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 478], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["user_id", 592]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5inNFes86QJLZJUegneA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 478, "user_id" = 592, "created_at" = '2013-07-18 04:59:35.760689', "updated_at" = '2013-07-18 04:59:35.760689', "auth_token" = '5inNFes86QJLZJUegneA' WHERE "public"."cadenero_members"."id" = 590  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test16"  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (6.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:35 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1  (1.9ms) SAVEPOINT active_record_1 SQL (5.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5DVzq3gows0TlcDySQg9qORqIwHLDIYSq1wlGz9TVQlNCFK5aLca2"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 478], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 593]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JGvc2XJeTGQcpkzqqgvf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 478, "user_id" = 593, "created_at" = '2013-07-18 04:59:36.085643', "updated_at" = '2013-07-18 04:59:36.085643', "auth_token" = 'JGvc2XJeTGQcpkzqqgvf' WHERE "public"."cadenero_members"."id" = 591  (0.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 593 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 593 Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 593 Cadenero::V1::Account Load (8.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 593 Completed 201 Created in 229ms (Views: 10.4ms | ActiveRecord: 28.2ms) Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/593" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"593"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 Cadenero::User Load (7.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 478 AND "public"."cadenero_users"."id" = 593 LIMIT 1 Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 593 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 593 Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 593 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 593 Completed 200 OK in 31ms (Views: 7.6ms | ActiveRecord: 16.1ms)  (13.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$c.tqacqkAvwNz5Z.wqiFcOB3L4jncwPW8FOWgceZTJTVJf6.nDxxa"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 594], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Xc6wBmxU5B7HcFuiYQzN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 594, "created_at" = '2013-07-18 04:59:36.340508', "updated_at" = '2013-07-18 04:59:36.340508', "auth_token" = 'Xc6wBmxU5B7HcFuiYQzN' WHERE "public"."cadenero_accounts"."id" = 479  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 479], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 594]] Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yDt9s64pz7xypvLShbx6' LIMIT 1  (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 479, "user_id" = 594, "created_at" = '2013-07-18 04:59:36.348152', "updated_at" = '2013-07-18 04:59:36.348152', "auth_token" = 'yDt9s64pz7xypvLShbx6' WHERE "public"."cadenero_members"."id" = 592  (5.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test17"  (8.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (24.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (22.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (11.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$w1j9FJ7yXInpDjomEjpXEOk0vL0dTwVyQKlrCcizBrxx.VggeLV5K"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 479], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 595]] Cadenero::Member Load (4.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UiNtP1JRs1TzqwskySss' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 479, "user_id" = 595, "created_at" = '2013-07-18 04:59:36.645355', "updated_at" = '2013-07-18 04:59:36.645355', "auth_token" = 'UiNtP1JRs1TzqwskySss' WHERE "public"."cadenero_members"."id" = 593  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 Completed 201 Created in 171ms (Views: 6.4ms | ActiveRecord: 19.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/595" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"595"} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 479 AND "public"."cadenero_users"."id" = 595 LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 Cadenero::Member Load (9.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 Completed 200 OK in 38ms (Views: 7.9ms | ActiveRecord: 21.5ms) Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 SQL (9.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 595], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'E1qvoac2uPrE1qR49LaJ' LIMIT 1  (15.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 595, "created_at" = '2013-07-18 04:59:36.731845', "updated_at" = '2013-07-18 04:59:36.731845', "auth_token" = 'E1qvoac2uPrE1qR49LaJ' WHERE "public"."cadenero_accounts"."id" = 480  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 480], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 595]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b9YTFNPgz9hsNpBBMGuh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 480, "user_id" = 595, "created_at" = '2013-07-18 04:59:36.782206', "updated_at" = '2013-07-18 04:59:36.782206', "auth_token" = 'b9YTFNPgz9hsNpBBMGuh' WHERE "public"."cadenero_members"."id" = 594  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test18"  (8.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))   (4.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)   (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CjIQF8Cxrb6waXp8fOmf6ex3SYppayura/q1CSThXOEv6.btCcmAC"], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00]] SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 480], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["user_id", 596]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BdseFLpRFWjyeU6RGe5y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 480, "user_id" = 596, "created_at" = '2013-07-18 04:59:37.046993', "updated_at" = '2013-07-18 04:59:37.046993', "auth_token" = 'BdseFLpRFWjyeU6RGe5y' WHERE "public"."cadenero_members"."id" = 595  (8.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 596 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 596 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 596 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 596 Completed 201 Created in 157ms (Views: 5.9ms | ActiveRecord: 16.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/596" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"596"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 480 AND "public"."cadenero_users"."id" = 596 LIMIT 1 Cadenero::User Load (8.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 596 LIMIT 1 Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 596 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 596 Cadenero::V1::Account Load (9.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 596 Completed 200 OK in 34ms (Views: 9.7ms | ActiveRecord: 20.6ms) Started GET "/v1/users/595" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"595"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 479 AND "public"."cadenero_users"."id" = 595 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 Cadenero::V1::Account Load (4.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 Completed 200 OK in 19ms (Views: 7.5ms | ActiveRecord: 6.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 479 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 Cadenero::Member Load (6.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 594 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 594 Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 594 Completed 200 OK in 37ms (Views: 16.3ms | ActiveRecord: 18.8ms)  (14.6ms) ROLLBACK  (5.1ms) BEGIN  (11.5ms) COMMIT  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 Completed 201 Created in 29ms (Views: 27.5ms | ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (4.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wFsy8PTggnvWXmyz5XoV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:59:37.443884', "updated_at" = '2013-07-18 04:59:37.443884', "auth_token" = 'wFsy8PTggnvWXmyz5XoV' WHERE "public"."cadenero_members"."id" = 596  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) COMMIT  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$9AUof3gNcdzEXbi.nx1rdujR0takzj2ewfSYMECoilw8eNlUgvHoW"], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00]] SQL (4.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["name", "Testy"], ["owner_id", 597], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XqZ1xzJxFEUYZGujMhsx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 597, "created_at" = '2013-07-18 04:59:37.669480', "updated_at" = '2013-07-18 04:59:37.669480', "auth_token" = 'XqZ1xzJxFEUYZGujMhsx' WHERE "public"."cadenero_accounts"."id" = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 481], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["user_id", 597]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't1mNzYFsH6jhWg1G6C3z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 481, "user_id" = 597, "created_at" = '2013-07-18 04:59:37.680217', "updated_at" = '2013-07-18 04:59:37.680217', "auth_token" = 't1mNzYFsH6jhWg1G6C3z' WHERE "public"."cadenero_members"."id" = 597  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 481) LIMIT 1 Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 597 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 481 Completed 201 Created in 532ms (Views: 186.0ms | ActiveRecord: 65.6ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (9.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ZeQA1l31H1SsqsjfIneCROmWWBsq8IRb9ZgFRbgSwKL6F7BY9bOS2"], ["updated_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00], ["name", "Testy"], ["owner_id", 598], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xz5HrS3C2fjLhUFPkK2d' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 598, "created_at" = '2013-07-18 04:59:38.235522', "updated_at" = '2013-07-18 04:59:38.235522', "auth_token" = 'xz5HrS3C2fjLhUFPkK2d' WHERE "public"."cadenero_accounts"."id" = 482  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:59:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (3.9ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 205ms (Views: 0.3ms | ActiveRecord: 8.7ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.0ms) ROLLBACK